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 --- tests/shell/testcases/optionals/dumps/comments_0.nft | 2 +- tests/shell/testcases/optionals/dumps/comments_handles_0.nft | 2 +- tests/shell/testcases/optionals/dumps/handles_0.nft | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/shell/testcases/optionals') diff --git a/tests/shell/testcases/optionals/dumps/comments_0.nft b/tests/shell/testcases/optionals/dumps/comments_0.nft index 416a07e0..f47e0d51 100644 --- a/tests/shell/testcases/optionals/dumps/comments_0.nft +++ b/tests/shell/testcases/optionals/dumps/comments_0.nft @@ -1,5 +1,5 @@ table ip test { chain test { - tcp dport ssh counter packets 0 bytes 0 accept comment "test_comment" + tcp dport 22 counter packets 0 bytes 0 accept comment "test_comment" } } diff --git a/tests/shell/testcases/optionals/dumps/comments_handles_0.nft b/tests/shell/testcases/optionals/dumps/comments_handles_0.nft index 416a07e0..f47e0d51 100644 --- a/tests/shell/testcases/optionals/dumps/comments_handles_0.nft +++ b/tests/shell/testcases/optionals/dumps/comments_handles_0.nft @@ -1,5 +1,5 @@ table ip test { chain test { - tcp dport ssh counter packets 0 bytes 0 accept comment "test_comment" + tcp dport 22 counter packets 0 bytes 0 accept comment "test_comment" } } diff --git a/tests/shell/testcases/optionals/dumps/handles_0.nft b/tests/shell/testcases/optionals/dumps/handles_0.nft index eb0af811..085c6cf1 100644 --- a/tests/shell/testcases/optionals/dumps/handles_0.nft +++ b/tests/shell/testcases/optionals/dumps/handles_0.nft @@ -1,5 +1,5 @@ table ip test { chain test { - tcp dport ssh counter packets 0 bytes 0 accept + tcp dport 22 counter packets 0 bytes 0 accept } } -- cgit v1.2.3