]> err.no Git - linux-2.6/blobdiff - net/ipv6/addrconf.c
Pull sn-handle-sc-powerdown into release branch
[linux-2.6] / net / ipv6 / addrconf.c
index 1db50487916bf002a3ed92316d57b9cbe377f6e5..19727d9419625427cedeb7c674c2974bc60821c6 100644 (file)
@@ -822,7 +822,7 @@ struct ipv6_saddr_score {
        int             addr_type;
        unsigned int    attrs;
        int             matchlen;
-       unsigned int    scope;
+       int             scope;
        unsigned int    rule;
 };
 
@@ -2165,6 +2165,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,
                                        dev->name);
                                break;
                        }
+
+                       if (idev)
+                               idev->if_flags |= IF_READY;
                } else {
                        if (!netif_carrier_ok(dev)) {
                                /* device is still not ready. */