Subject: Re: [PATCH] Disable router anycast address for /127 prefixes

From: Brian Haley <[email-masked]>
Date: Fri, 01 Jul 2011 10:45:57 -0400

On 07/01/2011 07:22 AM, Bjørn Mork wrote:
> RFC 6164 requires that routers MUST disable Subnet-Router anycast
> for the prefix when /127 prefixes are used.
> 
> Signed-off-by: Bjørn Mork <[email-masked]>
> ---

> @@ -1479,6 +1481,8 @@ static void addrconf_join_anycast(struct inet6_ifaddr *ifp)
>  static void addrconf_leave_anycast(struct inet6_ifaddr *ifp)
>  {
>  	struct in6_addr addr;
> +	if (ifp->prefix_len == 127) /* RFC 6164 */
> +		return;
>  	ipv6_addr_prefix(&addr, &ifp->addr, ifp->prefix_len);
>  	if (ipv6_addr_any(&addr))
>  		return;

I'm not sure you'd need this part as there shouldn't be a /127 in the list to remove.

-Brian