diff options
author | Juha Takala <juha.takala+rauta@iki.fi> | 2021-08-23 19:42:04 +0300 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-09-14 04:52:09 +0000 |
commit | 8bc52f542bfa25f7de15c9df90c323ab2d195917 (patch) | |
tree | 6637aaa4d53251b82c33aa8de4837e4095b78286 /capture_opts.h | |
parent | 6cf6794e37149a7e26f75d9ce76c5077698a0e93 (diff) |
Add tshark ringbuffer option '-b nametimenum:value'
This is used to select ringbuffer savefile name template. Choose one of two
savefile name templates:
If value is 1, make running file number part before start time part; this is
the original and default behaviour (e.g. log_00001_20210828164426.pcap).
If value is greater than 1, make start time part before running number part
(e.g. log_20210828164426_00001.pcap).
The latter makes alphabetical sortig order equal to creation time order, and
keeps related multiple file sets in same directory close to each other (e.g.
while browsing in wireshark "Open file" dialog).
Signed-off-by: Juha Takala <juha.takala+rauta@iki.fi>
Diffstat (limited to 'capture_opts.h')
-rw-r--r-- | capture_opts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/capture_opts.h b/capture_opts.h index 660a9746bd..6573b34aaf 100644 --- a/capture_opts.h +++ b/capture_opts.h @@ -295,6 +295,7 @@ typedef struct capture_options_tag { int file_packets; /**< Switch file after n packets */ gboolean has_ring_num_files; /**< TRUE if ring num_files specified */ guint32 ring_num_files; /**< Number of multiple buffer files */ + gboolean has_nametimenum; /**< TRUE if file name has date part before num part */ /* autostop conditions */ gboolean has_autostop_files; /**< TRUE if maximum number of capture files |