]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: allow ct eventmask set new,related
authorFlorian Westphal <fw@strlen.de>
Wed, 7 Jun 2017 10:11:36 +0000 (12:11 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 7 Jun 2017 10:38:45 +0000 (12:38 +0200)
commit89e5a141b797b7df81f6ba9d9ea023f5fb6af978
treee84f4fc08c81007ec698033568d71e71c5230224
parentae07c2361472b1852d886bf06ed9f2a1fd8aca38
parser: allow ct eventmask set new,related

In case of bitmask types (tcp flags, ct eventmask) nft
allows to use comma operator to test multiple values, i.e.
tcp flags syn,ack   ct event new,destroy etc.

But currently nft fails to use this when used in a statement, i.e.
   ... ct eventmask set new,destroy
gives:
syntax error, unexpected comma

This allows makes this work, it is the same as
   ct eventmask set new|destroy

Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y