Skip to content

allow base integer type in concatenation

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2src: allow use of base integer types as set keys in concatenationssrc/evaluate.c+17 -70 replies
2/2tests: add concat test case with integer base type subkeytests/shell/testcases/maps/dumps/typeof_maps_0.nft tests/shell/testcases/maps/typeof_maps_0 tests/shell/testcases/sets/dumps/typeof_sets_0.nft +1 more+30 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nft 0/2] allow base integer type in concatenation

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(-)
Signature · 1 line
2.35.1