L
Lars Strand
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?
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?