Subject: Re: nmap not working?
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Martin Husemann <martin@duskware.de>
List: pkgsrc-users
Date: 11/09/2007 19:02:03
It is unrelated to the number of interfaces.
Breakpoint 1, getinterfaces (howmany=0xffffffffffff80cc) at tcpip.cc:2646
2646 printf("%s: not AF_INET, skipping\n", (char *)ifr);
Current language: auto; currently c++
(gdb) print *ifr
$1 = {ifr_name = "hme0", '\0' <repeats 11 times>, ifr_ifru = {ifru_addr = {
sa_len = 18 '\022', sa_family = 18 '\022',
sa_data = "\000\001\006\004\006\000hme0\b\000 |"}, ifru_dstaddr = {
sa_len = 18 '\022', sa_family = 18 '\022',
sa_data = "\000\001\006\004\006\000hme0\b\000 |"}, ifru_broadaddr = {
sa_len = 18 '\022', sa_family = 18 '\022',
sa_data = "\000\001\006\004\006\000hme0\b\000 |"}, ifru_space = {
ss_len = 18 '\022', ss_family = 18 '\022',
__ss_pad1 = "\000\001\006\004\006", __ss_align = 7524781809373028476,
__ss_pad2 = "ùé\000\000\000\000\000/", '\0' <repeats 44 times>, "\022I¹\200\000\000\000\000\000\000\000\002", '\0' <repeats 15 times>, "\004", '\0' <repeats 12 times>, "\022}Ð ", '\0' <repeats 12 times>, "\022IŒü"},
ifru_flags = 4626, ifru_metric = 303169537, ifru_mtu = 303169537,
ifru_dlt = 303169537, ifru_value = 303169537,
ifru_data = 0x1212000106040600, ifru_b = {b_buflen = 303169537,
b_buf = 0x686d65300800207c}}}
This is the struct ifreq it gets back from SIOCGIFCONF - and it skips it
because sa_family is not AF_INET.
Martin