Skip to content

Extend xlate-test to replay results

Phil Sutter netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests: xlate-test: Cleanup file reading loopxlate-test.py+37 -300 replies
2/3tests: xlate-test.py: Introduce run_proc()xlate-test.py+11 -50 replies
3/3tests: xlate-test: Replay results for reverse direction testingxlate-test.py+144 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [iptables PATCH 0/3] Extend xlate-test to replay results

If nftables has libxtables support, it will utilize the .xlate callbacks to print compat expressions in native nftables syntax. Users may miss the fact that what they're seeing is not the reality and assume they may manipulate (including store and reload) the ruleset using nftables. This wasn't a big deal if iptables-nft understood all the translations libxtables offers.

To start catching up on this, add an optional replay mode to xlate-test.py checking if what was translated is correctly parsed back into the original input (or at least a semantical equivalent).

Patches 1 and 2 are prep work, patch 3 has the gory details.

Phil Sutter (3):
tests: xlate-test: Cleanup file reading loop
tests: xlate-test.py: Introduce run_proc()
tests: xlate-test: Replay results for reverse direction testing

 xlate-test.py | 212 +++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 184 insertions(+), 28 deletions(-)
Signature · 1 line
2.38.0