Ethereal-dev: Re: [ethereal-dev] framenum-bug with patch

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: Wed, 26 Jan 2000 18:04:18 -0800 (PST)
> i discovered a small bug. if you load a trace file in ethereal-0.8.2
> the shown frame numbers are correct. if you press "reset" after
> loading all frame numbers will be set to the total number of packets
> in the trace file.

Are you certain that this happened with 0.8.2?

What does the RCS ID line at the top of "file.c" say?  If it doesn't say

	 * $Id: file.c,v 1.160 2000/01/25 17:51:11 gram Exp $

it's not 0.8.2.

Your patch doesn't apply to 0.8.2, because, in 0.8.2, "fdata->num" isn't
set by "add_packet_to_packet_list()", it's set by "wtap_dispatch_cb()"
just before "add_packet_to_packet_list()" is called (the packet list is
only the list of displayed packets, but frame numbers are ordinal
numbers in the capture, not in the list of displayed frames).  It may,
however, have been set in "add_packet_to_packet_list()" in older
versions - but that was a bug.

The problem doesn't show up in the 0.8.2 I just downloaded and built; I
suspect you may have an older version of "file.c", and perhaps an older
version of Ethereal.