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

(usagi-users 00888) Re: Router Altert problem for RSVP on LinuxIPv6



In article <5.1.0.14.2.20011016133937.00a8eea8@xxxxxxxxxxxxxxxxxxxxxx> (at Tue, 16 Oct 2001 15:07:07 +0800), Charles Qi Shen <shenqi@xxxxxxxxxxxxxx> says:

> The problem for the basic ROUTER_ALERT flag is that, if you initiate a 
> socket with:
> 
> fd = socket (AF_INET6, SOCK_RAW, IPPROTO_RSVP)
> 
> setsocketopt(fd, IPPROTO_IPV6, IPV6_ROUTER_ALERT, (char *) &on, sizeof(on))
> 
> will return -1. The only occasion that setsocketopt for IPV6_ROUTER_ALERT 
> can pass is when you supply the third parameter in socket function with 
> IPPROTO_RAW.

Please read RFC2292 and you will find IPV6_HOPOPTS socket option
to get hop-by-hop option (which will contain router alert option)
in a generic way.

--yoshfuji