1
0
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:
fyodor
2005-09-07 22:37:43 +00:00
parent 59e4189e70
commit c939fdaf23
7 changed files with 963 additions and 764 deletions

View File

@@ -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);