From 92abc51d3580dc719fdcbca8d36fdcf5a3751be5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 29 Oct 2018 14:15:14 +0100 Subject: src: add -y to priority base chain nummerically By default base chains are printed using default hook priority definitions. Add -y option to print them as numbers. Acked-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- doc/libnftables.adoc | 3 +++ doc/nft.txt | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/libnftables.adoc b/doc/libnftables.adoc index dc3299f0..78819439 100644 --- a/doc/libnftables.adoc +++ b/doc/libnftables.adoc @@ -92,6 +92,7 @@ enum { NFT_CTX_OUTPUT_ECHO = (1 << 5), NFT_CTX_OUTPUT_GUID = (1 << 6), NFT_CTX_OUTPUT_NUMERIC_PROTO = (1 << 7), + NFT_CTX_OUTPUT_NUMERIC_PRIO = (1 << 8), }; ---- @@ -122,6 +123,8 @@ The *nft_ctx_output_get_flags*() function returns the output flags setting's val The *nft_ctx_output_set_flags*() function sets the output flags setting in 'ctx' to the value of 'val'. NFT_CTX_OUTPUT_NUMERIC_PROTO:: Display layer 4 protocol numerically. +NFT_CTX_OUTPUT_NUMERIC_PRIO:: + Display base chain priority numerically. === nft_ctx_output_get_numeric() and nft_ctx_output_set_numeric() These functions allow control over value representation in library output. diff --git a/doc/nft.txt b/doc/nft.txt index 39527c4e..99ac0e33 100644 --- a/doc/nft.txt +++ b/doc/nft.txt @@ -56,6 +56,10 @@ For a full summary of options, run *nft --help*. *--guid**:: Translate numeric UID/GID to names as defined by /etc/passwd and /etc/group. +*-y*:: +*--numeric-priority**:: + Display base chain priority numerically. + *-c*:: *--check*:: Check commands validity without actually applying the changes. -- cgit v1.2.3