From 03e1377b38af45292a3a55828ee8e7c7e41ae64c Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 24 May 2018 17:50:25 +0200 Subject: 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 --- iptables/xtables-save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/xtables-save.c') 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); -- cgit v1.2.3