]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: use start condition with new destroy command
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Feb 2023 20:22:39 +0000 (21:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 21 Feb 2023 22:57:27 +0000 (23:57 +0100)
commitf79c7a531744b44d3e7d2752332361f1ef2dce2e
tree58828f0523cc56c2a37c475483d66a9ce9d198b7
parent114ba9606cb5ad85b2215e59f8af8ad97a16cac8
src: use start condition with new destroy command

tests/py reports the following problem:

any/ct.t: ERROR: line 116: add rule ip test-ip4 output ct event set new | related | destroy | label: This rule should not have failed.
any/ct.t: ERROR: line 117: add rule ip test-ip4 output ct event set new,related,destroy,label: This rule should not have failed.
any/ct.t: ERROR: line 118: add rule ip test-ip4 output ct event set new,destroy: This rule should not have failed.

Use start condition and update parser to handle 'destroy' keyword.

Fixes: e1dfd5cc4c46 ("src: add support to command "destroy")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/parser.h
src/parser_bison.y
src/scanner.l