diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-27 11:44:09 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-29 15:07:35 +0100 |
commit | 0c6379953ab575b3b71dda4bcd94b940f0f68447 (patch) | |
tree | 5c05aef9bd8a372faa1317bfe7895f3858e8ed70 /include/nftables.h | |
parent | a42d2865bc7e96fe63276e22acd523d996aaf0a4 (diff) |
src: add nft_ctx_output_{get,set}_stateless() to nft_ctx_output_{get,flags}_flags
Add NFT_CTX_OUTPUT_STATELESS flag and enable stateless printing from new
output flags interface.
This patch adds nft_output_save_flags() and nft_output_restore_flags()
to temporarily disable stateful printing
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/nftables.h b/include/nftables.h index 86b44f17..cb36e066 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -18,7 +18,6 @@ struct cookie { struct output_ctx { unsigned int flags; unsigned int numeric; - unsigned int stateless; unsigned int handle; unsigned int echo; unsigned int json; @@ -42,6 +41,11 @@ static inline bool nft_output_service(const struct output_ctx *octx) return octx->flags & NFT_CTX_OUTPUT_SERVICE; } +static inline bool nft_output_stateless(const struct output_ctx *octx) +{ + return octx->flags & NFT_CTX_OUTPUT_STATELESS; +} + struct nft_cache { uint16_t genid; struct list_head list; |