Nmap Development mailing list archives

Re: route_dst_netlink: can't find interface


From: Sebastiaan Vileijn <sebastiaan.vileijn () gmail com>
Date: Tue, 25 Sep 2012 21:24:02 +0200

On 25 Sep 2012, at 10:34, Djalal Harouni wrote:

Hi Sebastiann,

On Sat, Sep 22, 2012 at 04:45:21PM +0200, Sebastiaan Vileijn wrote:
[...]
ath0/wifi0 is an Atheros wireless network card using the madwifi svn r4165 kernel module. The card is operating in 
access point mode.
Any pointers on how I can debug this? I've tried nmap from svn (r29847) as well, but it failed too.

thanks

Sebastiaan

Does the attached patch work for you ?
<nmap_fix_for_ieee_80211_interfaces.patch>


Yes, it does:

# /home/sv/sources/nmap/nmap --iflist

Starting Nmap 6.02 ( http://nmap.org ) at 2012-09-25 21:02 CEST
************************INTERFACES************************
DEV   (SHORT) IP/MASK                     TYPE     UP   MTU   MAC
lo    (lo)    127.0.0.1/8                 loopback up   16436
lo    (lo)    ::1/128                     loopback up   16436
eth2  (eth2)  (null)/0                    ethernet down 1500  00:05:5D:06:7F:71
eth4  (eth4)  (null)/0                    ethernet down 1500  00:40:F4:6E:15:A8
eth3  (eth3)  (null)/0                    ethernet down 1500  00:C0:DF:0E:10:FF
eth0  (eth0)  192.168.5.2/24              ethernet up   1500  00:50:DA:4B:76:97
eth0  (eth0)  192.168.5.3/24              ethernet up   1500  00:50:DA:4B:76:97
eth0  (eth0)  fe80::250:daff:fe4b:7697/64 ethernet up   1500  00:50:DA:4B:76:97
wifi0 (wifi0) (null)/0                    ethernet up   1500  00:13:46:74:2E:1A
ath0  (ath0)  192.168.20.1/24             ethernet up   1500  00:13:46:74:2E:1A
ath0  (ath0)  fe80::213:46ff:fe74:2e1a/64 ethernet up   1500  00:13:46:74:2E:1A

**************************ROUTES**************************
DST/MASK        DEV  GATEWAY
192.168.5.0/24  eth0
192.168.20.0/24 eth0
127.0.0.0/8     lo   127.0.0.1
0.0.0.0/0       eth0 192.168.5.1

I also tried a few quick scans (using ath0 and eth0 as interface) and everything worked correctly.

Thanks.
Thanks a lot for the quick fix :-)


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: