diff options
author | Florian Westphal <fw@strlen.de> | 2018-05-24 17:50:25 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-05-25 12:54:58 +0200 |
commit | 03e1377b38af45292a3a55828ee8e7c7e41ae64c (patch) | |
tree | fa1c626353884bf4aecc7abad71977b851e233c4 /iptables/xtables-restore.c | |
parent | 94fd83d957224eff6043ec6731851dd1a5ae2d4d (diff) |
xtables: allow dumping of chains in specific table
This is used by a followup patch to avoid continuing the 'dump everything
and then ignore what we don't need' model.
Places that know they only need a particular table
'iptables-save -t filter' can ask the kernel to limit this for us.
Signed-off-by: Florian Westphal <fw@strlen.de>
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 2ba0565d..d977dabf 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -169,7 +169,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_dump(h, NULL); if (chain_list == NULL) xtables_error(OTHER_PROBLEM, "cannot retrieve chain list\n"); |