diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-12 12:03:57 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-11-12 13:49:21 +0100 |
commit | 21ec111803febfe11693790f44400e3f0a5e2020 (patch) | |
tree | a41be185274ed96b131e8bca7e73f8bcc753bb68 /iptables/xtables-restore.c | |
parent | 05947c82232e3a3d20f93a1ba18e35e7f4e23671 (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-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index d9faa4d0..f5297740 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -60,7 +60,7 @@ static struct nftnl_chain_list *get_chain_list(struct nft_handle *h) { struct nftnl_chain_list *chain_list; - chain_list = nft_chain_dump(h); + chain_list = nft_chain_list_get(h); if (chain_list == NULL) xtables_error(OTHER_PROBLEM, "cannot retrieve chain list\n"); |