]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Introduce xt_cmd_parse_ops::option_invert
authorPhil Sutter <phil@nwl.cc>
Tue, 14 Nov 2023 19:18:12 +0000 (20:18 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 29 Nov 2023 01:33:02 +0000 (02:33 +0100)
commit90f84108cf61891f6bc60d2f93cb25e05a47a661
tree054db6afb719630aaa1185e909d9d07b94f8fc48
parent20e95a4ec5cec14d9e03ba562fa65f015d49dc14
xshared: Introduce xt_cmd_parse_ops::option_invert

Replace the awkward inverse_for_options array with basically a few
switch() statements clearly identifying the relation between option and
inverse values and relieve callers from having to find the option flag
bit's position.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/ip6tables.c
iptables/iptables.c
iptables/nft-arp.c
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/xshared.c
iptables/xshared.h