ip6-nd: Solicitation reply only if target is our link-local 70/31870/2
authorNeale Ranns <neale@graphiant.com>
Fri, 2 Apr 2021 07:34:39 +0000 (07:34 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 5 Apr 2021 00:56:47 +0000 (00:56 +0000)
commite2b6736e1f5c9a841e37ea1e0c3db4c1989a10ba
tree26740cb0392570b67a02ff3e86810b60cceabe2a
parent014dba38cb9579808a2134fd10a071e4f8c4e213
ip6-nd: Solicitation reply only if target is our link-local

Type: fix

The fib source IP6_ND is used for all link-local entries, hence
solicitation responses were sent for a peer's address. Constrain the
source check to also in clude the LOCAL flag, which indicates that the
link-local address is ours.

Signed-off-by: Neale Ranns <neale@graphiant.com>
Change-Id: Iba7e66049e4d89ee3f36d77aeb09310b978d70de
src/vnet/ip6-nd/ip6_nd.c
test/test_ip6.py