netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/2] allow base integer type in concatenation
@ 2022-04-18 10:09 Florian Westphal
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Westphal @ 2022-04-18 10:09 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-18 10:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-18 10:09 [PATCH nft 0/2] allow base integer type in concatenation Florian Westphal
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

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).