diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-22 23:46:54 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-02-22 23:46:54 +0000 |
commit | a11f1813cdcc7f79571fd316a560eab707fd0d56 (patch) | |
tree | caf528df2cf0376be62a139dc8bae0f198bc1c03 /capture.c | |
parent | 8b0bc4d2154a2fb6ff60547705308daccbe8b8bd (diff) |
add the number of autostop files to the command line parameters, e.g.:
-a files:20
also added this to the manpage, the user's guide will follow later
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13473 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -196,6 +196,10 @@ set_autostop_criterion(capture_options *capture_opts, const char *autostoparg) } else if (strcmp(autostoparg,"filesize") == 0) { capture_opts->has_autostop_filesize = TRUE; capture_opts->autostop_filesize = get_positive_int(p,"autostop filesize"); + } else if (strcmp(autostoparg,"files") == 0) { + capture_opts->multi_files_on = TRUE; + capture_opts->has_autostop_files = TRUE; + capture_opts->autostop_files = get_positive_int(p,"autostop files"); } else { return FALSE; } |