Ethereal-dev: Re: [ethereal-dev] A sync problem still

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

From: Laurent Deniel <deniel@xxxxxxxxxxx>
Date: Mon, 09 Aug 1999 22:40:53 +0200
John McDermott wrote:
> 
> Laurent,
> Sorry.  I have 0.7.1 most current version direct from CVS this morning.
> I did a complete reload of the software so it is not an issue of
> incorrect updating.
> 
> I looked at the changes and thought it was just as you said.

There is in fact a possibility that a packet is not seen by the
displayer if it is received before the one second period has elapsed
and if there is no more captured packet (as the one second period
is only working when there are captured packets).  In version 0.6.x, 
this was handled in the display process by adding a timeout and reading 
the captured file until EOF when the timeout expires. But this mechanism
can no longer be used due to the way the captured file is read now.
Another solution would be to write in the pipe each second period
even if there is no captured packet but this is much harder since
the pcap_dispatch routine (in capture()) does not take any timeout in
arguments (blocking call) but I will try to workaround that.

Laurent.

--
Laurent DENIEL        | E-mail: deniel@xxxxxxxxxxx
Paris, FRANCE         |         laurent.deniel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
                      | WWW   : http://www.worldnet.fr/~deniel
    All above opinions are personal, unless stated otherwise.