Ethereal-users: Re: [Ethereal-users] Bug in tethereal - delta time.

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Mon, 27 Nov 2000 21:45:47 -0800
On Fri, Nov 24, 2000 at 06:08:23PM +1100, Jesus M. Salvo Jr. wrote:
> How come this patch never made it to 0.8.14?

How come you believe it didn't?

The original bug report said:

	I found a bug in tethereal.  It basically has to do with the
	time delta displayed with the -V option. 

	For an example:

	1) Get the sample capture file named teardrop.cap from
	www.ethereal.com.
	2) Load the teardrop.cat using ethereal. Notice that the delta
	time on packets 10 and 11 are 4.67 and 0.99 seconds.
	3) Run '/usr/sbin/tethereal -r teardrop.cap -V', and look at
	the delta time on packets 10 and 11. Its off by +1 seconds.

	The delta time in ethereal is correct but the one in tethereal
	is not.

I just downloaded the 0.8.14 source, compiled it, and ran both Ethereal
and Tethereal on "teardrop.cap"; Ethereal reports the time deltas on
frame 10 and 11 as 4.670146 seconds and 0.999993 seconds, respectively,
and Tethereal, when run either with "-t d" or "-V", reports the time
deltas on those frames as 4.670146 seconds and 0.999993 seconds,
respectively.

Furthermore, when I look at the patch in question, in

	http://www.ethereal.com/lists/ethereal-users/200010/msg00441.html

I see that there is, in fact, no

	fdata->del_secs = fdata->abs_secs - prevsec;

after the

	compute_timestamp_diff(&fdata->del_secs, &fdata->del_usecs,
		fdata->abs_secs, fdata->abs_usecs, prevsec, prevusec);

line in the 0.8.14 "tethereal.c".