path: root/iptables/xtables-restore.c
diff options
authorFlorian Westphal <>2018-05-24 17:50:25 +0200
committerFlorian Westphal <>2018-05-25 12:54:58 +0200
commit03e1377b38af45292a3a55828ee8e7c7e41ae64c (patch)
treefa1c626353884bf4aecc7abad71977b851e233c4 /iptables/xtables-restore.c
parent94fd83d957224eff6043ec6731851dd1a5ae2d4d (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 <>
Diffstat (limited to 'iptables/xtables-restore.c')
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");