diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-24 03:33:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-24 03:33:05 +0000 |
commit | 8bd63530ed159d50e5375f1268b047d5e519c73b (patch) | |
tree | aec410fc717b83b244d5a5272f37e65cec64e457 /capture.h | |
parent | f12ef91219fb2aa5f4e5638f73fc30899e9463e2 (diff) | |
download | wireshark-8bd63530ed159d50e5375f1268b047d5e519c73b.tar.gz wireshark-8bd63530ed159d50e5375f1268b047d5e519c73b.tar.bz2 wireshark-8bd63530ed159d50e5375f1268b047d5e519c73b.zip |
"autostop_filesize" and "autostop_duration" don't need to be in the
"capture_file" structure - they're a property of an in-progress capture,
not a property of an open capture file. Make them just variables.
The maximum number of packets to be captured should be a variable
separate from the "count" field in the "capture_file" structure - the
latter is a count of the packets in the capture file in question.
Have Boolean variables indicating whether a maximum packet count,
maximum capture file size, and maximum capture duration were specified.
If an option isn't set, and we're doing an "update list of packets in
real time" capture, don't pass the option to the child process with a
command-line argument.
Don't create "stop when the capture file reaches this size" or "stop
when the capture's run for this long" conditions if a maximum capture
file size or a maximum capture duration, respectively, haven't been
specified. Don't test or free a condition if it wasn't created.
Don't allow a 0 argument to the "-c" flag - the absence of a "-c" flag
is the way you specify "no limit on the number of packets".
Initialize the check boxes and spin buttons for the "maximum packets to
capture", "maximum capture size", and "maximum capture duration" options
to the values they had in the last capture. If an option wasn't
specified, don't read its value from the dialog box and set the
variable.
svn path=/trunk/; revision=4795
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* capture.h * Definitions for packet capture windows * - * $Id: capture.h,v 1.29 2002/02/08 10:07:33 guy Exp $ + * $Id: capture.h,v 1.30 2002/02/24 03:33:04 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -35,6 +35,13 @@ extern gboolean has_snaplen; /* TRUE if maximum capture packet length is specif extern int snaplen; /* Maximum captured packet length */ extern int promisc_mode; /* capture in promiscuous mode */ extern int sync_mode; /* fork a child to do the capture, and sync between them */ +extern gboolean has_autostop_count; +extern int autostop_count; +extern gboolean has_autostop_filesize; /* TRUE if maximum capture file size is specified */ +extern gint32 autostop_filesize; /* Maximum capture file size */ +extern gboolean has_autostop_duration; /* TRUE if maximum capture duration is specified */ +extern gint32 autostop_duration; /* Maximum capture duration */ + extern int sync_pipe[2]; /* used to sync father */ extern int quit_after_cap; /* Makes a "capture only mode". Implies -k */ extern gboolean capture_child; /* if this is the child for "-S" */ |