From 02844570df1717c073d8364a2999119e613d7488 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 1 Sep 2017 11:51:42 +0200 Subject: src: move nf_sock into nft_ctx structure The idea is to provide a simplistic API for non-netlink wise people. Add a field in struct nft_ctx to store the socket. The advanced API that we're planning will just simply leave this unset, since netlink IO will be exposed. Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/nftables.h b/include/nftables.h index 256b06ee..5035567a 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -38,7 +38,10 @@ struct nft_cache { uint32_t seqnum; }; +struct mnl_socket; + struct nft_ctx { + struct mnl_socket *nf_sock; const char *include_paths[INCLUDE_PATHS_MAX]; unsigned int num_include_paths; unsigned int parser_max_errors; -- cgit v1.2.3