]> git.ipfire.org Git - thirdparty/nftables.git/commit
ct: fix "ct l3proto/protocol" syntax broken
authorLiping Zhang <zlpnobody@gmail.com>
Sun, 30 Oct 2016 12:36:14 +0000 (20:36 +0800)
committerFlorian Westphal <fw@strlen.de>
Sun, 30 Oct 2016 18:05:05 +0000 (19:05 +0100)
commitcdaa874b5fe89da7b0b906a473240aee51abb41c
treeeb36a6dce73fb4f4bfa56e17624db77087c10821
parent1d3c3cb4c8b65c63df6280070ef6f0da7f5148d3
ct: fix "ct l3proto/protocol" syntax broken

"l3proto" and "protocol" are still keywords in our grammer, they are not
STRING, so if the user input the following rule, nft will complain that
the syntax is error:
  # nft add t c ct l3proto ipv4
  <cmdline>:1:12-18: Error: syntax error, unexpected l3proto, expecting
  string or mark or packets or bytes
  add t c ct l3proto ipv4
             ^^^^^^^

Fixes: c992153402c7 ("ct: allow resolving ct keys at run time")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/parser_bison.y