]> git.ipfire.org Git - thirdparty/iptables.git/commit
tests/shell: Add test for bitwise avoidance fixes
authorPhil Sutter <phil@nwl.cc>
Tue, 10 Nov 2020 13:50:46 +0000 (14:50 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 10 Nov 2020 15:05:25 +0000 (16:05 +0100)
commit81a2e128512837b53e5b9ea501b6c8dc64eeca78
treedbde52c77d420514b08397166433e810acf8ba54
parent274cb05edc58d6fa982a34c84b2f4cf6acc3e335
tests/shell: Add test for bitwise avoidance fixes

Masked address matching was recently improved to avoid bitwise
expression if the given mask covers full bytes. Make use of nft netlink
debug output to assert iptables-nft generates the right bytecode for
each situation.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 [new file with mode: 0755]