diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:31:57 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:04:01 +0200 |
commit | 1866625f0befbc04673017692813f48d084004ff (patch) | |
tree | afef4450d4ae51c3d1856eb9b82164c6ee15595c /iptables/nft-arp.c | |
parent | 05894576bf78e8f3ec4e816ffc908a2dbced0350 (diff) |
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 <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r-- | iptables/nft-arp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, }; |