]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: Test ifname-based hooks master
authorPhil Sutter <phil@nwl.cc>
Tue, 15 Jul 2025 13:26:33 +0000 (15:26 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 30 Sep 2025 21:05:12 +0000 (23:05 +0200)
commit12c31bc2a822437d026b0cd83143d45808971404
treef3d6a40fdbd5c187f23e96e6d1892370147eaa01
parent796de697f662064d256e628bc5c703b6d14ae391
tests: shell: Test ifname-based hooks

Assert that:
- Non-matching interface specs are accepted
- Existing interfaces are hooked into upon flowtable/chain creation
- A new device matching the spec is hooked into immediately
- No stale hooks remain in 'nft list hooks' output
- Wildcard hooks basically work

Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/features/list_hooks_flowtable_info.sh [new file with mode: 0755]
tests/shell/testcases/chains/dumps/netdev_chain_name_based_hook_0.json-nft [new file with mode: 0644]
tests/shell/testcases/chains/dumps/netdev_chain_name_based_hook_0.nft [new file with mode: 0644]
tests/shell/testcases/chains/netdev_chain_name_based_hook_0 [new file with mode: 0755]
tests/shell/testcases/flowtable/0016name_based_hook_0 [new file with mode: 0755]
tests/shell/testcases/flowtable/dumps/0016name_based_hook_0.json-nft [new file with mode: 0644]
tests/shell/testcases/flowtable/dumps/0016name_based_hook_0.nft [new file with mode: 0644]