netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH 0/4] xt: Rewrite unsupported compat expression dumping
@ 2022-11-24 16:56 Phil Sutter
  2022-11-24 16:56 ` [nft PATCH 1/4] xt: Delay libxtables access until translation Phil Sutter
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Phil Sutter @ 2022-11-24 16:56 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel, Florian Westphal

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(-)

-- 
2.38.0


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

end of thread, other threads:[~2022-12-13 14:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-24 16:56 [nft PATCH 0/4] xt: Rewrite unsupported compat expression dumping Phil Sutter
2022-11-24 16:56 ` [nft PATCH 1/4] xt: Delay libxtables access until translation Phil Sutter
2022-12-08 21:21   ` Pablo Neira Ayuso
2022-12-09  0:14     ` Phil Sutter
2022-12-09 16:06       ` Pablo Neira Ayuso
2022-11-24 16:56 ` [nft PATCH 2/4] xt: Purify enum nft_xt_type Phil Sutter
2022-11-24 16:56 ` [nft PATCH 3/4] xt: Rewrite unsupported compat expression dumping Phil Sutter
2022-11-24 17:04   ` Florian Westphal
2022-11-24 17:22     ` Phil Sutter
2022-11-24 17:35       ` Florian Westphal
2022-12-09 16:07   ` Pablo Neira Ayuso
2022-12-09 16:45     ` Phil Sutter
2022-12-09 20:10       ` Pablo Neira Ayuso
2022-11-24 16:56 ` [nft PATCH 4/4] xt: Fall back to generic printing from translation Phil Sutter
2022-12-13 14:03 ` [nft PATCH 0/4] xt: Rewrite unsupported compat expression dumping Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).