]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Update Neighbor Cache when IPv6 RA is received on a router
authorDavid Ward <david.ward@ll.mit.edu>
Sat, 29 Aug 2009 07:04:09 +0000 (00:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 07:04:09 +0000 (00:04 -0700)
commit33167940e6ab492a01f9f9d776b8a1f077e6b01d
tree1c1e02ec7b5953669b58c79c1f7d7d5b962f5c07
parentae9f50baa94b44e08bf42e542d495d6567d475d3
ipv6: Update Neighbor Cache when IPv6 RA is received on a router

When processing a received IPv6 Router Advertisement, the kernel
creates or updates an IPv6 Neighbor Cache entry for the sender --
but presently this does not occur if IPv6 forwarding is enabled
(net.ipv6.conf.*.forwarding = 1), or if IPv6 Router Advertisements
are not accepted (net.ipv6.conf.*.accept_ra = 0), because in these
cases processing of the Router Advertisement has already halted.

This patch allows the Neighbor Cache to be updated in these cases,
while still avoiding any modification to routes or link parameters.

This continues to satisfy RFC 4861, since any entry created in the
Neighbor Cache as the result of a received Router Advertisement is
still placed in the STALE state.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c