]> err.no Git - linux-2.6/commitdiff
[IPV6] address: Allow address changes while device is administrative down
authorThomas Graf <tgraf@suug.ch>
Mon, 18 Sep 2006 07:13:07 +0000 (00:13 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:19:01 +0000 (15:19 -0700)
Same behaviour as IPv4, using IFF_UP is a no-no anyway.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index 75a69bac82a8c4f69489fe043830cc49f3c2b63a..bb18b9c3a5cba43f9d33570e4aae804375cfcf64 100644 (file)
@@ -1886,9 +1886,6 @@ static int inet6_addr_add(int ifindex, struct in6_addr *pfx, int plen,
        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 @@ inet6_addr_modify(int ifindex, struct in6_addr *pfx,
        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;