ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] Using multiple files with tshark

From: "McGlinchy, Alistair" <Alistair.McGlinchy@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Mar 2007 12:38:01 -0000
Stephen Fisher wrote:
> This fixes it:
> 
>           if (!capture_opts.has_autostop_filesize &&
> 	      !capture_opts.has_file_duration) {
> 

Excellent. Works a treat. Thanks very much. While you are there, could
you cast your eyes over this extension to your fix to allow for the
"files:value" criteria too.  This works but requires multiple uses of
the -b flag (rather than the -b and -a flags).

	./tshark  -w ~/test.cap  -b files:3 -b duration:5

Is that what was intended?


          if (!capture_opts.has_autostop_filesize &&
              !capture_opts.has_file_duration     &&
              !capture_opts.has_ring_num_files    ) {
            cmdarg_err("Multiple capture files requested, but "
              "no capture ring buffer criteria  specified.");
            exit(1);
          }


Cheers

Alistair

**********************************************************************
Registered Office:
Marks and Spencer plc
Waterside House
35 North Wharf Road
London
W2 1NW

Registered No. 214436 in England and Wales.

Telephone (020) 7935 4422
Facsimile (020) 7487 2670

<<www.marksandspencer.com>>

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful.
2005