From 4986a0e3745aedb7aae8aa93202a4460a0e36866 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 19 May 2014 19:42:46 +0200 Subject: parser: remove the "new" and "destroy" tokens from the scanner These new tokens were introduced in f9563c0 ("src: add events reporting") to allow filtering based on the event type. This confuses the parser when parsing the "new" token: test:32:33-35: Error: syntax error, unexpected new add rule filter output ct state new,established counter ^^^ This patch fixes this by replacing these event type tokens by the generic string token, which is then interpreted during the parsing. Signed-off-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 801c0303..86bc519d 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -240,8 +240,6 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "element" { return ELEMENT; } "map" { return MAP; } "handle" { return HANDLE; } -"new" { return NEW; } -"destroy" { return DESTROY; } "accept" { return ACCEPT; } "drop" { return DROP; } -- cgit v1.2.3