netfilter: nft_fib_ipv6: skip ipv6 packets from any to link-local
authorFlorian Westphal <fw@strlen.de>
Tue, 8 Jun 2021 11:48:18 +0000 (13:48 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 Jun 2021 19:11:03 +0000 (21:11 +0200)
commit12f36e9bf678a81d030ca1b693dcda62b55af7c5
treedea414f65eea3dc6a33401d58fe449de87fbe0de
parent82944421243e5988898f54266687586ba07d889e
netfilter: nft_fib_ipv6: skip ipv6 packets from any to link-local

The ip6tables rpfilter match has an extra check to skip packets with
"::" source address.

Extend this to ipv6 fib expression.  Else ipv6 duplicate address detection
packets will fail rpf route check -- lookup returns -ENETUNREACH.

While at it, extend the prerouting check to also cover the ingress hook.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1543
Fixes: f6d0cbcf09c5 ("netfilter: nf_tables: add fib expression")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/nft_fib_ipv6.c