From 46763359adc3be45f7202dc0a130718203bfafce Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Mon, 21 Oct 2019 22:49:22 +0100 Subject: src: add --terse to suppress output of set elements. Listing an entire ruleset or a table with `nft list` prints the elements of all set definitions within the ruleset or table. Seeing the full set contents is not often necessary especially when requesting to see someone's ruleset for help and support purposes. Add a new option '-t, --terse' options to suppress the output of set contents. Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1374 Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- include/nftables/libnftables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/nftables/libnftables.h') diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index 7a7a46f3..765b20dd 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -56,6 +56,7 @@ enum { NFT_CTX_OUTPUT_NUMERIC_ALL = (NFT_CTX_OUTPUT_NUMERIC_PROTO | NFT_CTX_OUTPUT_NUMERIC_PRIO | NFT_CTX_OUTPUT_NUMERIC_SYMBOL), + NFT_CTX_OUTPUT_TERSE = (1 << 11), }; unsigned int nft_ctx_output_get_flags(struct nft_ctx *ctx); -- cgit v1.2.3