diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-04-03 11:10:14 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-04-03 11:10:26 -0700 |
commit | e6b28d9d94ec5bf3a23b15164aa3f0e3b7a06d15 (patch) | |
tree | 1a278e33d60ef78cdf8b0f094747b575701dbe46 /tcpdump.c | |
parent | de707da02a540a8732f16c583d939d38763a6453 (diff) | |
download | tcpdump-e6b28d9d94ec5bf3a23b15164aa3f0e3b7a06d15.tar.gz |
Explain why we're defining HAVE_REMOTE before including pcap.h.
Diffstat (limited to 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 <pcap.h> |