From 21ec111803febfe11693790f44400e3f0a5e2020 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 12 Nov 2018 12:03:57 +0100 Subject: nft: replace nft_chain_dump() by nft_chain_list_get() So we can remove nft_chain_dump() and replace nftnl_chain_get_list(). Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-save.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables/xtables-save.c') diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c index 53ce4b87..87b299c5 100644 --- a/iptables/xtables-save.c +++ b/iptables/xtables-save.c @@ -56,7 +56,7 @@ __do_output(struct nft_handle *h, const char *tablename, bool counters) return 0; } - chain_list = nft_chain_dump(h); + chain_list = nft_chain_list_get(h); time_t now = time(NULL); @@ -239,7 +239,7 @@ static int __ebt_save(struct nft_handle *h, const char *tablename, bool counters return 0; } - chain_list = nft_chain_dump(h); + chain_list = nft_chain_list_get(h); if (first) { now = time(NULL); @@ -324,7 +324,7 @@ int xtables_arp_save_main(int argc, char **argv) } printf("*filter\n"); - nft_chain_save(&h, nft_chain_dump(&h), "filter"); + nft_chain_save(&h, nft_chain_list_get(&h), "filter"); nft_rule_save(&h, "filter", FMT_NOCOUNTS); printf("\n"); nft_fini(&h); -- cgit v1.2.3