From 1866625f0befbc04673017692813f48d084004ff Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:31:57 +0200 Subject: xtables: introduce rule_to_cs/clear_cs callbacks This introduces callbacks in nft_family_ops for parsing an nftnl rule into iptables_command_state and clearing it afterwards. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/nft-ipv6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/nft-ipv6.c') diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 79c02e44..41926019 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -474,6 +474,8 @@ struct nft_family_ops nft_family_ops_ipv6 = { .proto_parse = nft_ipv6_proto_parse, .post_parse = nft_ipv6_post_parse, .parse_target = nft_ipv6_parse_target, + .rule_to_cs = nft_rule_to_iptables_command_state, + .clear_cs = nft_clear_iptables_command_state, .rule_find = nft_ipv6_rule_find, .xlate = nft_ipv6_xlate, }; -- cgit v1.2.3