• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _NFT_CACHE_H_
2 #define _NFT_CACHE_H_
3 
4 struct nft_handle;
5 struct nft_chain;
6 struct nft_cmd;
7 struct builtin_table;
8 
9 void nft_cache_level_set(struct nft_handle *h, int level,
10 			 const struct nft_cmd *cmd);
11 void nft_rebuild_cache(struct nft_handle *h);
12 void nft_release_cache(struct nft_handle *h);
13 void flush_chain_cache(struct nft_handle *h, const char *tablename);
14 int flush_rule_cache(struct nft_handle *h, const char *table,
15 		     struct nft_chain *c);
16 void nft_cache_build(struct nft_handle *h);
17 int nft_cache_add_chain(struct nft_handle *h, const struct builtin_table *t,
18 			struct nftnl_chain *c);
19 
20 struct nft_chain *
21 nft_chain_find(struct nft_handle *h, const char *table, const char *chain);
22 
23 struct nftnl_set_list *
24 nft_set_list_get(struct nft_handle *h, const char *table, const char *set);
25 
26 #endif /* _NFT_CACHE_H_ */
27