summaryrefslogtreecommitdiffstats
path: root/include/nftables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-10-29 14:15:14 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-10-29 18:19:28 +0100
commit92abc51d3580dc719fdcbca8d36fdcf5a3751be5 (patch)
tree8eb5df7c0dadd6ea34e45553a6feb30ec8b710ad /include/nftables.h
parentbaa4e0e3fa5ff9ad6e3c97b0347ad23058c545d9 (diff)
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 <phil@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r--include/nftables.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/nftables.h b/include/nftables.h
index d0031e84..a4d01e0c 100644
--- a/include/nftables.h
+++ b/include/nftables.h
@@ -68,6 +68,11 @@ static inline bool nft_output_numeric_proto(const struct output_ctx *octx)
return octx->flags & NFT_CTX_OUTPUT_NUMERIC_PROTO;
}
+static inline bool nft_output_numeric_prio(const struct output_ctx *octx)
+{
+ return octx->flags & NFT_CTX_OUTPUT_NUMERIC_PRIO;
+}
+
struct nft_cache {
uint16_t genid;
struct list_head list;