]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: Fix nft_fib.sh for all.rp_filter=1
authorPhil Sutter <phil@nwl.cc>
Wed, 5 Oct 2022 15:34:36 +0000 (17:34 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 12 Oct 2022 12:08:15 +0000 (14:08 +0200)
commita5eb55cb116daf338ba4d949e1789a3126683be7
treeb65441e33152d17aac3dbde39715bae56ed98110
parente9cdc9a27e36114e6d231a770b546de777a95590
selftests: netfilter: Fix nft_fib.sh for all.rp_filter=1

If net.ipv4.conf.all.rp_filter is set, it overrides the per-interface
setting and thus defeats the fix from 9b3dc2430fd41 ("selftests:
netfilter: disable rp_filter on router"). Unset it as well to cover that
case.

Fixes: 9b3dc2430fd41 ("selftests: netfilter: disable rp_filter on router")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
tools/testing/selftests/netfilter/nft_fib.sh