mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 08:01:36 +00:00
hopefully fix problem with vmware fusion - see http://seclists.org/nmap-dev/2007/q3/0254.html
This commit is contained in:
7
tcpip.cc
7
tcpip.cc
@@ -2778,9 +2778,10 @@ int sd;
|
||||
eth_t *ethsd = eth_open_cached(mydevs[numifaces].devname);
|
||||
eth_addr_t ethaddr;
|
||||
|
||||
if (!ethsd)
|
||||
fatal("%s: Failed to open ethernet interface (%s). A possible cause on BSD operating systems is running out of BPF devices (see http://seclists.org/lists/nmap-dev/2006/Jan-Mar/0014.html).", __func__,
|
||||
mydevs[numifaces].devname);
|
||||
if (!ethsd) {
|
||||
error("Warning: Unable to open interface %s -- skipping it.", mydevs[numifaces].devname);
|
||||
continue;
|
||||
}
|
||||
if (eth_get(ethsd, ðaddr) != 0)
|
||||
fatal("%s: Failed to obtain MAC address for ethernet interface (%s)",
|
||||
__func__, mydevs[numifaces].devname);
|
||||
|
||||
Reference in New Issue
Block a user