aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-02-22 23:46:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-02-22 23:46:54 +0000
commita25fd8d7cae3a7516da1f67bb77f11fceebb36e8 (patch)
treecaf528df2cf0376be62a139dc8bae0f198bc1c03 /capture.c
parent9677b33abf94de8a17c7f02f84b10bd2a1a9cd70 (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 svn path=/trunk/; revision=13473
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/capture.c b/capture.c
index 2a206c6333..f6fff57de3 100644
--- a/capture.c
+++ b/capture.c
@@ -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;
}