summaryrefslogtreecommitdiffstats
path: root/iptables/xtables-save.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-11-12 12:03:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-11-12 13:49:21 +0100
commit21ec111803febfe11693790f44400e3f0a5e2020 (patch)
treea41be185274ed96b131e8bca7e73f8bcc753bb68 /iptables/xtables-save.c
parent05947c82232e3a3d20f93a1ba18e35e7f4e23671 (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables-save.c')
-rw-r--r--iptables/xtables-save.c6
1 files changed, 3 insertions, 3 deletions
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);