From 93d44351bbe2b4cf6b567e3b356ff797866cdc04 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 27 Jul 2016 09:42:38 +0200 Subject: 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 Acked-by: Pablo Neira Ayuso --- src/scanner.l | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/scanner.l') diff --git a/src/scanner.l b/src/scanner.l index 2ddcad94..8afddf15 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -427,8 +427,6 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "mh" { return MH; } "meta" { return META; } -"nfproto" { return NFPROTO; } -"l4proto" { return L4PROTO; } "mark" { return MARK; } "iif" { return IIF; } "iifname" { return IIFNAME; } -- cgit v1.2.3