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/nft-ipv6.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/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 2cc45944..bb417356 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -345,6 +345,7 @@ struct nft_family_ops nft_family_ops_ipv6 = { .proto_parse = ipv6_proto_parse, .post_parse = ipv6_post_parse, .option_name = ip46t_option_name, + .option_invert = ip46t_option_invert, }, .rule_to_cs = nft_rule_to_iptables_command_state, .clear_cs = xtables_clear_iptables_command_state, |