diff options
author | Phil Sutter <phil@nwl.cc> | 2021-12-23 18:55:53 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-01-12 14:08:41 +0100 |
commit | 3039a52c3ecf96df4e3b815d242f788c189093e1 (patch) | |
tree | 58e536a794f5a28f3db2c934d23cd1ee15c8e3af /iptables/nft-ipv6.c | |
parent | ece001c258e3fd8779e177ef00394877f2327f56 (diff) |
xtables: Do not pass nft_handle to do_parse()
Make it fit for sharing with legacy iptables, drop nft-specific
parameter. This requires to mirror proto_parse and post_parse callbacks
from family_ops somewhere reachable - use xt_cmd_parse, it holds other
"parser setup data" as well.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r-- | iptables/nft-ipv6.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 13213088..4f80ed84 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -495,8 +495,10 @@ struct nft_family_ops nft_family_ops_ipv6 = { .print_rule = nft_ipv6_print_rule, .save_rule = nft_ipv6_save_rule, .save_chain = nft_ipv46_save_chain, - .proto_parse = nft_ipv6_proto_parse, - .post_parse = nft_ipv6_post_parse, + .cmd_parse = { + .proto_parse = nft_ipv6_proto_parse, + .post_parse = nft_ipv6_post_parse, + }, .parse_target = nft_ipv46_parse_target, .rule_to_cs = nft_rule_to_iptables_command_state, .clear_cs = nft_clear_iptables_command_state, |