nftables to ipset translation infrastructure
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 1 replyIn review
- v31 of 3 patches 0 repliesSuperseded
- v21 patch 0 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | lib: split parser from command executionlib/ | +30 | 0 replies | |
| 2/4 | lib: Detach restore routine from parserlib/ | +4 | 0 replies | |
| 3/4 | add ipset to nftables translation infrastructureconfigure.ac include/ include/ +4 more | +654 | 0 replies | |
| 4/4 | tests: add tests ipset to nftablestests/ tests/ tests/ | +140 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [PATCH ipset,v4 0/4] nftables to ipset translation infrastructure
Hi Jozsef,
This v4 of the patchset to add the ipset to nftables translation utility. Example invocation of this new tool is the following:
# ipset-translate restore < file.ipset
This v4 round includes:
- regression tests: there is at least one test for each ipset type.
- many bugfixes that have been spotted by the regression test infrastructure.
- Disentanglement of the ipset_xlate() logic for ADT commands.
to run regression tests:
# cd tests/xlate # ./runtest.sh [OK] tests are fine!
The xlate.t file contains the ipset set definitions, then the xlate.t.nft file contains the expected output in nftables syntax. In case that there is a mismatch, the diff with the expected output is provided.
Please, apply, thanks!
Pablo Neira Ayuso (4):
lib: split parser from command execution
lib: Detach restore routine from parser add ipset to nftables translation infrastructure
tests: add tests ipset to nftables
configure.ac | 1 + include/libipset/Makefile.am | 3 +- include/libipset/xlate.h | 6 + lib/ipset.c | 588 ++++++++++++++++++++++++++++++++++- src/Makefile.am | 8 +- src/ipset-translate.8 | 91 ++++++ src/ipset.c | 8 +- tests/xlate/runtest.sh | 29 ++ tests/xlate/xlate.t | 55 ++++ tests/xlate/xlate.t.nft | 56 ++++ 10 files changed, 827 insertions(+), 18 deletions(-) create mode 100644 include/libipset/xlate.h create mode 100644 src/ipset-translate.8 create mode 100755 tests/xlate/runtest.sh create mode 100644 tests/xlate/xlate.t create mode 100644 tests/xlate/xlate.t.nft
Signature · 1 line
2.20.1