diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-09-18 03:13:07 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:19:01 -0400 |
commit | 680a27a23af45307095ae432dd0bc859e1fbe219 (patch) | |
tree | 2f879b84afbbe1a6c8ca296e202367d04528d8e3 /net/ipv6/addrconf.c | |
parent | 0ab6803bc90a8ee5c860ef09334b30007d1746be (diff) |
[IPV6] address: Allow address changes while device is administrative down
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>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 75a69bac82a8..bb18b9c3a5cb 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1886,9 +1886,6 @@ static int inet6_addr_add(int ifindex, struct in6_addr *pfx, int plen, | |||
1886 | if ((dev = __dev_get_by_index(ifindex)) == NULL) | 1886 | if ((dev = __dev_get_by_index(ifindex)) == NULL) |
1887 | return -ENODEV; | 1887 | return -ENODEV; |
1888 | 1888 | ||
1889 | if (!(dev->flags&IFF_UP)) | ||
1890 | return -ENETDOWN; | ||
1891 | |||
1892 | if ((idev = addrconf_add_dev(dev)) == NULL) | 1889 | if ((idev = addrconf_add_dev(dev)) == NULL) |
1893 | return -ENOBUFS; | 1890 | return -ENOBUFS; |
1894 | 1891 | ||
@@ -2922,9 +2919,6 @@ inet6_addr_modify(int ifindex, struct in6_addr *pfx, | |||
2922 | if ((dev = __dev_get_by_index(ifindex)) == NULL) | 2919 | if ((dev = __dev_get_by_index(ifindex)) == NULL) |
2923 | return -ENODEV; | 2920 | return -ENODEV; |
2924 | 2921 | ||
2925 | if (!(dev->flags&IFF_UP)) | ||
2926 | return -ENETDOWN; | ||
2927 | |||
2928 | if (!valid_lft || (prefered_lft > valid_lft)) | 2922 | if (!valid_lft || (prefered_lft > valid_lft)) |
2929 | return -EINVAL; | 2923 | return -EINVAL; |
2930 | 2924 | ||