Skip to content

Commit

Permalink
[IPV6] address: Allow address changes while device is administrative …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Thomas Graf authored and David S. Miller committed Sep 22, 2006
1 parent 0ab6803 commit 680a27a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 680a27a

Please sign in to comment.