Bug#410375: network interfaces not autoconfigured for ipv6 after reboot
On Sat, Feb 10, 2007 at 10:40:34AM +0100, Bastian Blank wrote:
> tags 410375 confirmed
> severity 410375 grave
> thanks
>
> On Sat, Feb 10, 2007 at 10:06:55PM +1300, Amos Jeffries wrote:
> > Booting in 2.6.18-3 after the upgrade shows the correct behavior, so it
> > looks like it's a build-specific issue.
>
> There slipped an incomplete patch in which disables the registration of
> the all nodes multicast address.
>
Please find below the missing part of the patch.
--- a/net/ipv6/addrconf.c 2007-02-13 02:18:13.000000000 +0100
+++ b/net/ipv6/addrconf.c 2007-02-13 02:34:07.000000000 +0100
@@ -334,6 +334,7 @@
static struct inet6_dev * ipv6_add_dev(struct net_device *dev)
{
struct inet6_dev *ndev;
+ struct in6_addr maddr;
ASSERT_RTNL();
@@ -404,10 +405,6 @@
if (netif_carrier_ok(dev))
ndev->if_flags |= IF_READY;
- write_lock_bh(&addrconf_lock);
- dev->ip6_ptr = ndev;
- write_unlock_bh(&addrconf_lock);
-
ipv6_mc_init_dev(ndev);
ndev->tstamp = jiffies;
#ifdef CONFIG_SYSCTL
@@ -417,6 +414,15 @@
NULL);
addrconf_sysctl_register(ndev, &ndev->cnf);
#endif
+
+ write_lock_bh(&addrconf_lock);
+ dev->ip6_ptr = ndev;
+ write_unlock_bh(&addrconf_lock);
+
+ /* Join all-node multicast group */
+ ipv6_addr_all_nodes(&maddr);
+ ipv6_dev_mc_inc(dev, &maddr);
+
return ndev;
}
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' aurel32@debian.org | aurelien@aurel32.net
`- people.debian.org/~aurel32 | www.aurel32.net
Reply to: