nonlocal_bind & IPv6

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Humpula
Date: Friday, June 25, 2010 - 11:43 am

Hi, 

I was just wondering, what's wrong with this?

*** linux-2.6.34/net/ipv6/af_inet6.c    2010-05-16 23:17:36.000000000 +0200
--- linux-2.6.34-hack/net/ipv6/af_inet6.c       2010-06-25 19:50:19.000000000 +0200
***************
*** 345,354 ****
--- 345,356 ----
                        if (!(addr_type & IPV6_ADDR_MULTICAST)) {
                                if (!ipv6_chk_addr(net, &addr->sin6_addr,
                                                   dev, 0)) {
+           if (!sysctl_ip_nonlocal_bind) {
                                        err = -EADDRNOTAVAIL;
                                        goto out_unlock;
            }
                                }
+                       }
                        rcu_read_unlock();
                }
        }

Motivation: just want to balance one IPv6 address between two nodes with the help of 
keepalived the same way I do it with IPv4 without the need of restarting the daemons 
binding on that IP.

Regards

Michal Humpula
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
nonlocal_bind & IPv6, Michal Humpula, (Fri Jun 25, 11:43 am)
Re: nonlocal_bind & IPv6, Rémi Denis-Courmont, (Fri Jun 25, 11:59 am)
Re: nonlocal_bind & IPv6, Michal Humpula, (Fri Jun 25, 12:10 pm)
Re: nonlocal_bind & IPv6, Simon Horman, (Sat Jun 26, 6:25 am)
Re: nonlocal_bind & IPv6, Michal Humpula, (Sat Jun 26, 1:42 pm)
Re: nonlocal_bind & IPv6, Simon Horman, (Tue Jun 29, 9:48 pm)