[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 03691) Router Alert Query
- To: usagi-users@xxxxxxxxxxxxxx
- Subject: (usagi-users 03691) Router Alert Query
- From: "Gayatri Bulla" <gayatri.bulla@xxxxxxxxx>
- Date: Tue, 22 Aug 2006 10:12:10 +0530
- Cc: uxaanurag@xxxxxxxxx, rakesh.khemani@xxxxxxxxxxxxxxx, Srinivasa.Srini@xxxxxxxxxxxxxxx, amit.ag@xxxxxxxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=hFBB9PyU6mjpu38qcB87kQ+mtSWjyTM2KpSbejfJUVZOr0mZYO8BgmVTYIT3ZDb7vD/eOoP+vajVJJ5WEeE5C+U1IFrHgEXumS8p55YvIsF9WYOvlxpjllPaHc49lRCXB4eWvRSyl1fM8oXuhnqoxYBNiTmdPK31lbqT0ZLmGCA=
- Reply-to: usagi-users@xxxxxxxxxxxxxx
- Resent-date: Tue, 22 Aug 2006 14:00:24 +0900
- Resent-from: sekiya@xxxxxxxxxxxxxx
- Resent-message-id: <200608221400.FMLAAB18052.usagi-users@linux-ipv6.org>
- Resent-to: usagi-users@xxxxxxxxxxxxxx (moderated)
Hello,
I have a query related to Router Alert Option.
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.
I am working on multicast forwarding, for that we are creating an raw socket with protocol as IPPROTO_ICMPV6, as ip6_ra_control has a check for IPPROTO_RAW, its failing there.
Please comment on this...
Regards,
Gayatri