From a67fce7ffe7e4f38c54b65541d4f3372dd2516e9 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 30 Jul 2021 17:26:31 +0200 Subject: scanner: nat: Move to own scope Unify nat, masquerade and redirect statements, they widely share their syntax. Note the workaround of adding "prefix" to SCANSTATE_IP. This is required to fix for 'snat ip prefix ...' style expressions. Signed-off-by: Phil Sutter --- include/parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/parser.h b/include/parser.h index 79eadc0d..0ff0ecfb 100644 --- a/include/parser.h +++ b/include/parser.h @@ -74,6 +74,7 @@ enum startcond_type { PARSER_SC_EXPR_UDPLITE, PARSER_SC_STMT_LOG, + PARSER_SC_STMT_NAT, PARSER_SC_STMT_REJECT, PARSER_SC_STMT_SYNPROXY, }; -- cgit v1.2.3