summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-05-19 19:42:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-05-20 12:13:46 +0200
commit4986a0e3745aedb7aae8aa93202a4460a0e36866 (patch)
tree70ae9b2d19e4b21ef4d78b68e4b0d5b69e328754 /src/scanner.l
parent15cd2494198fa64cfcdf26298e0809cf14fafbbb (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l2
1 files changed, 0 insertions, 2 deletions
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; }