Skip to content

parser: fix scope closing with > 1 nested scope

Florian Westphal netfilter-devel 1 version Applied

Status from this message: Pushed to nftables.git

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3tests/py: Add a test for failing ipsec after countertests/py/inet/ipsec.t tests/py/inet/ipsec.t.json tests/py/inet/ipsec.t.payload+29 -00 replies
2/3parser: add missing synproxy scope closuresrc/parser_bison.y+1 -10 replies
3/3scanner: don't pop active flex scanner scopeinclude/parser.h src/scanner.l+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/3] parser: fix scope closing with > 1 nested scope

This resolves the parsing problem reported by Phil. First patch is his test case, second patch is an (unrelated) fix for SYNPROXY scoping (lack of close).

Last patch fixes closing with nested scopes, where we exited a scope too early.

Florian Westphal (2):
parser: add missing synproxy scope closure
scanner: don't pop active flex scanner scope

Phil Sutter (1):
tests/py: Add a test for failing ipsec after counter

 include/parser.h              |  3 +++
 src/parser_bison.y            |  2 +-
 src/scanner.l                 | 11 +++++++++++
 tests/py/inet/ipsec.t         |  2 ++
 tests/py/inet/ipsec.t.json    | 21 +++++++++++++++++++++
 tests/py/inet/ipsec.t.payload |  6 ++++++
 6 files changed, 44 insertions(+), 1 deletion(-)
Signature · 1 line
2.35.1