summaryrefslogtreecommitdiffstats
path: root/include/parser.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-07-30 17:26:31 +0200
committerPhil Sutter <phil@nwl.cc>2022-03-01 10:54:03 +0100
commita67fce7ffe7e4f38c54b65541d4f3372dd2516e9 (patch)
tree6f7541312ce092605f82ce76abc2d4525b655389 /include/parser.h
parent578467c10f0ec10faf456cec529c2af14fc81495 (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h1
1 files changed, 1 insertions, 0 deletions
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,
};