]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit - src/ipv6nd.c
inet6: Stop listening to NA messages
authorRoy Marples <roy@marples.name>
Thu, 29 Aug 2019 18:10:53 +0000 (19:10 +0100)
committerRoy Marples <roy@marples.name>
Thu, 29 Aug 2019 18:10:53 +0000 (19:10 +0100)
commit4385f6303584340987ef4ac11295549a36a152ea
tree22277838634e5fdb3577a7d0b0d0c940c3c70f7d
parent7a98a6723aafd07022d28ef0f1498a4637fbeeae
inet6: Stop listening to NA messages

This is very expensive, and we only listen for them for the
Router -> Host flag change. Linux and now NetBSD announce this
change via the netlink/routing socket so there is no longer a
need to listen for it.

RFC 4861 6.2.5 only says departing routers *SHOULD* send RA
with lifetime of zero and *MUST* send all subsequent NA messages
with the router flag unset, so dhcpcd *SHOULD* still work.

For the corner case where it doesn't, consider patching your
kernel.
src/ipv6nd.c