summaryrefslogtreecommitdiff
path: root/capture_opts.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-06 23:33:41 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-06 23:33:41 +0000
commit7dbbb8c57285cfffcb87a38c73ce1c4f8146b0c1 (patch)
tree1aa042d94c1c2c65a70a49ca2e83874522296849 /capture_opts.h
parent6ee96dc4a444e76650b4fcd87d4ba5e4b44778a4 (diff)
downloadwireshark-7dbbb8c57285cfffcb87a38c73ce1c4f8146b0c1.tar.gz
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. svn path=/trunk/; revision=32695
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 507ced2926..fa9bf6d641 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -105,7 +105,7 @@ typedef struct capture_options_tag {
int sampling_param; /**< PCAP packet sampling parameter */
#endif
#endif
-#if defined(_WIN32) || defined(HAVE_PCAP_SET_BUFFER_SIZE)
+#if defined(_WIN32) || defined(HAVE_PCAP_CREATE)
int buffer_size; /**< the capture buffer size (MB) */
#endif
gboolean has_snaplen; /**< TRUE if maximum capture packet length