diff options
Diffstat (limited to 'include/nftables/libnftables.h')
-rw-r--r-- | include/nftables/libnftables.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index dee099f2..321441b0 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -33,12 +33,6 @@ enum nft_numeric_level { NFT_NUMERIC_ALL, }; -enum nft_literal_level { - NFT_LITERAL_NONE, - NFT_LITERAL_PORT, - NFT_LITERAL_ADDR, -}; - /** * Possible flags to pass to nft_ctx_new() */ @@ -49,12 +43,19 @@ void nft_ctx_free(struct nft_ctx *ctx); bool nft_ctx_get_dry_run(struct nft_ctx *ctx); void nft_ctx_set_dry_run(struct nft_ctx *ctx, bool dry); + +enum { + NFT_CTX_OUTPUT_REVERSEDNS = (1 << 0), + NFT_CTX_OUTPUT_SERVICE = (1 << 1), +}; + +unsigned int nft_ctx_output_get_flags(struct nft_ctx *ctx); +void nft_ctx_output_set_flags(struct nft_ctx *ctx, unsigned int flags); + enum nft_numeric_level nft_ctx_output_get_numeric(struct nft_ctx *ctx); void nft_ctx_output_set_numeric(struct nft_ctx *ctx, enum nft_numeric_level level); bool nft_ctx_output_get_stateless(struct nft_ctx *ctx); void nft_ctx_output_set_stateless(struct nft_ctx *ctx, bool val); -enum nft_literal_level nft_ctx_output_get_literal(struct nft_ctx *ctx); -void nft_ctx_output_set_literal(struct nft_ctx *ctx, enum nft_literal_level val); unsigned int nft_ctx_output_get_debug(struct nft_ctx *ctx); void nft_ctx_output_set_debug(struct nft_ctx *ctx, unsigned int mask); bool nft_ctx_output_get_handle(struct nft_ctx *ctx); |