Linux Netfilter development
 help / color / mirror / Atom feed
* [nft PATCH 0/6] parser_bison: Less STRING more tokens
@ 2025-12-09 16:45 Phil Sutter
  2025-12-09 16:45 ` [nft PATCH 1/6] parser_bison: Introduce tokens for monitor events Phil Sutter
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Phil Sutter @ 2025-12-09 16:45 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

Introducing new tokens should be harmless as long as they are scoped
since it won't break existing rulesets using them for user-defined names.

Leverage this to offload more input parsing to flex/bison, thereby
reducing custom code size.

Changes since RFC:
- Fix up patches 1 and 2 as per review
- Add Reviewed-by: tags to patches 3 to 5

Phil Sutter (6):
  parser_bison: Introduce tokens for monitor events
  parser_bison: Introduce tokens for chain types
  parser_bison: Introduce tokens for osf ttl values
  parser_bison: Introduce tokens for log levels
  parser_bison: Introduce bytes_unit
  scanner: Introduce SCANSTATE_RATE

 include/datatype.h           |   7 --
 include/parser.h             |   1 +
 include/rule.h               |  21 ++--
 src/datatype.c               |  61 -----------
 src/evaluate.c               |  22 +---
 src/parser_bison.y           | 204 +++++++++++------------------------
 src/rule.c                   |  23 +---
 src/scanner.l                |  76 ++++++++-----
 tests/py/any/limit.t         |   6 ++
 tests/py/any/limit.t.json    |  70 ++++++++++++
 tests/py/any/limit.t.payload |  20 ++++
 11 files changed, 231 insertions(+), 280 deletions(-)

-- 
2.51.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-01-20 16:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09 16:45 [nft PATCH 0/6] parser_bison: Less STRING more tokens Phil Sutter
2025-12-09 16:45 ` [nft PATCH 1/6] parser_bison: Introduce tokens for monitor events Phil Sutter
2025-12-09 16:45 ` [nft PATCH 2/6] parser_bison: Introduce tokens for chain types Phil Sutter
2025-12-09 16:45 ` [nft PATCH 3/6] parser_bison: Introduce tokens for osf ttl values Phil Sutter
2025-12-09 16:45 ` [nft PATCH 4/6] parser_bison: Introduce tokens for log levels Phil Sutter
2025-12-09 16:45 ` [nft PATCH 5/6] parser_bison: Introduce bytes_unit Phil Sutter
2025-12-09 16:45 ` [nft PATCH 6/6] scanner: Introduce SCANSTATE_RATE Phil Sutter
2026-01-20 14:35   ` Florian Westphal
2026-01-20 16:28     ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox