summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2021-02-22 15:44:35 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-03-02 11:08:49 +0100
commit4722cfeed34c2333989aa88d9e0b5e4ed89f3280 (patch)
tree53951c0c9c533eeddef7453bd2ee11c142eea7c9 /include/rule.h
parent4507148af780195dc93f6110b893181fd51d8b5e (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r--include/rule.h2
1 files changed, 1 insertions, 1 deletions
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