]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libarpt_mangle: Use guided option parser
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Sep 2021 14:53:26 +0000 (16:53 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 17:01:21 +0000 (18:01 +0100)
commit095331d5c49b2fa9f36365448288cd1eeddda29d
tree05b13e39df118436dc6aa03c44d9f1d902d7ed55
parentf7056d0fdb43e91497615ed6f21753ee3c91db63
extensions: libarpt_mangle: Use guided option parser

Sadly not the best conversion, struct arpt_mangle is not ideal for use
as storage backend: With MAC addresses, xtopt_parse_ethermac() refuses
to write into *_devaddr fields as they are larger than expected. With
XTTYPE_HOSTMASK OTOH, XTOPT_PUT is not supported in the first place.

As a side-effect, network names (from /etc/networks) are no longer
accepted. But earlier migrations to guided option parser had this
side-effect as well, so probably not a frequently used feature.

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