diff options
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index fd00b40a..4c27fcc6 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -373,6 +373,7 @@ int nft_lex(void *, void *, void *); %token FLAGS "flags" %token CPI "cpi" +%token PORT "port" %token UDP "udp" %token SPORT "sport" %token DPORT "dport" @@ -3141,6 +3142,12 @@ nat_stmt_args : stmt_expr { $<stmt>0->nat.flags = $2; } + | nf_key_proto ADDR DOT PORT TO stmt_expr + { + $<stmt>0->nat.family = $1; + $<stmt>0->nat.addr = $6; + $<stmt>0->nat.ipportmap = true; + } ; masq_stmt : masq_stmt_alloc masq_stmt_args |