]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite94b191f8f2ab4a7dd43d46b0306b28e25908b87
treedea414f65eea3dc6a33401d58fe449de87fbe0de
parentbc6f864c8e1886a68818de59922e77240a6b4782
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: 798b8c4613cc ("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