diff options
author | Florian Westphal <fw@strlen.de> | 2022-04-17 22:27:41 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-04-18 15:32:09 +0200 |
commit | 22b750aa6dc9780c19b9dbe00f9a9e5bb83ea08b (patch) | |
tree | abb88c537f558152b6102eb58e4bc63d87a95fbe /tests/shell/testcases/sets/0055tcpflags_0 | |
parent | 3ed9fadaab95943146ae0095dfaf868b63d09599 (diff) |
src: allow use of base integer types as set keys in concatenations
"typeof ip saddr . ipsec in reqid" won't work because reqid uses
integer type, i.e. dtype->size is 0.
With "typeof", the size can be derived from the expression length,
via set->key.
This computes the concat length based either on dtype->size or
expression length.
It also updates concat evaluation to permit a zero datatype size
if the subkey expression has nonzero length (i.e., typeof was used).
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/sets/0055tcpflags_0')
0 files changed, 0 insertions, 0 deletions