aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-03 21:38:53 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-03 21:38:53 +0000
commit1ac8b3bf056b4197f2b611dbba8f577a5fd28375 (patch)
treee711aced7655297f48446e856aca63b8f140f032 /capture_sync.c
parent4f5385b6618292eb5169a6e2c70ad0fcc5024d8d (diff)
Do not set buffer size for remote interfaces or when using default value.
Do not get link-layer for remote interfaces. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26683 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_sync.c b/capture_sync.c
index ba819677c1..37d3756bcf 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -401,6 +401,12 @@ sync_pipe_start(capture_options *capture_opts) {
#ifdef _WIN32
argv = sync_pipe_add_arg(argv, &argc, "-B");
+#ifdef HAVE_PCAP_REMOTE
+ if (capture_opts->src_type == CAPTURE_IFREMOTE)
+ /* No buffer size when using remote interfaces */
+ g_snprintf(buffer_size, ARGV_NUMBER_LEN, "%d", 1);
+ else
+#endif
g_snprintf(buffer_size, ARGV_NUMBER_LEN, "%d",capture_opts->buffer_size);
argv = sync_pipe_add_arg(argv, &argc, buffer_size);
#endif