1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 06:31:30 +00:00

hopefully fix problem with vmware fusion - see http://seclists.org/nmap-dev/2007/q3/0254.html

This commit is contained in:
fyodor
2007-08-29 08:05:30 +00:00
parent a4dcf90911
commit fc265b6d11

View File

@@ -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, &ethaddr) != 0)
fatal("%s: Failed to obtain MAC address for ethernet interface (%s)",
__func__, mydevs[numifaces].devname);