Nmap Development mailing list archives
Re: nmap --iflist fails when firewire network interface exists
From: Daniel Miller <bonsaiviking () gmail com>
Date: Thu, 19 Jun 2014 14:00:08 -0500
thanos, Thank you for the bug report. This is unfortunately the way Nmap handles unknown interface types. If you could apply the patch below, we should be able to add this interface type: diff --git a/libdnet-stripped/src/addr.c b/libdnet-stripped/src/addr.c index 8953b5b..58ccbf4 100644 --- a/libdnet-stripped/src/addr.c +++ b/libdnet-stripped/src/addr.c @@ -350,6 +350,7 @@ addr_ston(const struct sockaddr *sa, struct addr *a) memset(&a->addr_eth, 0, ETH_ADDR_LEN); break; default: + fprintf(stderr, "Unknown interface type or address family: %u\n", sa->sa_family); errno = EINVAL; return (-1); } Thanks for your help! Dan On Thu, Jun 19, 2014 at 3:03 AM, thanos z <athanasios.zorbas () gmail com> wrote:
Hi, I would like to report that nmap cannot find any interfaces and routes when a firewire network interface exists: [than@althaia ~]$ nmap --iflist Starting Nmap 6.45 ( http://nmap.org ) at 2014-06-18 18:10 EEST ************************INTERFACES************************ DEV (SHORT) IP/MASK TYPE UP MTU MAC p3p1 (p3p1) 10.11.13.12/16 ethernet up 1500 00:1E:68:7C:CF:10 p3p1 (p3p1) fe80::21e:68ff:fe7c:cf10/64 ethernet up 1500 00:1E:68:7C:CF:10 lo (lo) 127.0.0.1/8 loopback up 65536 lo (lo) ::1/128 loopback up 65536 **************************ROUTES************************** DST/MASK DEV METRIC GATEWAY 10.11.0.0/16 p3p1 0 0.0.0.0/0 p3p1 1024 10.11.12.1 ::1/128 lo 0 fe80::21e:68ff:fe7c:cf10/128 lo 0 ff02::2/128 p3p1 0 ::1/128 lo 256 fe80::/64 p3p1 256 ff00::/8 p3p1 256 [than@althaia ~]$ sudo modprobe firewire-net [sudo] password for than: [than@althaia ~]$ ip l 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: p3p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 00:1e:68:7c:cf:10 brd ff:ff:ff:ff:ff:ff 12: firewire0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 20 link/ieee1394 00:24:1b:00:8f:e6:03:01:0a:02:80:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff [than@althaia ~]$ nmap --iflist Starting Nmap 6.45 ( http://nmap.org ) at 2014-06-18 18:10 EEST INTERFACES: NONE FOUND(!) ROUTES: NONE FOUND(!) _______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- nmap --iflist fails when firewire network interface exists thanos z (Jun 19)
- Re: nmap --iflist fails when firewire network interface exists Daniel Miller (Jun 19)