IPv6 header on raw sockets?
Lars Strand
larstra-nospam at ifi.uio.no
Thu Feb 19 08:59:54 EST 2004
I'm using raw sockets to send ICMPv6 echo/reply packets,
and would like to examine the IP header on the reply packet.
When using raw socket "the IPv6 header and any extension
headers are never passed to a raw IPv6 socket":
http://ccl.cnu.ac.kr/~mhkang/raw_sockets.htm
When skimming through the ping6.c, I see that they set some
socket options using setsockopt (IPV6_RECVHOPLIMIT). I have
tried to set
pingSocket.setsockopt(IPPROTO_IPV6, IPV6_RECVHOPLIMIT, 1)
but it don't work. Is there any way to get the whole IP
packet when using IPv6 and raw sockets?
--
Lars Strand
GnuPG/PGP Key: http://www.gnist.org/~lars/pubkey.asc ID: 972F4325
"The Internet? Is that thing still around?" -- Homer Simpson
More information about the Python-list
mailing list