path: root/iptables/xtables-save.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-save.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-save.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index 1f643593..2305e878 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -57,7 +57,7 @@ do_output(struct nft_handle *h, const char *tablename, bool counters)
return 0;
- chain_list = nft_chain_dump(h);
+ chain_list = nft_chain_dump(h, tablename);
time_t now = time(NULL);