diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-14 20:18:12 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-29 02:33:02 +0100 |
commit | 90f84108cf61891f6bc60d2f93cb25e05a47a661 (patch) | |
tree | 054db6afb719630aaa1185e909d9d07b94f8fc48 /iptables/ip6tables.c | |
parent | 20e95a4ec5cec14d9e03ba562fa65f015d49dc14 (diff) |
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>
Diffstat (limited to 'iptables/ip6tables.c')
-rw-r--r-- | iptables/ip6tables.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 85cb211d..08da04b4 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -670,6 +670,7 @@ int do_command6(int argc, char *argv[], char **table, .proto_parse = ipv6_proto_parse, .post_parse = ipv6_post_parse, .option_name = ip46t_option_name, + .option_invert = ip46t_option_invert, }; struct xt_cmd_parse p = { .table = *table, |