]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netinet6: fix ndp proxying
authorKUROSAWA Takahiro <takahiro.kurosawa@gmail.com>
Mon, 30 May 2022 07:51:15 +0000 (07:51 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Mon, 30 May 2022 10:53:33 +0000 (10:53 +0000)
commitd6cd20cc5c475e8bbf257ac1474ff490ae4dcab6
tree8f857af42369bfc764578fe3763166e201ce15dc
parent77001f9b6dac3b8f898941287726e5a668bb5897
netinet6: fix ndp proxying

We could insert proxy NDP entries by the ndp command, but the host
with proxy ndp entries had not responded to Neighbor Solicitations.
Change the following points for proxy NDP to work as expected:
* join solicited-node multicast addresses for proxy NDP entries
  in order to receive Neighbor Solicitations.
* look up proxy NDP entries not on the routing table but on the
  link-level address table when receiving Neighbor Solicitations.

Reviewed By: melifaro
Differential Revision: https://reviews.freebsd.org/D35307
MFC after: 2 weeks
sys/net/if.c
sys/net/if_llatbl.c
sys/net/if_llatbl.h
sys/netinet6/in6.c
sys/netinet6/in6_var.h
sys/netinet6/nd6_nbr.c
tests/sys/netinet6/Makefile
tests/sys/netinet6/proxy_ndp.sh [new file with mode: 0755]