From 083f6b6e6dcd97aaf0553d0cfdd0b8a5fd2e6339 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 24 Mar 2015 20:22:00 -0700 Subject: 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 --- cmakeconfig.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmakeconfig.h.in') diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index 0ad3fb521a..b8e15177d3 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -205,6 +205,9 @@ /* Define to 1 if you have the `pcap_create' function. */ #cmakedefine HAVE_PCAP_CREATE 1 +/* Define to 1 if the capture buffer size can be set. */ +#cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1 + /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */ #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1 -- cgit v1.2.3