Skip to content

xt: Rewrite unsupported compat expression dumping

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xt: Delay libxtables access until translationinclude/statement.h src/xt.c+80 -1213 replies
2/4xt: Purify enum nft_xt_typeinclude/statement.h src/xt.c+1 -30 replies
3/4xt: Rewrite unsupported compat expression dumpingdoc/libnftables-json.adoc doc/statements.txt include/json.h +7 more+82 -106 replies
4/4xt: Fall back to generic printing from translationsrc/xt.c+13 -180 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [nft PATCH 0/4] xt: Rewrite unsupported compat expression dumping

Alternative approach to my previous dump and restore support of xt compat expressions:

If translation is not available or not successful, fall back to a format which allows to be parsed easily.

When parsing, reject these expressions explicitly with a meaningful error message.

Phil Sutter (4):
xt: Delay libxtables access until translation
xt: Purify enum nft_xt_type
xt: Rewrite unsupported compat expression dumping
xt: Fall back to generic printing from translation

 doc/libnftables-json.adoc |  18 +++-
 doc/statements.txt        |  17 ++++
 include/json.h            |   2 +
 include/parser.h          |   1 +
 include/statement.h       |  11 +-
 src/json.c                |  19 ++--
 src/parser_bison.y        |  18 ++++
 src/parser_json.c         |   5 +
 src/scanner.l             |   3 +
 src/statement.c           |   1 +
 src/xt.c                  | 207 +++++++++++++++-----------------------
 11 files changed, 163 insertions(+), 139 deletions(-)
Signature · 1 line
2.38.0