# Set the capture type to NPF.
#
set(PCAP_TYPE npf)
-
- #
- # Check whether ntddndis.h defines NdisMediumIP.
- # SDKs for older versions of Windows (Windows 7,
- # Windows 8?) don't define it.
- # It's an enum value, so this is the only way
- # to test whether it's defined.
- #
- check_c_source_compiles(
-"/* Old-school MinGW have these headers in a different place.
- */
-#include <winsock2.h>
-#if defined(__MINGW32__) && !defined(__MINGW64_VERSION_MAJOR)
- #include <ddk/ntddndis.h>
- #include <ddk/ndis.h>
-#else
- #include <ntddndis.h> /* MSVC/TDM-MinGW/MinGW64 */
-#endif
-
-int
-main(void)
-{
- return NdisMediumIP;
-}
-"
- HAVE_NDIS_MEDIUM_IP)
else()
#
# We don't have any capture type we know about, so just use
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1
-/* Define to 1 if you have the `NdisMediumIP` enum value. */
-#cmakedefine HAVE_NDIS_MEDIUM_IP 1
-
/* Define to 1 if you have the <netpacket/packet.h> header file. */
#cmakedefine HAVE_NETPACKET_PACKET_H 1