From 90f84108cf61891f6bc60d2f93cb25e05a47a661 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 14 Nov 2023 20:18:12 +0100 Subject: 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 --- iptables/iptables.c | 1 + 1 file changed, 1 insertion(+) (limited to 'iptables/iptables.c') diff --git a/iptables/iptables.c b/iptables/iptables.c index 4bfce62d..a73e8eed 100644 --- a/iptables/iptables.c +++ b/iptables/iptables.c @@ -664,6 +664,7 @@ int do_command4(int argc, char *argv[], char **table, .proto_parse = ipv4_proto_parse, .post_parse = ipv4_post_parse, .option_name = ip46t_option_name, + .option_invert = ip46t_option_invert, }; struct xt_cmd_parse p = { .table = *table, -- cgit v1.2.3