From 40afa4bb2c7c7c8d488a8d44830c6b72cd98c640 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 14 Feb 2024 11:41:30 +0100 Subject: tests: shell: permit use of host-endian constant values in set lookup keys extend an existing test case with the afl input to cover in/output. A new test case is added to test linearization, delinearization and matching Fixes: c0080feb0d03 ("evaluate: permit use of host-endian constant values in set lookup keys") Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/sets/dumps/typeof_sets_concat.nft | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/shell/testcases/sets/dumps/typeof_sets_concat.nft') diff --git a/tests/shell/testcases/sets/dumps/typeof_sets_concat.nft b/tests/shell/testcases/sets/dumps/typeof_sets_concat.nft index dbaf7cdc..348b5848 100644 --- a/tests/shell/testcases/sets/dumps/typeof_sets_concat.nft +++ b/tests/shell/testcases/sets/dumps/typeof_sets_concat.nft @@ -10,3 +10,14 @@ table netdev t { ether type != 8021q update @s { ether daddr . 123 timeout 1m } counter packets 0 bytes 0 return } } +table ip t { + set s { + typeof ipsec in reqid . iif + size 16 + flags interval + } + + chain c2 { + ipsec in reqid . "lo" @s + } +} -- cgit v1.2.3