diff options
author | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-06 18:34:30 +0000 |
---|---|---|
committer | etxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-05-06 18:34:30 +0000 |
commit | 571dbab7a130da08db863a3dc97cc3bad9fcb726 (patch) | |
tree | 6662172c875b789af5b1fa447b6fb621db42188b /capture_sync.c | |
parent | 37883475258e7262a0647f1d052f64e88c26ee82 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32688 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 6 |
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) |