summaryrefslogtreecommitdiff
path: root/capture_sync.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-11-03 21:38:53 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-11-03 21:38:53 +0000
commit32d411be1d003e70becb211bef09e2b8f23e5717 (patch)
treee711aced7655297f48446e856aca63b8f140f032 /capture_sync.c
parentc0dd6c4ca979f3308e9082700aa257a5941f02a2 (diff)
downloadwireshark-32d411be1d003e70becb211bef09e2b8f23e5717.tar.gz
Do not set buffer size for remote interfaces or when using default value.
Do not get link-layer for remote interfaces. svn path=/trunk/; revision=26683
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