[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 00878) Re: Router Altert problem for RSVP on LinuxIPv6
- To: SUPERJFG@xxxxxxxx
- Subject: (usagi-users 00878) Re: Router Altert problem for RSVP on LinuxIPv6
- From: Charles Qi Shen <shenqi@xxxxxxxxxxxxxx>
- Date: Tue, 16 Oct 2001 15:07:07 +0800
- Cc: usagi-users@xxxxxxxxxxxxxx
- List-subscribe: <mailto:usagi-users-ctl@linux-ipv6.org?body=subscribe>
- Reply-to: usagi-users@xxxxxxxxxxxxxx
Hi, Javier:
Sorry if I did not make it clear in the previous post.
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.
If you look at net/ipv6/ipv6_sockglue.c, it says:
/* RA packet may be delivered ONLY to IPPROTO_RAW socket */
if (sk->type != SOCK_RAW || sk->num != IPPROTO_RAW)
return -EINVAL;
Hope it is clearer.
Thanks and regards,
Charles
> Original message:
I'm not sure I understood you. The problem is how to capture the
packets?? If so, you have to set
a flag with the setsockopt function. The flag is ROUTER_ALERT. And if
you want to forward the packet, you only have to send it by means of
the write, send, etc. functions. I hope this information might help
you. If not, tell me exactly
what the problem is. Regards. Javier
Fernández Galván ----- Mensaje Original -----
De: Charles Qi Shen <shenqi@xxxxxxxxxxxxxx>
Fecha: Viernes, Octubre 12, 2001 10:10 am
Asunto: (usagi-users 00863) Router Altert problem for RSVP on Linux IPv6 > Hi,
>
> We are testing RSVP (ISI rsvpd.rel4.2a4-1.tar.gz) on Linux IPv6
> (Redhat
> 7.1, kernel version 2.4.9, or USAGI Sept. 03 2001 release). We
> managed to
> generate Path message with IPv6 Router Alert for RSVP Hop-by-hop
> options
> header according to RFC 2711.
>
> Does anyone know how to make the Linux router capture this RSVP
> message
> based on this option header and direct it to RSVP daemon ?
>
> Any information is greatly appreciated.
>
> Best regards.
>
> Charles
>
> ___________________________________________________________________
Consigue tu e-mail gratuito TERRA.ES
Haz clic en http://www.terra.es/correo/