By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,282 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

IPv6 header on raw sockets?

P: n/a

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
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.