From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: kadlec@netfilter.org
Subject: [PATCH ipset,v4 0/4] nftables to ipset translation infrastructure
Date: Fri, 25 Jun 2021 22:30:39 +0200 [thread overview]
Message-ID: <20210625203043.17265-1-pablo@netfilter.org> (raw)
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
--
2.20.1
next reply other threads:[~2021-06-25 20:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-25 20:30 Pablo Neira Ayuso [this message]
2021-06-25 20:30 ` [PATCH ipset,v4 1/4] lib: split parser from command execution Pablo Neira Ayuso
2021-06-25 20:30 ` [PATCH ipset,v4 2/4] lib: Detach restore routine from parser Pablo Neira Ayuso
2021-06-25 20:30 ` [PATCH ipset,v4 3/4] add ipset to nftables translation infrastructure Pablo Neira Ayuso
2021-06-25 20:30 ` [PATCH ipset,v4 4/4] tests: add tests ipset to nftables Pablo Neira Ayuso
2021-06-28 18:26 ` [PATCH ipset,v4 0/4] nftables to ipset translation infrastructure Jozsef Kadlecsik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210625203043.17265-1-pablo@netfilter.org \
--to=pablo@netfilter.org \
--cc=kadlec@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).