From 2dc07bcd7eaa56369dff01b596acf010308007d3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Oct 2018 21:18:19 +0200 Subject: src: pass struct nft_ctx through struct netlink_ctx Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'include/netlink.h') diff --git a/include/netlink.h b/include/netlink.h index b7e2232f..b26ef459 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -35,26 +35,21 @@ extern const struct location netlink_location; /** * struct netlink_ctx * + * @nft: nftables context * @msgs: message queue * @list: list of parsed rules/chains/tables * @set: current set * @data: pointer to pass data to callback * @seqnum: sequence number - * @octx: output context - * @debug_mask: display debugging information - * @cache: cache context */ struct netlink_ctx { - struct mnl_socket *nf_sock; + struct nft_ctx *nft; struct list_head *msgs; struct list_head list; struct set *set; const void *data; uint32_t seqnum; struct nftnl_batch *batch; - unsigned int debug_mask; - struct output_ctx *octx; - struct nft_cache *cache; }; extern struct nftnl_expr *alloc_nft_expr(const char *name); -- cgit v1.2.3