perlquestion
c-era
I have to write an ICMP program, and the TTL is 1. Does anyone know how to change the TTL?
<CODE>
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), 0x04,sockaddr_in (0,inet_aton($host))
) || die $!;
</CODE>
<p><i>Originally posted as a Categorized Question. </i></p>