Attached is a patch to 3.10ALPHA9 which forces the ttl of every packet
sent, figured someone else might have a use for it.
A warning for win32 users with the connect() scan:
-- http://www.sockets.com/ws2_stat.htm --
IP_TTL (level IPPROTO_IP): Wierd -- Works fine for SOCK_DGRAM (UDP) and
SOCK_RAW (ICMP) sockets on both Win95 and NT4, but doesn't work for
SOCK_STREAM on either (strange that WSAIoctl() SIO_MULTICAST_SCOPE fails,
since it does the same thing!). The calls to both setsockopt() and
getsockopt() do what appear to be the right thing, but a network analyzer
peek of what is actually sent on the wire reveals that the TTL is still
the default value (128). Same result whether you make the calls before or
after the TCP connection is established.
-HD
---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to
nmap-dev-help_at_insecure.org . List run by ezmlm-idx (www.ezmlm.org).
Received on Dec 29 2002