aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-05-18 19:29:47 +0000
committerGuy Harris <guy@alum.mit.edu>2011-05-18 19:29:47 +0000
commitd391f403dac4013e06eb7772af92abfc7c267de9 (patch)
tree256f91e8d932cb44a41daa7fb31c19623ee07782 /capture_sync.c
parent3bb5e937d48628d4722bf0d28bb7400f1ca93da5 (diff)
downloadwireshark-d391f403dac4013e06eb7772af92abfc7c267de9.tar.gz
wireshark-d391f403dac4013e06eb7772af92abfc7c267de9.tar.bz2
wireshark-d391f403dac4013e06eb7772af92abfc7c267de9.zip
We don't have the ability to set the capture buffer size on all platforms.
svn path=/trunk/; revision=37255
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index e2c691e160..bafe7b43c8 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -449,11 +449,13 @@ sync_pipe_start(capture_options *capture_opts) {
argv = sync_pipe_add_arg(argv, &argc, "-p");
}
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
if (interface_opts.buffer_size != 1) {
argv = sync_pipe_add_arg(argv, &argc, "-B");
g_snprintf(buffer_size, ARGV_NUMBER_LEN, "%d", interface_opts.buffer_size);
argv = sync_pipe_add_arg(argv, &argc, buffer_size);
}
+#endif
if (interface_opts.monitor_mode) {
argv = sync_pipe_add_arg(argv, &argc, "-I");