summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2012-04-25 21:19:31 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2012-04-25 21:19:31 +0000
commite08a45d705dfa4348dff3d51cde795b2a3d90af9 (patch)
tree92fb03457d819143b07e2d2ca895adff85192f5b /dumpcap.c
parent3c866b04d0c1d2e0436331163e9d0124757e74fb (diff)
downloadwireshark-e08a45d705dfa4348dff3d51cde795b2a3d90af9.tar.gz
Set also the pcap buffer, if the default of 1 MB is used. This bug was
reported by Guy. svn path=/trunk/; revision=42246
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c2
1 files changed, 1 insertions, 1 deletions
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,