From b0f6a45b25dd1b8e4ab0e3b2dd2a00d918ae29c0 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 3 Jul 2018 17:24:05 +0200 Subject: src: add --literal option Default not to print the service name as we discussed during the NFWS. # nft list ruleset table ip x { chain y { tcp dport 22 ip saddr 1.1.1.1 } } # nft -l list ruleset table ip x { chain y { tcp dport ssh ip saddr 1.1.1.1 } } # nft -ll list ruleset table ip x { chain y { tcp dport 22 ip saddr 1dot1dot1dot1.cloudflare-dns.com } } Then, -ll displays FQDN. just like the (now deprecated) --ip2name (-N) option. Signed-off-by: Pablo Neira Ayuso --- include/nftables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/nftables.h') diff --git a/include/nftables.h b/include/nftables.h index 5e209b41..25e78c80 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -18,7 +18,7 @@ struct cookie { struct output_ctx { unsigned int numeric; unsigned int stateless; - unsigned int ip2name; + unsigned int literal; unsigned int handle; unsigned int echo; unsigned int json; -- cgit v1.2.3