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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user