From fc265b6d1119141e5c5efebd874e18eeffaab71d Mon Sep 17 00:00:00 2001 From: fyodor Date: Wed, 29 Aug 2007 08:05:30 +0000 Subject: [PATCH] hopefully fix problem with vmware fusion - see http://seclists.org/nmap-dev/2007/q3/0254.html --- tcpip.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tcpip.cc b/tcpip.cc index 9ad3bd990..5aa281044 100644 --- a/tcpip.cc +++ b/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);