From d0992bf8cd4af994537fb68dae67c1f93bb6906d Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Thu, 28 Feb 2013 15:27:56 +0000 Subject: Add a #define for the default capture buffer size and use it. svn path=/trunk/; revision=47942 --- capture_opts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capture_opts.c') diff --git a/capture_opts.c b/capture_opts.c index 6ab046b41b..c297b1396f 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -70,7 +70,7 @@ capture_opts_init(capture_options *capture_opts, void *cf) capture_opts->default_options.linktype = -1; capture_opts->default_options.promisc_mode = TRUE; #if defined(_WIN32) || defined(HAVE_PCAP_CREATE) - capture_opts->default_options.buffer_size = 2; /* 2 MB, In pcap-linux.c: by default request 2M for the ring buffer */ + capture_opts->default_options.buffer_size = DEFAULT_CAPTURE_BUFFER_SIZE; #endif capture_opts->default_options.monitor_mode = FALSE; #ifdef HAVE_PCAP_REMOTE -- cgit v1.2.1