Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Answer: How do I increase the TTL on a socket?

by c-era (Curate)
on May 16, 2000 at 18:40 UTC ( #11856=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I increase the TTL on a socket? - Answer contributed by c-era

I found my own answer:
use Socket; $host="somehost"; socket(SOCK,PF_INET, SOCK_RAW, getprotobyname('icmp')) || die $!; send (SOCK, pack("C2 S5", 17, 0, 0xc898,0x2667,0,0,0),0,sockaddr_in (0 +,inet_aton($host))) || die $!; ^
The flag was just set wrong, I also found out how to change the TTL (at least for Solaris):
setsockopt (SOCK,0,4,<TTL>);

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-09-29 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (545 votes). Check out past polls.