Set also the pcap buffer, if the default of 1 MB is used. This bug was

reported by Guy.

svn path=/trunk/; revision=42246
This commit is contained in:
Michael Tüxen 2012-04-25 21:19:31 +00:00
parent 3c866b04d0
commit e08a45d705
1 changed files with 1 additions and 1 deletions

View File

@ -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,