From b8e1940aa190773b23b3ee9349beb20c31f42bdb Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 12 Dec 2022 11:04:36 +0100 Subject: tests: add a test case for map update from packet path with concat add a second test case for map updates, this time with both a timeout and a data element that consists of a concatenation. Signed-off-by: Florian Westphal --- .../testcases/maps/dumps/typeof_maps_concat_update_0.nft | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft (limited to 'tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft') diff --git a/tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft b/tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft new file mode 100644 index 00000000..d91b795f --- /dev/null +++ b/tests/shell/testcases/maps/dumps/typeof_maps_concat_update_0.nft @@ -0,0 +1,12 @@ +table ip foo { + map pinned { + typeof ip daddr . tcp dport : ip daddr . tcp dport + size 65535 + flags dynamic,timeout + timeout 6m + } + + chain pr { + update @pinned { ip saddr . ct original proto-dst timeout 1m30s : ip daddr . tcp dport } + } +} -- cgit v1.2.3