summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-05-06 18:34:30 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-05-06 18:34:30 +0000
commitf9981411f1bab7593b451e37a5815e21334ac5b5 (patch)
tree6662172c875b789af5b1fa447b6fb621db42188b /capture_sync.c
parentc911b0101bccc57ccb12e0f158aa397fe3859756 (diff)
downloadwireshark-f9981411f1bab7593b451e37a5815e21334ac5b5.tar.gz
Checking in Stigs changes from
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=475 BUT not activating the check for pcap_create() pcap_set_buffer_size() This should make it possible to build with support for setting the buffersize if not capturing 802.11 traffic. The code for handling the 'B' option should be OK in any case. svn path=/trunk/; revision=32688
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/capture_sync.c b/capture_sync.c
index b26293d32d..55ff2bd121 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -257,8 +257,10 @@ sync_pipe_start(capture_options *capture_opts) {
#ifdef HAVE_PCAP_SETSAMPLING
char ssampling[ARGV_NUMBER_LEN];
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE)
char buffer_size[ARGV_NUMBER_LEN];
+#endif
+#ifdef _WIN32
HANDLE sync_pipe_read; /* pipe used to send messages from child to parent */
HANDLE sync_pipe_write; /* pipe used to send messages from child to parent */
HANDLE signal_pipe; /* named pipe used to send messages from parent to child (currently only stop) */
@@ -396,7 +398,7 @@ sync_pipe_start(capture_options *capture_opts) {
#endif
#endif
-#ifdef _WIN32
+#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE)
argv = sync_pipe_add_arg(argv, &argc, "-B");
#ifdef HAVE_PCAP_REMOTE
if (capture_opts->src_type == CAPTURE_IFREMOTE)