summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2016-07-27 09:42:38 +0200
committerFlorian Westphal <fw@strlen.de>2016-10-27 22:34:31 +0200
commit93d44351bbe2b4cf6b567e3b356ff797866cdc04 (patch)
treed02a1b1cebb0461c73465caab04787ecd85d8458 /include
parentc992153402c78d91e8beba791171bced21c62d3f (diff)
meta: allow resolving meta keys at run time
use the meta template to translate the textual token to the enum value. This allows to remove two keywords from the scanner and also means we do not need to introduce new keywords when more meta keys get added. Signed-off-by: Florian Westphal <fw@strlen.de> Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/meta.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/meta.h b/include/meta.h
index f25b147a..55784609 100644
--- a/include/meta.h
+++ b/include/meta.h
@@ -30,4 +30,8 @@ struct stmt *meta_stmt_meta_iiftype(const struct location *loc, uint16_t type);
const struct datatype ifindex_type;
+struct error_record *meta_key_parse(const struct location *loc,
+ const char *name,
+ unsigned int *value);
+
#endif /* NFTABLES_META_H */