Ethereal-dev: RE: [Ethereal-dev] Re: [Ethereal-users] Questions on using ethere al / tethereal

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

From: Biot Olivier <Olivier.Biot@xxxxxxxxxxx>
Date: Mon, 23 Jun 2003 10:23:27 +0200
> -----Original Message-----
> From: Guy Harris [mailto:gharris@xxxxxxxxx]
> 
> In fact, "-C" would be an ideal command-line flag for that, taking a
> mximum file size (in units of 1,000,000 bytes) as an argument, because
> that's what the current CVS version of tcpdump has for the 
> same purpose:
> 
>        -C     Before  writing  a  raw packet to a savefile, check
>               whether the file is currently larger than file_size
>               and,  if  so, close the current savefile and open a
>               new one.  Savefiles after the first  savefile  will
>               have  the  name  specified with the -w flag, with a
>               number after  it,  starting  at  2  and  continuing
>               upward.   The  units  of  file_size are millions of
>               bytes (1,000,000 bytes, not 1,048,576 bytes).
> 
> although if we use 1,048,576-byte megabytes elsewhere, that might be
> confusing.

Or we could use a specifier, e.g., -C5M for 5 MB (1024 * 1024) and -C5m for
5,000,000 bytes (1000 * 1000). Of course, allow K, k, M, m, G and g. Enabyte
(EB) and petabyte (PB) will not be useful yet I think :)

Regards,

Olivier