Ethereal-dev: Re: [Ethereal-dev] Re: [Ethereal-cvs] rev 13118: /trunk/epan/dissectors/: packet

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 20 Jan 2005 03:07:02 -0800
julien.leproust@xxxxxxxx wrote:
This time it works (tested with eth:ip:udp:nbdgm:smb:browser - we miss smb mails slot because it's called directly by smb).

I've checked in a change based on yours - but instead of creating a copy of the layer names string, I just save the current length of that string and, if a heuristic dissector rejects a packet, truncate the string to the saved length, throwing away the name added to the layer names string for that heuristic dissector.

I also checked in a change to do that for non-heuristic dissectors, and to truncate the string if the dissector rejects the packet.