]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: add testcases for interface names in sets
authorFlorian Westphal <fw@strlen.de>
Sat, 9 Apr 2022 13:58:30 +0000 (15:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Apr 2022 11:43:38 +0000 (13:43 +0200)
commit4c6681a7b2ee8e0d912fb2ba74ceb64ee9b16bfd
treee1513f50a5569bc503ad7721089bbd277e25e83a
parent5e393ea1fc0ad6b59e90103bf83e93b2449d519e
tests: add testcases for interface names in sets

Add initial test case, sets with names and interfaces,
anonymous and named ones.

Check match+no-match.
netns with ppp1 and ppq veth, send packets via both interfaces.
Rule counters should have incremented on the three rules.
(that match on set that have "abcdef1" or "abcdef*" strings in them).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/sets/dumps/sets_with_ifnames.nft [new file with mode: 0644]
tests/shell/testcases/sets/sets_with_ifnames [new file with mode: 0755]