diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-02-16 21:22:39 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-02-21 23:57:27 +0100 |
commit | f79c7a531744b44d3e7d2752332361f1ef2dce2e (patch) | |
tree | 58828f0523cc56c2a37c475483d66a9ce9d198b7 /include/parser.h | |
parent | 114ba9606cb5ad85b2215e59f8af8ad97a16cac8 (diff) |
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>
Diffstat (limited to 'include/parser.h')
-rw-r--r-- | include/parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/parser.h b/include/parser.h index 1bd490f0..71df4309 100644 --- a/include/parser.h +++ b/include/parser.h @@ -52,6 +52,7 @@ enum startcond_type { PARSER_SC_TYPE, PARSER_SC_VLAN, PARSER_SC_XT, + PARSER_SC_CMD_DESTROY, PARSER_SC_CMD_EXPORT, PARSER_SC_CMD_IMPORT, PARSER_SC_CMD_LIST, |