aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-05-30 04:46:25 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-05-30 04:46:25 +0000
commitec246cae542dcf2f4fb2d61a5f420bad610fbe1b (patch)
tree3b86ee7b73a8417a577b818bd50fe2e85f3ff694 /capture_opts.c
parent047cdd0f2a9f55ab8ef52d2af17090efb446acfb (diff)
fix #148: (win32 only) use command line parameter -B to set capture buffer size
svn path=/trunk/; revision=14484
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 74b1a7992a..6cb03a7a29 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -301,6 +301,11 @@ capture_opts_add_opt(capture_options *capture_opts, const char *appname, int opt
exit(1);
}
break;
+#ifdef _WIN32
+ case 'B': /* Buffer size */
+ capture_opts->buffer_size = get_positive_int(appname, optarg, "buffer size");
+ break;
+#endif
case 'c': /* Capture xxx packets */
capture_opts->has_autostop_packets = TRUE;
capture_opts->autostop_packets = get_positive_int(appname, optarg, "packet count");