Re: IPv6 router alert and interface binding

2005-07-23 Thread Andrew McDonald
On Fri, Jul 22, 2005 at 08:12:58PM -0400, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote: > In article <[EMAIL PROTECTED]> (at Thu, 21 Jul 2005 21:44:43 +0100), Andrew > McDonald <[EMAIL PROTECTED]> says: > > > I guess the fix would be a matter of changing: > > > > if (sk && ra->sel == sel) { > > > > to

Re: IPv6 router alert and interface binding

2005-07-22 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Thu, 21 Jul 2005 21:44:43 +0100), Andrew McDonald <[EMAIL PROTECTED]> says: > I guess the fix would be a matter of changing: > > if (sk && ra->sel == sel) { > > to: > > if (sk && ra->sel == sel && > (!sk->sk_bound_dev_if || > sk->sk_bound_dev_if == s

IPv6 router alert and interface binding

2005-07-21 Thread Andrew McDonald
Hi, I've noticed a difference between the IPv4 and IPv6 router alert handling, which I think constitutes a bug. For IPv4, you can bind a socket to an interface. If you use the IP_ROUTER_ALERT sockopt then packets with router alert options are only delivered to raw sockets bound to the incoming in