]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: remove the "new" and "destroy" tokens from the scanner
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 May 2014 17:42:46 +0000 (19:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 20 May 2014 10:13:46 +0000 (12:13 +0200)
commit4986a0e3745aedb7aae8aa93202a4460a0e36866
tree70ae9b2d19e4b21ef4d78b68e4b0d5b69e328754
parent15cd2494198fa64cfcdf26298e0809cf14fafbbb
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>
src/parser.y
src/scanner.l