]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: send unsolicited NA on admin up
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 12 Apr 2017 18:49:04 +0000 (11:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 16:44:55 +0000 (12:44 -0400)
commit085c1b68ec107f9197ed93e77890f9234b564436
tree819fb5b47fc2141e6da1e14166c72891d5efec10
parentb3a850044c773f4e0189d615944157e07f21ef7e
net: ipv6: send unsolicited NA on admin up

ndisc_notify is the ipv6 equivalent to arp_notify. When arp_notify is
set to 1, gratuitous arp requests are sent when the device is brought up.
The same is expected when ndisc_notify is set to 1 (per ndisc_notify in
Documentation/networking/ip-sysctl.txt). The NA is not sent on NETDEV_UP
event; add it.

Fixes: 2d9b684602d8 ("ipv6: add knob to send unsolicited ND on link-layer address change")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c