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-arp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iptables/nft-arp.c') diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c index 06d86647..164c3971 100644 --- a/iptables/nft-arp.c +++ b/iptables/nft-arp.c @@ -667,6 +667,8 @@ struct nft_family_ops nft_family_ops_arp = { .save_firewall = NULL, .save_counters = NULL, .post_parse = NULL, + .rule_to_cs = nft_rule_to_arptables_command_state, + .clear_cs = NULL, .rule_find = nft_arp_rule_find, .parse_target = nft_arp_parse_target, }; -- cgit v1.2.3