]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: avoid dad-failures for addresses with NODAD
authorMahesh Bandewar <maheshb@google.com>
Sat, 13 May 2017 00:03:39 +0000 (17:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2017 18:31:51 +0000 (14:31 -0400)
commit82de7080a0d1814b0b46f24b97407f3ecf4cd638
tree46c8efe4f0cb340ba36156f4f1590c20c11f0894
parent4eea6b4a46c23a30cc1b1a0d95ea21b4e7c5d526
ipv6: avoid dad-failures for addresses with NODAD

Every address gets added with TENTATIVE flag even for the addresses with
IFA_F_NODAD flag and dad-work is scheduled for them. During this DAD process
we realize it's an address with NODAD and complete the process without
sending any probe. However the TENTATIVE flags stays on the
address for sometime enough to cause misinterpretation when we receive a NS.
While processing NS, if the address has TENTATIVE flag, we mark it DADFAILED
and endup with an address that was originally configured as NODAD with
DADFAILED.

We can't avoid scheduling dad_work for addresses with NODAD but we can
avoid adding TENTATIVE flag to avoid this racy situation.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Acked-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c