aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-02-27 20:38:43 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-02-27 20:38:43 +0000
commit6cbcb0d94de08eb686e586fc9a3799daf571b3f6 (patch)
tree6ef6cce99ef4515490059d7f6273d46e27f7c966 /capture_sync.c
parente1c43d00954935aafa6c3dc189067c4bd744c2d8 (diff)
Increase the default buffer size to 2MB.
svn path=/trunk/; revision=47920
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 28631adc4d..b1bc13d70d 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -461,7 +461,8 @@ sync_pipe_start(capture_options *capture_opts) {
}
#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
- if (interface_opts.buffer_size != 1) {
+ /* In pcap-linux.c: by default request 2M for the ring buffer */
+ if (interface_opts.buffer_size != 2) {
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);