mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
selftests: netfilter: add flowtable test script
Exercises 3 cases: 1. no pmtu discovery (need to frag) 2. no PMTUd + NAT (don't flag packets as invalid from conntrack) 3. PMTU + NAT (need to send icmp error) The first two cases make sure we handle fragments correctly, i.e. pass them to classic forwarding path. Third case checks we offload everything (in the test case, PMTUd will kick in so all packets should be within link mtu). Nftables rules will filter packets that are supposed to be handled by the fast-path. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
69aeb53858
commit
2de03b4523
2 changed files with 325 additions and 1 deletions
324
tools/testing/selftests/netfilter/nft_flowtable.sh
Executable file
324
tools/testing/selftests/netfilter/nft_flowtable.sh
Executable file
Loading…
Add table
Add a link
Reference in a new issue