]> git.ipfire.org Git - thirdparty/nftables.git/commit
scanner: nat: Move to own scope
authorPhil Sutter <phil@nwl.cc>
Fri, 30 Jul 2021 15:26:31 +0000 (17:26 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 1 Mar 2022 09:54:03 +0000 (10:54 +0100)
commita67fce7ffe7e4f38c54b65541d4f3372dd2516e9
tree6f7541312ce092605f82ce76abc2d4525b655389
parent578467c10f0ec10faf456cec529c2af14fc81495
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>
include/parser.h
src/parser_bison.y
src/scanner.l