Ethereal-users: [ethereal-users] Re: [ethereal-dev] -S option

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: Wed, 28 Jul 1999 22:25:45 +0200
Laurent Deniel wrote:
> 
> 
> > Could the sync mode message include a *count* of packets to be read,
> > which is the number of complete packets added to the file since the last
> > sync mode message, with the display process then reading only that
> > number of packets?  We'd have to add to make "wtap_loop" honor the
> > "count" argument, but that looks trivial.
> 
> That's a solution. But the timeout handling will still be broken.
> Another solution would be to correctly handle incomplete read in wiretap.
> 

Ok, the -S option should be fixed now. I have modified wtap_loop to allow
the reading of a specified number of packets. The whole behavior of the -S
option should be more satisfying now (works also better with small number 
of packets). I will clean a bit the code later.

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.