]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: add --literal option
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 3 Jul 2018 15:24:05 +0000 (17:24 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 7 Jul 2018 18:53:11 +0000 (20:53 +0200)
commitb0f6a45b25dd1b8e4ab0e3b2dd2a00d918ae29c0
treed2d457d0b8384aee1f7a6d176c21ec9cf8814db6
parent1dc9be8445265498a2db534ae254260b6e7dd75b
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 <pablo@netfilter.org>
16 files changed:
doc/libnftables.adoc
include/nftables.h
include/nftables/libnftables.h
src/datatype.c
src/libnftables.c
src/main.c
tests/shell/testcases/nft-f/0008split_tables_0
tests/shell/testcases/nft-f/dumps/0008split_tables_0.nft
tests/shell/testcases/nft-f/dumps/0009variable_0.nft
tests/shell/testcases/optionals/dumps/comments_0.nft
tests/shell/testcases/optionals/dumps/comments_handles_0.nft
tests/shell/testcases/optionals/dumps/handles_0.nft
tests/shell/testcases/sets/dumps/0020comments_0.nft
tests/shell/testcases/sets/dumps/0022type_selective_flush_0.nft
tests/shell/testcases/sets/dumps/0025anonymous_set_0.nft
tests/shell/testcases/sets/dumps/0026named_limit_0.nft