1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Avoid macro redefinition and WinPcap incompatibility now that Npcap defines PCAP_NETMASK_UNKNOWN

This commit is contained in:
dmiller
2016-08-18 23:53:46 +00:00
parent 265e32dbd6
commit ed59a3d370
4 changed files with 12 additions and 5 deletions

View File

@@ -131,6 +131,12 @@
#include "nbase.h"
#include <pcap.h>
#ifdef WIN32
/* WinPCAP doesn't have this, but Npcap does.
* Using 0 is safe for both, but change this if we decide to drop WinPcap */
#undef PCAP_NETMASK_UNKNOWN
#define PCAP_NETMASK_UNKNOWN 0
#endif
class Target;