aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.win32
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-03-24 20:22:00 -0700
committerGuy Harris <guy@alum.mit.edu>2015-03-25 03:22:33 +0000
commit083f6b6e6dcd97aaf0553d0cfdd0b8a5fd2e6339 (patch)
tree50bf2bb41032be6ac8f73f6c6d02a66408027f51 /config.h.win32
parent493ddd5963b2a4f95897f8fa5100277a0973834d (diff)
Have a #define for whether the capture buffer size can be set.
It can be set if either 1) this is Windows (where we're assumed to be using WinPcap, which includes calls to set the buffer size) or 2) we have pcap_create() (in which case we also have pcap_set_buffer_size(), at least in a normal libpcap release). Use that rather than testing "defined(_WIN32) || defined(HAVE_PCAP_CREATE)"; that makes it a bit more obvious what's being tested. Change-Id: Id9f8455019d19206b04dd6820a748cb97ae5ad12 Reviewed-on: https://code.wireshark.org/review/7816 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'config.h.win32')
-rw-r--r--config.h.win329
1 files changed, 7 insertions, 2 deletions
diff --git a/config.h.win32 b/config.h.win32
index 88085d5701..c0074b2888 100644
--- a/config.h.win32
+++ b/config.h.win32
@@ -48,10 +48,15 @@
@HAVE_LIBPCAP@
@HAVE_PCAP_BREAKLOOP@
-@HAVE_PCAP_FINDALLDEVS@
@HAVE_PCAP_DATALINK_NAME_TO_VAL@
-@HAVE_PCAP_DATALINK_VAL_TO_NAME@
+
+/* Always true in WinPcap, even without pcap_capture(). */
+/* Define to 1 if the capture buffer size can be set. */
+#define CAN_SET_CAPTURE_BUFFER_SIZE 1
+
@HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION@
+@HAVE_PCAP_DATALINK_VAL_TO_NAME@
+@HAVE_PCAP_FINDALLDEVS@
@HAVE_PCAP_LIST_DATALINKS@
@HAVE_PCAP_FREE_DATALINKS@