From f79c7a531744b44d3e7d2752332361f1ef2dce2e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 16 Feb 2023 21:22:39 +0100 Subject: 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 --- include/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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, -- cgit v1.2.3