diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:32:05 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 23:11:03 +0200 |
commit | f3b772c10b782196060fe39ca6da142ba75e43d9 (patch) | |
tree | af2af6d6dd327d65f4301d6402a33e6fc36090b1 /iptables/nft-ipv4.c | |
parent | fa1681f170e2b8d80d9ef9d4564797f0f5969fd0 (diff) |
xtables: introduce save_chain callback
In preparation for ebtables-save implementation, introduce a callback
for convenient per-family formatting of chains in save output.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-ipv4.c')
-rw-r--r-- | iptables/nft-ipv4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index cbc4be73..0cfe84e1 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -485,6 +485,7 @@ struct nft_family_ops nft_family_ops_ipv4 = { .print_rule = nft_ipv4_print_rule, .save_rule = nft_ipv4_save_rule, .save_counters = save_counters, + .save_chain = nft_ipv46_save_chain, .proto_parse = nft_ipv4_proto_parse, .post_parse = nft_ipv4_post_parse, .parse_target = nft_ipv46_parse_target, |