[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 03700) Re: Router Alert Query



In article <85be4b3a0608212142m122609b7m7dc63c10aca20128@xxxxxxxxxxxxxx> (at Tue, 22 Aug 2006 10:12:10 +0530), "Gayatri Bulla" <gayatri.bulla@xxxxxxxxx> 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