nft-cache.h 836 Bytes
Newer Older
1
2
3
4
#ifndef _NFT_CACHE_H_
#define _NFT_CACHE_H_

struct nft_handle;
5
struct nft_chain;
6
struct nft_cmd;
7
struct builtin_table;
8

9
10
void nft_cache_level_set(struct nft_handle *h, int level,
			 const struct nft_cmd *cmd);
11
12
13
14
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);
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
18
19
20
21
int nft_cache_add_chain(struct nft_handle *h, const struct builtin_table *t,
			struct nftnl_chain *c);

struct nft_chain *
nft_chain_find(struct nft_handle *h, const char *table, const char *chain);
22
23
24
25
26

struct nftnl_set_list *
nft_set_list_get(struct nft_handle *h, const char *table, const char *set);

#endif /* _NFT_CACHE_H_ */