aboutsummaryrefslogtreecommitdiffstats
path: root/capture_sync.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-06 23:33:41 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-06 23:33:41 +0000
commit3024175b303910a620af9fe66fe012bca61d9900 (patch)
tree1aa042d94c1c2c65a70a49ca2e83874522296849 /capture_sync.c
parentcf13c471b3838fbff8a6a7194d9c03c01f73f0eb (diff)
Just check for pcap_create(); it first appeared in libpcap 1.0.0, and
pcap_set_buffer_size() did as well, so there aren't any libpcap releases with pcap_create() but not pcap_set_buffer_size(). Only do one check for pcap_create. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32695 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_sync.c')
-rw-r--r--capture_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture_sync.c b/capture_sync.c
index 55ff2bd121..ab14c98558 100644
--- a/capture_sync.c
+++ b/capture_sync.c
@@ -257,7 +257,7 @@ sync_pipe_start(capture_options *capture_opts) {
#ifdef HAVE_PCAP_SETSAMPLING
char ssampling[ARGV_NUMBER_LEN];
#endif
-#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE)
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
char buffer_size[ARGV_NUMBER_LEN];
#endif
#ifdef _WIN32
@@ -398,7 +398,7 @@ sync_pipe_start(capture_options *capture_opts) {
#endif
#endif
-#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE)
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
argv = sync_pipe_add_arg(argv, &argc, "-B");
#ifdef HAVE_PCAP_REMOTE
if (capture_opts->src_type == CAPTURE_IFREMOTE)