Ethereal-dev: Re: [ethereal-dev] 4s printed on Quit

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

From: gregh@xxxxxxxxxxxxx (Greg Hankins)
Date: Sun, 24 Oct 1999 22:17:39 -0400 (EDT)
Guy Harris writes:
>Greg Hankins writes:
>> Has anyone else noticed this?  Under ethereal-0.7.5, if I run ethereal and
>> load a saved capture file, apply a filter, and then select Quit from the
>> menu, a certain number of 4s are printed on stderr (or maybe stdout).  The
>> number of 4s don't seem to correspond to the number of packets matched by the
>> filter.
>
>Damn.  I *vaguely* remember seeing this a while ago (pre-0.7.5), and
>even think I remember some discussion of it - and perhaps even a change
>to fix it, so maybe some other change made it come back - but I don't
>remember the details.

Aha!  While doing some more testing on the BGP code, I found it.

In packet-ospf.c on line 204 there is "printf("%d", pi.captured_len - offset);".
I'm not sure why it is there, maybe left over from debugging, but that line
is definitely it.  Does it need to be there?

Greg

-- 
Greg Hankins <gregh@xxxxxxxxxxxxx>
http://www.cc.gatech.edu/staff/h/Greg.Hankins/