From e08a45d705dfa4348dff3d51cde795b2a3d90af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= Date: Wed, 25 Apr 2012 21:19:31 +0000 Subject: [PATCH] Set also the pcap buffer, if the default of 1 MB is used. This bug was reported by Guy. svn path=/trunk/; revision=42246 --- dumpcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dumpcap.c b/dumpcap.c index 958c593962..5acbbbe806 100644 --- a/dumpcap.c +++ b/dumpcap.c @@ -671,7 +671,7 @@ open_capture_device(interface_options *interface_opts, g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG, "buffersize %d.", interface_opts->buffer_size); - if (interface_opts->buffer_size > 1) { + if (interface_opts->buffer_size != 0) { pcap_set_buffer_size(pcap_h, interface_opts->buffer_size * 1024 * 1024); } g_log(LOG_DOMAIN_CAPTURE_CHILD, G_LOG_LEVEL_DEBUG,