Ethereal-dev: Re: [Ethereal-dev] Bug: wrong packet length (in a TCP packet that is within an I

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Tue, 20 May 2003 23:01:33 -0700
On Mon, Apr 28, 2003 at 10:54:15AM +0200, Yaniv Kaul wrote:
> In the attached packet, the length of the TCP packet, as indicated in 
> the Len: 429467292 is wrong. Might be because not the full packet is 
> visible,

Yeah, that's probably it.  I changed the TCP dissector not to assume
that the tvbuff reported length reflects the actual segment length if
the packet is a fragment (which fixes the other problem you reported,
without completely turning dissection off if the header isn't long
enough), and just now added a check for whether the segment is in an
"error packet" (ICMP or ICMPv6 packet containing part or all of the
offending packet) in the same place.