From d812b91bc6e010dcdd4ed039c3979a02fb57eb1c Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 1 Oct 2019 15:09:55 +0200 Subject: 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 --- iptables/nft-cache.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 iptables/nft-cache.h (limited to 'iptables/nft-cache.h') 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_ */ -- cgit v1.2.3