Skip to content

arbirary table/chain names

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6scanner: add support for scope nestinginclude/parser.h src/scanner.l+19 -00 replies
2/6scanner: counter: move to own scopeinclude/parser.h src/parser_bison.y src/scanner.l+21 -180 replies
3/6scanner: log: move to own scopeinclude/parser.h src/parser_bison.y src/scanner.l+13 -50 replies
4/6scanner: support arbitary table namesinclude/parser.h src/scanner.l+74 -10 replies
5/6scanner: support arbitrary chain namesinclude/parser.h src/parser_bison.y src/scanner.l+74 -150 replies
6/6src: allow arbitary chain name in implicit rule add caseinclude/parser.h src/parser_bison.y src/scanner.l+50 -125 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/6] arbirary table/chain names

This series allows (almost) arbitrary chain names.

Unsolved problem:
nft has implict 'rule add' behaviour, e.g.

'nft add rule ip filter input foo ip saddr 1.2.3.4 drop' can be written like 'nft ip filter input foo ip saddr 1.2.3.4 drop' or even
'nft filter input foo ip saddr 1.2.3.4 drop'.

IOW, the scanner cannot switch to the exclusive rule scope added in patch 5 to allow for arbitrary names.

Patch 6 resolves this by switching state from bison, but this requires to add future tokens to a special whitelist.

It might be better to omit patch 6 and/or deprecate the implicit rule add behaviour. See patch 6 for details.

Florian Westphal (6):
scanner: add support for scope nesting
scanner: counter: move to own scope
scanner: log: move to own scope
scanner: support arbitary table names
scanner: support arbitrary chain names
src: allow arbitary chain name in implicit rule add case

 include/parser.h   |  12 ++++
 src/parser_bison.y |  97 ++++++++++++++++++-------
 src/scanner.l      | 173 +++++++++++++++++++++++++++++++++++++++++----
 3 files changed, 241 insertions(+), 41 deletions(-)
Signature · 1 line
2.26.2