]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: send unsolicited NA if enabled for all interfaces
authorDavid Ahern <dsa@cumulusnetworks.com>
Sat, 22 Apr 2017 16:10:13 +0000 (09:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 18:07:18 +0000 (14:07 -0400)
commitb6135b9ff1082f7bf1e9f4ff6c63c4f2dd60d6f8
tree2bade33a266614f621dae64b929322ec52d04ba2
parent447c7756c3162655711de1231359b3ae17802dc1
net: ipv6: send unsolicited NA if enabled for all interfaces

When arp_notify is set to 1 for either a specific interface or for 'all'
interfaces, gratuitous arp requests are sent. Since ndisc_notify is the
ipv6 equivalent to arp_notify, it should follow the same semantics.
Commit 4a6e3c5def13 ("net: ipv6: send unsolicited NA on admin up") sends
the NA on admin up. The final piece is checking devconf_all->ndisc_notify
in addition to the per device setting. Add it.

Fixes: 2d9b684602d8 ("ipv6: add knob to send unsolicited ND on link-layer address change")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c