]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft-ruleparse: parse meta mark set as MARK target
authorFlorian Westphal <fw@strlen.de>
Thu, 3 Aug 2023 19:39:13 +0000 (21:39 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 10 Aug 2023 11:44:12 +0000 (13:44 +0200)
commit7304f1982d619e19860106bc74b9cf3d05ddb113
tree346e49793170f200cfeb5d494292b09eb17f6e31
parent2a6eee89083c837ac429b0e5aba33bdcaeb51a57
nft-ruleparse: parse meta mark set as MARK target

Mixing nftables and iptables-nft in the same table doesn't work,
but some people do this.

v1.8.8 ignored rules it could not represent in iptables syntax,
v1.8.9 bails in this case.

Add parsing of meta mark expressions so iptables-nft can render them
as -j MARK rules.

This is flawed, nft has features that have no corresponding
syntax in iptables, but we can't undo this.

Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1659
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-ruleparse.c