path: root/iptables/nft-cache.h
diff options
authorPhil Sutter <>2019-10-01 15:09:55 +0200
committerPhil Sutter <>2019-10-10 23:52:04 +0200
commitd812b91bc6e010dcdd4ed039c3979a02fb57eb1c (patch)
treeafc123ecee19bcdaa920cb95862432bf48e4deb7 /iptables/nft-cache.h
parent97fbef55d1e89ca73bf1e6b31ac46d756ac499f1 (diff)
nft: Extract cache routines into nft-cache.c
The amount of code dealing with caching only is considerable and hence deserves an own source file. Signed-off-by: Phil Sutter <> Acked-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/nft-cache.h')
1 files changed, 17 insertions, 0 deletions
diff --git a/iptables/nft-cache.h b/iptables/nft-cache.h
new file mode 100644
index 00000000..423c6516
--- /dev/null
+++ b/iptables/nft-cache.h
@@ -0,0 +1,17 @@
+#ifndef _NFT_CACHE_H_
+#define _NFT_CACHE_H_
+struct nft_handle;
+void nft_fake_cache(struct nft_handle *h);
+void nft_build_cache(struct nft_handle *h);
+void nft_rebuild_cache(struct nft_handle *h);
+void nft_release_cache(struct nft_handle *h);
+void flush_chain_cache(struct nft_handle *h, const char *tablename);
+void flush_rule_cache(struct nftnl_chain *c);
+struct nftnl_chain_list *nft_chain_list_get(struct nft_handle *h,
+ const char *table);
+struct nftnl_table_list *nftnl_table_list_get(struct nft_handle *h);
+#endif /* _NFT_CACHE_H_ */