]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: mark: Test double bitwise in a rule
authorPhil Sutter <phil@nwl.cc>
Wed, 16 Nov 2022 10:52:20 +0000 (11:52 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 16 Nov 2022 13:30:16 +0000 (14:30 +0100)
In v1.8.8, the second bitwise changed the first one, messing
iptables-nft-save output.

Signed-off-by: Phil Sutter <phil@nwl.cc>
extensions/libxt_mark.t

index 7aeb871588ca69cc34691d4fc1dbd9e44d0e0954..12c058655f6be8665df1eb93ed731275adee238c 100644 (file)
@@ -5,3 +5,4 @@
 -m mark --mark 4294967296;;FAIL
 -m mark --mark -1;;FAIL
 -m mark;;FAIL
+-s 1.2.0.0/15 -m mark --mark 0x0/0xff0;=;OK