1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

Factor out a function that reports the failure to open an Ethernet

device and exits. On Windows, print a hint about "net start npf" to
start the NPF service.
This commit is contained in:
david
2010-01-15 00:37:39 +00:00
parent f52b57212b
commit c73b250615
8 changed files with 33 additions and 8 deletions

View File

@@ -926,7 +926,7 @@ HostOsScan::HostOsScan(Target *t) {
if ((o.sendpref & PACKET_SEND_ETH) && t->ifType() == devt_ethernet) {
if ((ethsd = eth_open_cached(t->deviceName())) == NULL)
fatal("%s: Failed to open ethernet device (%s)", __func__, t->deviceName());
fatal_eth_open_failure(__func__, t->deviceName());
rawsd = -1;
} else {
/* Init our raw socket */