nmap/libnetutil
david 3029747902 Actually use the interface address when get_srcaddr fails.
There was an embarrasing bug here added in r28874. In the second of
three calls to get_srcaddr, the interface was being indexed by an index
variable that, in this place, was actually an index into the routes
table. This would in general produce a nonsensical source address or
out-of-bounds access.

The symptom of this problem was the following error messages:
	get_srcaddr: can't connect socket: The requested address is not valid in its context.
	Failed to convert source address to presentation format!?!  Error: Unknown error
The first showed that get_srcaddr failed, and the second was caused by
the bogus source address.

http://seclists.org/nmap-dev/2012/q3/859
http://seclists.org/nmap-dev/2012/q4/59
2012-10-11 03:11:53 +00:00
..
ApplicationLayerElement.h
ARPHeader.cc
ARPHeader.h
DataLinkLayerElement.h
DestOptsHeader.cc
DestOptsHeader.h
EthernetHeader.cc
EthernetHeader.h
FragmentHeader.cc
FragmentHeader.h
HopByHopHeader.cc
HopByHopHeader.h
ICMPHeader.h
ICMPv4Header.cc
ICMPv4Header.h
ICMPv6Header.cc
ICMPv6Header.h
ICMPv6Option.cc
ICMPv6Option.h
ICMPv6RRBody.cc
ICMPv6RRBody.h
IPv4Header.cc
IPv4Header.h
IPv6ExtensionHeader.h
IPv6Header.cc
IPv6Header.h
libnetutil.vcxproj
Makefile.in
netutil.cc Actually use the interface address when get_srcaddr fails. 2012-10-11 03:11:53 +00:00
netutil.h
NetworkLayerElement.cc
NetworkLayerElement.h
npacket.cc
npacket.h
PacketElement.cc
PacketElement.h
PacketParser.cc
PacketParser.h
RawData.cc
RawData.h
RoutingHeader.cc
RoutingHeader.h
TCPHeader.cc
TCPHeader.h
TransportLayerElement.cc
TransportLayerElement.h
UDPHeader.cc
UDPHeader.h