aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-04 08:26:00 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-04 08:26:00 +0000
commit8032fa8a1bafcbf76d3cadcedb03480fbfd51ecf (patch)
treea634ca1961bfec804908e381e96ad6d793a7f2b9 /file.h
parenta1660d6d3afbaeccd77d8e34c695bf65a4f4f09e (diff)
Make the bytes-written information from Wiretap a long, as we allow
files to get that big. From Thomas Wittwer and Matthias Nyffenegger: Support for "ring buffer mode", wherein there's a ring buffer of N capture files; as each capture file reaches its maximum size (the ring buffer works only with a maximum capture file size specified), Ethereal rolls over to the next capture file in the ring buffer, replacing whatever packets might be in it with new packets. svn path=/trunk/; revision=4323
Diffstat (limited to 'file.h')
-rw-r--r--file.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/file.h b/file.h
index ed04edc0b4..70b471eb96 100644
--- a/file.h
+++ b/file.h
@@ -1,7 +1,7 @@
/* file.h
* Definitions for file structures and routines
*
- * $Id: file.h,v 1.85 2001/12/04 07:32:00 guy Exp $
+ * $Id: file.h,v 1.86 2001/12/04 08:25:55 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -87,8 +87,10 @@ typedef struct _capture_file {
epan_dissect_t *edt; /* Protocol dissection fo rcurrently selected packet */
FILE *print_fh; /* File we're printing to */
#ifdef HAVE_LIBPCAP
- guint32 autostop_filesize; /* Maximum capture file size */
+ gint32 autostop_filesize; /* Maximum capture file size */
gint32 autostop_duration; /* Maximum capture duration */
+ gboolean ringbuffer_on; /* Ringbuffer option */
+ guint32 ringbuffer_num_files; /* Number of ringbuffer files */
#endif
} capture_file;