]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: MARK: arptables: Use guided option parser
authorPhil Sutter <phil@nwl.cc>
Fri, 3 Sep 2021 17:23:43 +0000 (19:23 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 17:01:21 +0000 (18:01 +0100)
commit59d56698064f7c96036b322fae221d829d058545
treeeb8f7d1393c0d1c0ac659a4714569f21819ff7dc
parent095331d5c49b2fa9f36365448288cd1eeddda29d
extensions: MARK: arptables: Use guided option parser

It expects mark values in hex which is possible by setting the base
field.

The only adjustment needed to use the revision 2 parser is to fill the
mask for --set-mark: With XTTYPE_MARKMASK32, an omitted mask sets all
mask bits, XTTYPE_UINT32 leaves it uninitialized, though.

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