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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux