]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: netfilter: add ebtables broute test case
authorFlorian Westphal <fw@strlen.de>
Thu, 11 Apr 2019 14:36:39 +0000 (16:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Apr 2019 23:45:58 +0000 (01:45 +0200)
commit3e5dc2850d606673f9d7e0142f6fa9978891cc4e
tree8d016e221ff95decadb9c846f0ac21421e5d8bb6
parent3ed8a83aa94a49dd95b314af09a45a45e3f3899d
selftests: netfilter: add ebtables broute test case

ebtables -t broute allows to redirect packets in a way that
they get pushed up the stack, even if the interface is part
of a bridge.

In case of IP packets to non-local address, this means
those IP packets are routed instead of bridged-forwarded, just
as if the bridge would not have existed.

Expected test output is:
PASS: netns connectivity: ns1 and ns2 can reach each other
PASS: ns1/ns2 connectivity with active broute rule
PASS: ns1/ns2 connectivity with active broute rule and bridge forward drop

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tools/testing/selftests/netfilter/Makefile
tools/testing/selftests/netfilter/bridge_brouter.sh [new file with mode: 0755]