Bug 129227 - nmap miscompiled
Summary: nmap miscompiled
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Hendrik Vogelsang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-18 22:05 UTC by Dirk Mueller
Modified: 2005-11-03 09:08 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Mueller 2005-10-18 22:05:30 UTC
hi,  
 
it seems nmap is miscompiled / nonfunctional in stable. it happens when your 
route / default route is not via eth0, for example ath0:  
 
strace gives:  
 
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 
ioctl(3, SIOCGIFCONF, {64, {{"lo", {AF_INET, inet_addr("127.0.0.1")}}, 
{"ath0", {AF_INET, inet_addr("192.168.1.22")}}}}) = 0 
ioctl(3, SIOCGIFNETMASK, {ifr_name="lo", ifr_netmask={AF_INET, 
inet_addr("255.0.0.0")}}) = 0 
ioctl(3, SIOCGIFFLAGS, {ifr_name="lo", ifr_flags=IFF_UP|IFF_LOOPBACK|
IFF_RUNNING}) = 0 
ioctl(3, SIOCGIFNETMASK, {ifr_name="ath0", ifr_netmask={AF_INET, 
inet_addr("255.255.255.0")}}) = 0 
ioctl(3, SIOCGIFFLAGS, {ifr_name="ath0", ifr_flags=IFF_UP|IFF_BROADCAST|
IFF_NOTRAILERS|IFF_RUNNING|IFF_MULTICAST}) = 0 
ioctl(3, SIOCGIFHWADDR, {ifr_name="ath0", ifr_hwaddr=00:05:4e:4d:05:6e}) = 0 
ioctl(3, SIOCGIFNETMASK, {ifr_name="", ???}) = -1 ENODEV (No such device) 
write(2, "Failed to determine the netmask "..., 36Failed to determine the 
netmask of !) = 36 
write(2, " : No such device\n", 18 : No such device 
)     = 18 
munmap(0x40017000, 4096)                = 0 
exit_group(1)                           = ? 
 
 
as you can see, ifr_name is suddenly the empty string
Comment 1 Hendrik Vogelsang 2005-10-20 14:23:18 UTC
doH! not again....
Comment 2 Dirk Mueller 2005-11-03 01:08:31 UTC
submitted update. 
Comment 3 Hendrik Vogelsang 2005-11-03 09:08:28 UTC
thanks dirk