Ethereal-users: Re: [Ethereal-users] Reading specified number of packets from capture file.

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Fri, 25 Jan 2002 00:48:35 -0800
On Thu, Jan 24, 2002 at 12:05:09PM +0100, Yann Rapaport wrote:
> Is there a tethereal option to read a specified number of packets from a
> capture file?
> Like the -c option for capturing.

Use the "-R" flag with a filter such as "frame.number <= 17", which
causes Tethereal to ignore all frames with a frame number greater than
17.

That doesn't cause Tethereal to *stop* as soon as the 17th frame has
arrived, but it at least causes it not to print information about any
subsequent frames.