diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-02-28 15:27:56 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-02-28 15:27:56 +0000 |
commit | d0992bf8cd4af994537fb68dae67c1f93bb6906d (patch) | |
tree | c587b58491c2854d5eb75c74e5562708197d9829 /capture_sync.c | |
parent | 1826e2f2194c345260d0f4fadeded8fecb32d54d (diff) | |
download | wireshark-d0992bf8cd4af994537fb68dae67c1f93bb6906d.tar.gz wireshark-d0992bf8cd4af994537fb68dae67c1f93bb6906d.tar.bz2 wireshark-d0992bf8cd4af994537fb68dae67c1f93bb6906d.zip |
Add a #define for the default capture buffer size and use it.
svn path=/trunk/; revision=47942
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/capture_sync.c b/capture_sync.c index b1bc13d70d..ad7378470b 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -461,8 +461,7 @@ sync_pipe_start(capture_options *capture_opts) { } #if defined(_WIN32) || defined(HAVE_PCAP_CREATE) - /* In pcap-linux.c: by default request 2M for the ring buffer */ - if (interface_opts.buffer_size != 2) { + if (interface_opts.buffer_size != DEFAULT_CAPTURE_BUFFER_SIZE) { argv = sync_pipe_add_arg(argv, &argc, "-B"); g_snprintf(buffer_size, ARGV_NUMBER_LEN, "%d", interface_opts.buffer_size); argv = sync_pipe_add_arg(argv, &argc, buffer_size); |