diff options
author | Laurent Deniel <laurent.deniel@free.fr> | 2003-05-15 13:40:20 +0000 |
---|---|---|
committer | Laurent Deniel <laurent.deniel@free.fr> | 2003-05-15 13:40:20 +0000 |
commit | 3070b797d5c7f027211f2d4100cb70a18d925514 (patch) | |
tree | 3b40245d5a750e49f176b57cb7ec3cd2accf07e9 /capture.h | |
parent | e1647e4504d31f8260e23ec60c645735516060e0 (diff) |
Implement a ring buffer switch duration:
when the new "Rotate capture file every n second(s)" checkbox or the
-b <# of file>[:<duration>] argument are used, [t]ethereal will skip to the
next ring buffer file if the specified duration has elapsed (even if the
specified capture size is not reached). This is useful when you want to have
separate capture files per hour or day for instance.
I let the autostop filesize parameter mandatory (i.e. the "rotate capture
file after n kilobytes") but this could be no longer strictly necessary when
that new feature is used ...
Another point: it might be interesting to really truncate the file at the
switch and not the closure ... According to user comments and my own real
case tests, I might plan to enhance this point and others (still ring buffer
related) in the future.
svn path=/trunk/; revision=7678
Diffstat (limited to 'capture.h')
-rw-r--r-- | capture.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* capture.h * Definitions for packet capture windows * - * $Id: capture.h,v 1.34 2003/01/09 19:37:14 guy Exp $ + * $Id: capture.h,v 1.35 2003/05/15 13:33:53 deniel Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -49,6 +49,8 @@ typedef struct { gint32 autostop_filesize; /* Maximum capture file size */ gboolean ringbuffer_on; /* TRUE if ring buffer in use */ guint32 ringbuffer_num_files; /* Number of ring buffer files */ + gboolean has_ring_duration; /* TRUE if ring duration specified */ + gint32 ringbuffer_duration; /* Switch file after n seconds */ } capture_options; extern capture_options capture_opts; |