]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Do not keep linklocal and loopback addresses
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 8 Apr 2016 19:01:21 +0000 (12:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 02:58:37 +0000 (22:58 -0400)
commit4661e17b025a30802714f008cbabd3ec31f73235
tree396dc640e04cfaa80b07e9e701570dffb79bc2d9
parentcf8162d27a354277946dc3708f2007f470868284
net: ipv6: Do not keep linklocal and loopback addresses

101154d9fab9 added the option to retain user configured addresses on an
admin down. A comment to one of the later revisions suggested using the
IFA_F_PERMANENT flag rather than adding a user_managed boolean to the
ifaddr struct. A side effect of this change is that link local and
loopback addresses are also retained which is not part of the objective
of 101154d9fab9. Add check to drop those addresses.

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