selftests: netfilter: add meta iif/oif match test
Florian Westphal
maintainerPATCH 1/1 selftests: netfilter: add meta iif/oif match test
simple test case, but would have caught this:
FAIL: iifgroupcount, want "packets 2", got
table inet filter {
counter iifgroupcount {
packets 0 bytes 0
}
}Signed-off-by Florian Westphal <[email protected]>
--- tools/testing/selftests/netfilter/Makefile | 2 +- tools/testing/selftests/netfilter/nft_meta.sh | 124 ++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) create mode 100755 tools/testing/selftests/netfilter/nft_meta.sh
tools/testing/selftests/netfilter/Makefile +1 -1
@@ -4,7 +4,7 @@ TEST_PROGS := nft_trans_stress.sh nft_nat.sh bridge_brouter.sh \ conntrack_icmp_related.sh nft_flowtable.sh ipvs.sh \ nft_concat_range.sh nft_conntrack_helper.sh \ - nft_queue.sh + nft_queue.sh nft_meta.sh LDLIBS = -lmnl TEST_GEN_FILES = nf-queue
tools/testing/selftests/netfilter/nft_meta.sh new file +124 -0
124 lines not on this page · raw message
Signature · 1 line
2.26.2