From 4722cfeed34c2333989aa88d9e0b5e4ed89f3280 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Feb 2021 15:44:35 +0100 Subject: table: rework flags printing Simplify routine to print the table flags. Add table_flag_name() and use it from json too. Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/rule.h') diff --git a/include/rule.h b/include/rule.h index 330a09aa..87b6828e 100644 --- a/include/rule.h +++ b/include/rule.h @@ -134,7 +134,7 @@ enum table_flags { }; #define TABLE_FLAGS_MAX 1 -extern const char *table_flags_name[TABLE_FLAGS_MAX]; +const char *table_flag_name(uint32_t flag); /** * struct table - nftables table -- cgit v1.2.3