X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/371e1fca312ecc698f01dfa16f81c48cb48f7c55..50f375f9f1444e744d6e4b117940f0a7c9dd8c23:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index c4b2c9c4..52af74af 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -92,6 +92,19 @@ The Regents of the University of California. All rights reserved.\n"; #endif /* HAVE_CASPER */ #endif /* HAVE_CAPSICUM */ #ifdef HAVE_PCAP_OPEN +/* + * We found pcap_open() in the capture library, so we'll be using + * the remote capture APIs; define PCAP_REMOTE before we include pcap.h, + * so we get those APIs declared, and the types and #defines that they + * use defined. + * + * WinPcap's headers require that PCAP_REMOTE be defined in order to get + * remote-capture APIs declared and types and #defines that they use + * defined. + * + * (Versions of libpcap with those APIs, and thus Npcap, which is based on + * those versions of libpcap, don't require it.) + */ #define HAVE_REMOTE #endif #include