]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: fix regression of no RTM_DELADDR sent after DAD failure
authorMike Manning <mmanning@brocade.com>
Mon, 4 Sep 2017 14:52:55 +0000 (15:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:42:09 +0000 (16:42 -0700)
commit7fff10e008c6f60f72cb40dc529eead3bdd852d3
tree9d249de8b5e5a688c48ce999a75fda7b9a824e13
parentebad17b653e77161d750d16e08955047697e4aa9
net: ipv6: fix regression of no RTM_DELADDR sent after DAD failure

Commit 091b74b66d24 ("ipv6: do not send RTM_DELADDR for tentative
addresses") incorrectly assumes that no RTM_NEWADDR are sent for
addresses in tentative state, as this does happen for the standard
IPv6 use-case of DAD failure, see the call to ipv6_ifa_notify() in
addconf_dad_stop(). So as a result of this change, no RTM_DELADDR is
sent after DAD failure for a link-local when strict DAD (accept_dad=2)
is configured, or on the next admin down in other cases. The absence
of this notification breaks backwards compatibility and causes problems
after DAD failure if this notification was being relied on. The
solution is to allow RTM_DELADDR to still be sent after DAD failure.

Fixes: 091b74b66d24 ("ipv6: do not send RTM_DELADDR for tentative addresses")
Signed-off-by: Mike Manning <mmanning@brocade.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c