From e787d9852c563bf9ebd53f560da83403f6d35b4c Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Mon, 4 Sep 2017 09:55:57 +0200 Subject: src: add flags fo nft_ctx_new By adding flags to nft_ctx_new, we will have a minimum capabilities of changing the way the nft_ctx is created. For now, this patch uses a simple value that allow the user to specify that he will handle netlink by himself. Signed-off-by: Eric Leblond 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 5035567a..3429e4c1 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -49,8 +49,11 @@ struct nft_ctx { struct output_ctx output; bool check; struct nft_cache cache; + uint32_t flags; }; +#define NFT_CTX_DEFAULT 0 + enum nftables_exit_codes { NFT_EXIT_SUCCESS = 0, NFT_EXIT_FAILURE = 1, -- cgit v1.2.3