From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nft 0/2] allow base integer type in concatenation
Date: Mon, 18 Apr 2022 12:09:22 +0200 [thread overview]
Message-ID: <20220418100924.5669-1-fw@strlen.de> (raw)
Now that we have typeof support for set keys there is no longer a
technical reason to reject use of datatypes with a zero size provided
that the set key concatenation can be used to retrieve a size instead.
This allows to use e.g. "ipsec in reqid" in a concatenated set key.
Florian Westphal (2):
src: allow use of base integer types as set keys in concatenations
tests: add concat test case with integer base type subkey
src/evaluate.c | 24 +++++++++++++------
.../testcases/maps/dumps/typeof_maps_0.nft | 6 +++++
tests/shell/testcases/maps/typeof_maps_0 | 6 +++++
.../testcases/sets/dumps/typeof_sets_0.nft | 9 +++++++
tests/shell/testcases/sets/typeof_sets_0 | 9 +++++++
5 files changed, 47 insertions(+), 7 deletions(-)
--
2.35.1
next reply other threads:[~2022-04-18 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 10:09 Florian Westphal [this message]
2022-04-18 10:09 ` [PATCH nft 1/2] src: allow use of base integer types as set keys in concatenations Florian Westphal
2022-04-18 10:09 ` [PATCH nft 2/2] tests: add concat test case with integer base type subkey Florian Westphal
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=20220418100924.5669-1-fw@strlen.de \
--to=fw@strlen.de \
--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).