From 1a5153117784c267ceb81c048dd5e9b9c4309fbb Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 29 Oct 2018 12:49:00 +0100 Subject: src: default to numeric UID and GID listing Like iptables-save, print UID and GID as numeric values by default. Add a new option `-u' to print the UID and GID names as defined by /etc/passwd and /etc/group. Note that -n is ignored after this patch, since default are numeric printing for UID and GID. Acked-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/nftables.h') diff --git a/include/nftables.h b/include/nftables.h index fa6665a1..2dff07fe 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -58,6 +58,11 @@ static inline bool nft_output_echo(const struct output_ctx *octx) return octx->flags & NFT_CTX_OUTPUT_ECHO; } +static inline bool nft_output_guid(const struct output_ctx *octx) +{ + return octx->flags & NFT_CTX_OUTPUT_GUID; +} + struct nft_cache { uint16_t genid; struct list_head list; -- cgit v1.2.3