path: root/iptables/nft.h
diff options
authorFlorian Westphal <>2018-05-24 17:50:25 +0200
committerFlorian Westphal <>2018-05-25 12:54:58 +0200
commit03e1377b38af45292a3a55828ee8e7c7e41ae64c (patch)
treefa1c626353884bf4aecc7abad71977b851e233c4 /iptables/nft.h
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/nft.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 0c4beb99..af229233 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -66,7 +66,7 @@ int nft_table_flush(struct nft_handle *h, const char *table);
struct nftnl_chain;
int nft_chain_set(struct nft_handle *h, const char *table, const char *chain, const char *policy, const struct xt_counters *counters);
-struct nftnl_chain_list *nft_chain_dump(struct nft_handle *h);
+struct nftnl_chain_list *nft_chain_dump(struct nft_handle *h, const char *table);
struct nftnl_chain *nft_chain_list_find(struct nftnl_chain_list *list, const char *table, const char *chain);
int nft_chain_save(struct nft_handle *h, struct nftnl_chain_list *list, const char *table);
int nft_chain_user_add(struct nft_handle *h, const char *chain, const char *table);