]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: do not send RTM_DELADDR for tentative addresses
authorMahesh Bandewar <maheshb@google.com>
Wed, 4 Jan 2017 23:01:01 +0000 (15:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jan 2017 20:39:31 +0000 (15:39 -0500)
commitd97671e417fabba0fe8b636e47166e1e2659e47b
treecc84803c7afa37b3620cfccf7fe9b5593751f0ab
parent02710818b1b93b4f1728231d8b134c4fcfbda2b6
ipv6: do not send RTM_DELADDR for tentative addresses

RTM_NEWADDR notification is sent when IFA_F_TENTATIVE is cleared from
the address. So if the address is added and deleted before DAD probes
completes, the RTM_DELADDR will be sent for which there was no
RTM_NEWADDR causing asymmetry in notification. However if the same
logic is used while sending RTM_DELADDR notification, this asymmetry
can be avoided.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
CC: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
CC: Patrick McHardy <kaber@trash.net>
CC: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c