Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1003-2.6.25-xen-ipv6-no-autoconf.patch
Parent Directory | Revision Log
Revision 609 -
(show annotations)
(download)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 1359 byte(s)
Fri May 23 17:35:37 2008 UTC (16 years, 4 months ago) by niro
File size: 1359 byte(s)
-using opensuse xen patchset, updated kernel configs
1 | From: Olaf Kirch <okir@suse.de> |
2 | Subject: Allow to bring up network interface w/o ipv6 autoconf |
3 | References: 161888 |
4 | |
5 | When bringing up a xen bridge device, it will always be configured to |
6 | use a MAC address of ff:ff:ff:ff:ff:fe. This greatly confuses IPv6 DAD, |
7 | which starts logging lots and lots of useless messages to syslog. |
8 | |
9 | We really want to disable IPv6 on these interfaces, and there doesn't |
10 | seem to be a reliable way to do this without bringing the interface |
11 | up first (and triggering IPv6 autoconf). |
12 | |
13 | This patch makes autoconf (DAD and router discovery) depend on the |
14 | interface's ability to do multicast. Turning off multicast for an |
15 | interface before bringing it up will suppress autoconfiguration. |
16 | |
17 | net/ipv6/addrconf.c | 2 ++ |
18 | 1 files changed, 2 insertions(+) |
19 | |
20 | --- a/net/ipv6/addrconf.c |
21 | +++ b/net/ipv6/addrconf.c |
22 | @@ -2637,6 +2637,7 @@ |
23 | spin_lock_bh(&ifp->lock); |
24 | |
25 | if (dev->flags&(IFF_NOARP|IFF_LOOPBACK) || |
26 | + !(dev->flags&IFF_MULTICAST) || |
27 | !(ifp->flags&IFA_F_TENTATIVE) || |
28 | ifp->flags & IFA_F_NODAD) { |
29 | ifp->flags &= ~(IFA_F_TENTATIVE|IFA_F_OPTIMISTIC); |
30 | @@ -2730,6 +2731,7 @@ |
31 | if (ifp->idev->cnf.forwarding == 0 && |
32 | ifp->idev->cnf.rtr_solicits > 0 && |
33 | (dev->flags&IFF_LOOPBACK) == 0 && |
34 | + (dev->flags & IFF_MULTICAST) && |
35 | (ipv6_addr_type(&ifp->addr) & IPV6_ADDR_LINKLOCAL)) { |
36 | struct in6_addr all_routers; |
37 |