summaryrefslogtreecommitdiffstats
path: root/iptables/nft-cache.h
blob: 423c6516de9bb31756ed6fb8bff508012d5550c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_ */