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

(usagi-users 00481) RouterAlert in Linux 2.4.3 original



Hello. I'm a korean student who is making RSVP daemon on Linux 2.4.3.
I have a question about "ip6_ra_control" function in "ipv6_sockglue.c".
RSVP's protocol number is 46.  ISI RSVP implement and my implement uses "socket (AF_INET6,SOCK_RAW, ipproto_rsvp)" and ipproto_rsvp=46.
I can't setting Route Alert for IPv6. because "ip6_ra_control" has a strange condition:
82: if(sk->type!=SOCK_RAW||sk->num!=IPPROTO_RAW)
83:                    return -EINVAL;
I can't understand the second condition sk->num!=IPPROTO_RAW which means only IPPROTO_RAW socket can use Router Alert.
If the second condition is right, it won't be a efficient thing. Because, applications program must parse and handle all packets.
In fact, I'm poor at English. Sorry. but I think that the second condition must be removed.
I'm waiting for your feedback.
 
                                                Softgear Ko.  softgear@xxxxxxxxxxxxx
 
PS. Author,Pedro Roque's Email has something wrong, I think.