]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: send NS for DAD when link operationally up
authorMike Manning <mmanning@brocade.com>
Mon, 25 Sep 2017 21:01:36 +0000 (22:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Sep 2017 04:24:45 +0000 (05:24 +0100)
commit4f4315539b0ee40a4e381ec8be089a490e82c36a
tree087fce5cfda51c9ea699848173ec1fc3152ae982
parent3ab3ad1eaab2cb0f6b6682fae6fc8d87128db9d0
net: ipv6: send NS for DAD when link operationally up

The NS for DAD are sent on admin up as long as a valid qdisc is found.
A race condition exists by which these packets will not egress the
interface if the operational state of the lower device is not yet up.
The solution is to delay DAD until the link is operationally up
according to RFC2863. Rather than only doing this, follow the existing
code checks by deferring IPv6 device initialization altogether. The fix
allows DAD on devices like tunnels that are controlled by userspace
control plane. The fix has no impact on regular deployments, but means
that there is no IPv6 connectivity until the port has been opened in
the case of port-based network access control, which should be
desirable.

Signed-off-by: Mike Manning <mmanning@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c