Re: socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6)
From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2003-03-12 12:39:03
From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2003-03-12 12:39:03
In article [ref] (at Wed, 12 Mar 2003 13:17:47 +0100 (CET)), Marcin Kaminski [off-list ref] says:
When I create socket like:
interfaceSocket = socket(PF_INET, SOCK_RAW, IPPROTO_ICMP);
I receive ICMPv4 packets with IP header, but when I use
interfaceSocket = socket(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
I receive ICMPv6 packets WITHOUT IPv6 header.It is because of the specification (RFC2292).
What should I do in order to get full packet? Man pages of raw(7) tell:
There're no portable way to send/receive whole packet including IPv6 header (and possible extension header(s)).
What should I do in order to get full packet? Man pages of raw(7) tell: For receiving the IP header is always included in the packet. But it is not true for IPv6 :(
It is an error of that manpage. -- Hideaki YOSHIFUJI @ USAGI Project [off-list ref] GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA