(usagi-users 03700) Re: Router Alert Query

YOSHIFUJI Hideaki / 吉藤英明 <[email protected]>
Newsgroups gmane.linux.ipv6.usagi.users
Organization USAGI/WIDE Project
Message-ID <[email protected]>
In article <[email protected]> (at Tue, 22 Aug 2006 10:12:10 +0530), "Gayatri Bulla" <[email protected]> says:

> In ip6_ra_control() function in ipv6_sockglue.c file, you are checking this:
> 
> if (sk->type != SOCK_RAW || sk->num != IPPROTO_RAW)
>   return -EINVAL;
> 
> I dint get the importance of sk->num != IPPROTO_RAW check.....
> Why are you checking the local port to be IPPROTO_RAW, what i feel is it
> should parse and handle all raw packets and not just IPPROTO_RAW packets.

No, we won't do this.
This is run in forwarding path and kernel do not parse any headers except
for hop-by-bop option extension header.

The listener application is responsible to parse the entire packet with
router alert option.

--yoshfuji
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.