mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Nmap 3.90
This commit is contained in:
4
tcpip.cc
4
tcpip.cc
@@ -1990,7 +1990,9 @@ void set_pcap_filter(const char *device,
|
||||
#endif
|
||||
char err0r[256];
|
||||
|
||||
if (pcap_lookupnet(device, &localnet, &netmask, err0r) < 0)
|
||||
// Cast below is becaue OpenBSD apparently has a version that takes a
|
||||
// non-const device (hopefully they don't actually write to it).
|
||||
if (pcap_lookupnet( (char *) device, &localnet, &netmask, err0r) < 0)
|
||||
fatal("Failed to lookup subnet/netmask for device (%s): %s", device, err0r);
|
||||
|
||||
va_start(ap, bpf);
|
||||
|
||||
Reference in New Issue
Block a user