Wireshark-bugs: [Wireshark-bugs] [Bug 6681] -R misfeatures with -w and -c

Date: Wed, 21 Dec 2011 08:37:01 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6681

--- Comment #4 from Sake <sake@xxxxxxxxxx> 2011-12-21 08:37:00 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > Actually, the "-c <n>" option with tshark is intended to stop after
> > *displaying* <n> packets and works as intended in trunk:
> 
> Thanks for the clarification Sake.  From the "tshark -h" output, I read *the
> following* and thought otherwise:
> 
> *Capture* stop conditions:
>   -c <packet count>        stop after n packets (def: infinite)

Hmmm... that is a bit misleading indeed. I think that was the original
implementation, but I remember changing the code to actually count displayed
packets when reading from a file.

> BTW, I tested "tshark -R <filter> -c <count> -r <file>" using trunk-1.0,
> trunk-1.2, trunk-1.4, trunk-1.6, and the latest trunk.  All worked as expected.

Good, then we can keep this bug closed :-)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.