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