netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Anycast usage, final diagnosis? (was: IPv6: Fix broken anycast usage)
@ 2003-07-17  8:38 Mika Liljeberg
  2003-07-17  9:06 ` Anycast usage, final diagnosis? (was: IPv6: Fix broken anycast kuznet
  0 siblings, 1 reply; 7+ messages in thread
From: Mika Liljeberg @ 2003-07-17  8:38 UTC (permalink / raw)
  To: kuznet; +Cc: kuznet, davem, jmorris, pekkas, netdev

Alexey,

On Thu, 2003-07-17 at 05:23, kuznet@ms2.inr.ac.ru wrote:
> diff -Nru a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
> --- a/net/ipv6/ndisc.c	Thu Jul 17 06:13:09 2003
> +++ b/net/ipv6/ndisc.c	Thu Jul 17 06:13:09 2003
> @@ -785,8 +785,7 @@
>  			ipv6_addr_all_nodes(&maddr);
>  			ndisc_send_na(dev, NULL, &maddr, &ifp->addr, 
>  				      ifp->idev->cnf.forwarding, 0, 
> -				      ipv6_addr_type(&ifp->addr)&IPV6_ADDR_ANYCAST ? 0 : 1, 
> -				      1);
> +				      1, 1);
>  			in6_ifa_put(ifp);
>  			return;
>  		}
> @@ -809,8 +808,7 @@
>  			if (neigh || !dev->hard_header) {
>  				ndisc_send_na(dev, neigh, saddr, &ifp->addr, 
>  					      ifp->idev->cnf.forwarding, 1, 
> -					      ipv6_addr_type(&ifp->addr)&IPV6_ADDR_ANYCAST ? 0 : 1, 
> -					      1);
> +					      1, 1);
>  				if (neigh)
>  					neigh_release(neigh);
>  			}

I'm not sure you can just remove these. It seems possible (?) to have
the anycast address configured on one of the interfaces as a unicast at
the same time. I.e., one of the anycast members could own the address.

For what it's worth, I think you have the right semantics.

	MikaL

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-07-19  6:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200307171030.OAA13906@dub.inr.ac.ru>
2003-07-17 10:41 ` Anycast usage, final diagnosis? (was: IPv6: Fix broken anycast Pekka Savola
     [not found]   ` <200307172052.AAA15032@dub.inr.ac.ru>
2003-07-17 21:51     ` David S. Miller
2003-07-17 22:28       ` YOSHIFUJI Hideaki / 吉藤英明
2003-07-18  6:44     ` Pekka Savola
2003-07-19  6:41     ` David S. Miller
2003-07-17  8:38 Anycast usage, final diagnosis? (was: IPv6: Fix broken anycast usage) Mika Liljeberg
2003-07-17  9:06 ` Anycast usage, final diagnosis? (was: IPv6: Fix broken anycast kuznet
2003-07-17  9:32   ` Mika Liljeberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).