Same behaviour as IPv4, using IFF_UP is a no-no anyway.

Signed-off-by: Thomas Graf <[EMAIL PROTECTED]>

Index: net-2.6.19/net/ipv6/addrconf.c
===================================================================
--- net-2.6.19.orig/net/ipv6/addrconf.c 2006-09-01 23:15:24.000000000 +0200
+++ net-2.6.19/net/ipv6/addrconf.c      2006-09-01 23:15:25.000000000 +0200
@@ -1886,9 +1886,6 @@
        if ((dev = __dev_get_by_index(ifindex)) == NULL)
                return -ENODEV;
        
-       if (!(dev->flags&IFF_UP))
-               return -ENETDOWN;
-
        if ((idev = addrconf_add_dev(dev)) == NULL)
                return -ENOBUFS;
 
@@ -2922,9 +2919,6 @@
        if ((dev = __dev_get_by_index(ifindex)) == NULL)
                return -ENODEV;
 
-       if (!(dev->flags&IFF_UP))
-               return -ENETDOWN;
-
        if (!valid_lft || (prefered_lft > valid_lft))
                return -EINVAL;
 


-- 
VGER BF report: H 1.17609e-05
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to