Skip to contentSkip to conversation

extensions: mark: Test double bitwise in a rule

PATCH Applied Phil Sutter 1 participant 2 messages Nov 16, 2022 – Nov 22, 2022 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 extensions: mark: Test double bitwise in a rule

In v1.8.8, the second bitwise changed the first one, messing iptables-nft-save output.

---
 extensions/libxt_mark.t | 1 +
 1 file changed, 1 insertion(+)
extensions/libxt_mark.t +1 -0
index 7aeb871588ca6..12c058655f6be 100644
@@ -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
Signature · 1 line
2.38.0