diff options
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/nftables.h b/include/nftables.h index a457aba6..994b5111 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -32,17 +32,18 @@ struct output_ctx { unsigned int echo; }; -struct nft_ctx { - struct output_ctx output; - bool check; -}; - struct nft_cache { bool initialized; struct list_head list; uint32_t seqnum; }; +struct nft_ctx { + struct output_ctx output; + bool check; + struct nft_cache cache; +}; + extern unsigned int max_errors; extern unsigned int debug_level; extern const char *include_paths[INCLUDE_PATHS_MAX]; @@ -124,7 +125,7 @@ struct parser_state; struct mnl_socket; int nft_run(struct nft_ctx *nft, struct mnl_socket *nf_sock, - struct nft_cache *cache, void *scanner, struct parser_state *state, + void *scanner, struct parser_state *state, struct list_head *msgs); void ct_label_table_init(void); |