]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Do not keep IPv6 addresses when IPv6 is disabled
authorMike Manning <mmanning@brocade.com>
Fri, 12 Aug 2016 11:02:38 +0000 (12:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Aug 2016 22:14:00 +0000 (15:14 -0700)
commit78c2aab8e92698da92b57c05d5e086221fae9c95
tree21cabbcc474e473c5287a28555646fff6756482f
parentf67e14c2ed00d880134f704bcc585f67821bc756
net: ipv6: Do not keep IPv6 addresses when IPv6 is disabled

If IPv6 is disabled when the option is set to keep IPv6
addresses on link down, userspace is unaware of this as
there is no such indication via netlink. The solution is to
remove the IPv6 addresses in this case, which results in
netlink messages indicating removal of addresses in the
usual manner. This fix also makes the behavior consistent
with the case of having IPv6 disabled first, which stops
IPv6 addresses from being added.

Fixes: 101154d9fab9 ("net: ipv6: Make address flushing on ifdown optional")
Signed-off-by: Mike Manning <mmanning@brocade.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c