From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8C21EA00C4; Tue, 26 Jul 2022 05:22:15 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 86BFA42685; Tue, 26 Jul 2022 05:22:15 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 60F6D42685 for ; Tue, 26 Jul 2022 05:22:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658805733; x=1690341733; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=1dtOSDY4GyCsqy3esFJTHZaYjCEA8upfKABu3EM+Lr4=; b=Ph14/cBY2FeNYUT11gy9k/Kdn6nGXLbdNbYYmDe9t12I4Kczp2bWomtl t/XhCKxZi4j2ndAQZz/rXjjfKMXlm84rHXQcME5TDUEvqQb+ijzUyC/dw MUYYBZvsOExb2Cx1OqNvqyDXMFb7OMehiTkw0Zlc8OVEfU5ue3+kYBkvl QnMMnp4kuW08nq3ogAJOELW1XVxq8rDdw8w9N6iVkYY9gLrfewk22wfPj q0sLFsswYZq3TSeRVXDu0kFOMuS0hcHJ3huhiTduzsKxCajmTq/SENsH+ DDrMlSkOMvaDufqfW4gweCtgcteU5F5KBKr15r9y00ZyjTpWMuubhQCKv Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10419"; a="270884162" X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="270884162" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 20:22:13 -0700 X-IronPort-AV: E=Sophos;i="5.93,193,1654585200"; d="scan'208";a="596876399" Received: from unknown (HELO localhost.localdomain) ([10.239.252.63]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jul 2022 20:22:11 -0700 From: hailinx xu To: dts@dpdk.org, qi.fu@intel.com Cc: hailinx xu Subject: [dts][PATCH v1 2/2] tests/ice_advanced_rss: support ipv6 next protocol id Date: Mon, 25 Jul 2022 11:20:10 +0800 Message-Id: <20220725032010.14368-3-hailinx.xu@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220725032010.14368-1-hailinx.xu@intel.com> References: <20220725032010.14368-1-hailinx.xu@intel.com> X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org ice support ipv6 next protocol id, add ipv6 protocol packets Signed-off-by: hailinx xu --- tests/TestSuite_ice_advanced_rss.py | 838 +++++++++++++++++++++++++++- 1 file changed, 833 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_ice_advanced_rss.py b/tests/TestSuite_ice_advanced_rss.py index 0c246cca..b88853c2 100644 --- a/tests/TestSuite_ice_advanced_rss.py +++ b/tests/TestSuite_ice_advanced_rss.py @@ -85,6 +85,9 @@ mac_ipv6_toeplitz_basic_pkt = { "nvgre": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP()/NVGRE()/Ether()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/("X"*480)', ], + "ipv6-protocol": [ + 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=123)/Raw("x"*40)' + ], } mac_ipv6_toeplitz_non_basic_pkt = [ @@ -98,6 +101,9 @@ mac_ipv6_udp_toeplitz_basic_pkt = { "ipv4_udp_vxlan_ipv6_udp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6()/UDP()/VXLAN()/Ether()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)', ], + "ipv6-udp-protocol": [ + 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/Raw("x"*40)' + ], } mac_ipv6_udp_toeplitz_non_basic_pkt = [ @@ -113,6 +119,9 @@ mac_ipv6_tcp_toeplitz_basic_pkt = { "ipv4_tcp_vxlan_ipv6_tcp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6()/UDP()/VXLAN()/Ether()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)', ], + "ipv6-tcp-protocol": [ + 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=6)/TCP(sport=22,dport=23)/Raw("x"*40)' + ], } mac_ipv6_tcp_toeplitz_non_basic_pkt = [ @@ -128,6 +137,9 @@ mac_ipv6_sctp_toeplitz_basic_pkt = { "ipv4_sctp_vxlan_ipv6_sctp": [ 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6()/UDP()/VXLAN()/Ether()/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=22,dport=23)/("X"*480)', ], + "ipv6-sctp-protocol": [ + 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=132)/SCTP(sport=22,dport=23)/Raw("x"*40)' + ], } mac_ipv6_sctp_toeplitz_non_basic_pkt = [ @@ -2140,6 +2152,18 @@ mac_ipv6_l2_src = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=99)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"], + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrDestOpt(nh=123)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2151,6 +2175,7 @@ mac_ipv6_l2_src = { mac_ipv6_toeplitz_basic_pkt["ipv6-nonfrag"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-icmp"][0], mac_ipv6_toeplitz_basic_pkt["ipv6-udp"][0], + mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"][0], ], "action": "check_no_hash", }, @@ -2198,6 +2223,22 @@ mac_ipv6_l2_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2027")/UDP(sport=25,dport=99)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": eval( + str(mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrRouting(nh=123)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2280,6 +2321,30 @@ mac_ipv6_l2src_l2dst = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=99)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": eval( + str(mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrHopByHop(nh=122)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2338,6 +2403,22 @@ mac_ipv6_l3_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=32,dport=33)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": eval( + str(mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=122)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2397,6 +2478,18 @@ mac_ipv6_l3_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"], + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=122)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2468,6 +2561,26 @@ mac_ipv6_all = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', "action": {"check_hash_same": "ipv6-udp"}, }, + { + "send_packet": eval( + str(mac_ipv6_toeplitz_basic_pkt["ipv6-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrDestOpt()/IPv6ExtHdrRouting" + ) + ), + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt()/IPv6ExtHdrRouting(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrRouting(nh=123)/("X"*480)', + "action": {"check_hash_different": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrRouting(nh=122)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, { "send_packet": mac_ipv6_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2504,6 +2617,18 @@ mac_ipv6_udp_l2_src = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2536,6 +2661,18 @@ mac_ipv6_udp_l2_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2576,6 +2713,26 @@ mac_ipv6_udp_l2src_l2dst = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/UDP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2608,6 +2765,22 @@ mac_ipv6_udp_l3_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=17)/UDP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2641,6 +2814,22 @@ mac_ipv6_udp_l3_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=17)/UDP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2674,6 +2863,22 @@ mac_ipv6_udp_l3src_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2707,6 +2912,22 @@ mac_ipv6_udp_l3src_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2740,6 +2961,22 @@ mac_ipv6_udp_l3dst_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2773,6 +3010,22 @@ mac_ipv6_udp_l3dst_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2806,6 +3059,22 @@ mac_ipv6_udp_l4_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2839,6 +3108,22 @@ mac_ipv6_udp_l4_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2884,6 +3169,34 @@ mac_ipv6_udp_all = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_udp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -2917,6 +3230,18 @@ mac_ipv6_udp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/UDP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrDestOpt(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", @@ -2963,6 +3288,31 @@ mac_ipv6_udp_l4_chksum = { ), "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "dport=23", "dport=23, chksum=0x1" + ) + ), + "action": "save_hash", + }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]).replace( + "dport=23", "dport=23, chksum=0x2" + ) + ), + "action": "check_hash_different", + }, + { + "send_packet": eval( + str(mac_ipv6_udp_toeplitz_basic_pkt["ipv6-udp-protocol"]) + .replace("sport=22,dport=23", "sport=22,dport=23,chksum=0x1") + .replace("1800:2929", "1800:3939") + .replace("2020", "3030") + ), + "action": "check_hash_same", + }, { "send_packet": eval( str(mac_ipv6_toeplitz_basic_pkt["ipv6-udp"]).replace( @@ -3002,6 +3352,22 @@ mac_ipv6_tcp_l2_src = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/TCP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3035,11 +3401,27 @@ mac_ipv6_tcp_l2_dst = { "action": "check_hash_same", }, { - "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, - "action": "check_no_hash", - }, - ], - "post-test": [ + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, + { + "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, + "action": "check_no_hash", + }, + ], + "post-test": [ { "send_packet": [ mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp"][0], @@ -3074,6 +3456,30 @@ mac_ipv6_tcp_l2src_l2dst = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/TCP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrRouting()/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3106,6 +3512,22 @@ mac_ipv6_tcp_l3_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=6)/TCP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3139,6 +3561,22 @@ mac_ipv6_tcp_l3_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3172,6 +3610,22 @@ mac_ipv6_tcp_l3src_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3205,6 +3659,22 @@ mac_ipv6_tcp_l3src_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3238,6 +3708,22 @@ mac_ipv6_tcp_l3dst_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3271,6 +3757,22 @@ mac_ipv6_tcp_l3dst_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3304,6 +3806,18 @@ mac_ipv6_tcp_l4_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3337,6 +3851,18 @@ mac_ipv6_tcp_l4_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3382,6 +3908,30 @@ mac_ipv6_tcp_all = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"], + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_tcp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3415,6 +3965,22 @@ mac_ipv6_tcp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/TCP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": eval( + str(mac_ipv6_tcp_toeplitz_basic_pkt["ipv6-tcp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrSegmentRouting(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", @@ -3436,6 +4002,7 @@ mac_ipv6_tcp_l4_chksum = eval( .replace("mac_ipv6_udp", "mac_ipv6_tcp") .replace("ipv6 / udp", "ipv6 / tcp") .replace("/UDP(sport=", "/TCP(sport=") + .replace("nh=17", "nh=6") ) # mac_ipv6_sctp @@ -3456,6 +4023,22 @@ mac_ipv6_sctp_l2_src = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/SCTP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3488,6 +4071,22 @@ mac_ipv6_sctp_l2_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/SCTP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3528,6 +4127,30 @@ mac_ipv6_sctp_l2src_l2dst = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/SCTP(sport=25,dport=99)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrSegmentRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2923",dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrSegmentRouting(nh=132)/SCTP(sport=25,dport=99)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3560,6 +4183,22 @@ mac_ipv6_sctp_l3_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3593,6 +4232,22 @@ mac_ipv6_sctp_l3_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3626,6 +4281,22 @@ mac_ipv6_sctp_l3src_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3659,6 +4330,22 @@ mac_ipv6_sctp_l3src_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3692,6 +4379,22 @@ mac_ipv6_sctp_l3dst_l4src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3725,6 +4428,22 @@ mac_ipv6_sctp_l3dst_l4dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3758,6 +4477,22 @@ mac_ipv6_sctp_l4_src = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=22,dport=33)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3791,6 +4526,22 @@ mac_ipv6_sctp_l4_dst = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=32,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3836,6 +4587,34 @@ mac_ipv6_sctp_all = { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=22,dport=23)/("X"*480)', "action": "check_hash_same", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=32,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=33)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_same", + }, { "send_packet": mac_ipv6_sctp_toeplitz_non_basic_pkt, "action": "check_no_hash", @@ -3869,6 +4648,22 @@ mac_ipv6_sctp_ipv6 = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/SCTP(sport=22,dport=23)/("X"*480)', "action": "check_hash_different", }, + { + "send_packet": eval( + str(mac_ipv6_sctp_toeplitz_basic_pkt["ipv6-sctp-protocol"]).replace( + "IPv6ExtHdrDestOpt", "IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting" + ) + ), + "action": "save_hash", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2928",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2021")/IPv6ExtHdrHopByHop()/IPv6ExtHdrRouting(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": "check_hash_different", + }, { "send_packet": 'Ether(src="00:11:22:33:44:53", dst="68:05:CA:BB:27:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=32,dport=33)/("X"*480)', "action": "check_hash_same", @@ -3891,6 +4686,7 @@ mac_ipv6_sctp_l4_chksum = eval( .replace("/SCTP(sport=", "/TCP(sport=") .replace("ipv6 / udp", "ipv6 / sctp") .replace("/UDP(sport=", "/SCTP(sport=") + .replace("nh=17", "nh=132") ) # toeplitz related data end @@ -4355,6 +5151,14 @@ mac_ipv6_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IP(dst="192.168.0.2", src="192.168.0.1")/("X"*480)', "action": {"check_hash_different": "ipv4-nonfrag"}, }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=123)/("X"*480)', + "action": {"save_hash": "ipv6-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt(nh=123)/("X"*480)', + "action": {"check_hash_same": "ipv6-protocol"}, + }, ], "post-test": [ { @@ -4415,6 +5219,14 @@ mac_ipv6_udp_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/TCP(sport=22,dport=23)/("X"*480)', "action": {"check_hash_different": "ipv6-tcp"}, }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": {"save_hash": "ipv6-udp-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrSegmentRouting(nh=17)/UDP(sport=22,dport=23)/("X"*480)', + "action": {"check_hash_same": "ipv6-udp-protocol"}, + }, ], "post-test": [ { @@ -4459,6 +5271,14 @@ mac_ipv6_tcp_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/UDP(sport=22,dport=23)/("X"*480)', "action": {"check_hash_different": "ipv6-udp"}, }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": {"save_hash": "ipv6-tcp-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrHopByHop(nh=6)/TCP(sport=22,dport=23)/("X"*480)', + "action": {"check_hash_same": "ipv6-tcp-protocol"}, + }, ], "post-test": [ { @@ -4495,6 +5315,14 @@ mac_ipv6_sctp_symmetric = { "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/SCTP(sport=22,dport=23)/("X"*480)', "action": {"check_hash_same": "ipv6-sctp"}, }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(src="ABAB:910B:6666:3457:8295:3333:1800:2929",dst="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrDestOpt(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": {"save_hash": "ipv6-sctp-protocol"}, + }, + { + "send_packet": 'Ether(src="00:11:22:33:44:55", dst="68:05:CA:BB:26:E0")/IPv6(dst="ABAB:910B:6666:3457:8295:3333:1800:2929",src="CDCD:910A:2222:5498:8475:1111:3900:2020")/IPv6ExtHdrDestOpt()/IPv6ExtHdrDestOpt(nh=132)/SCTP(sport=22,dport=23)/("X"*480)', + "action": {"check_hash_same": "ipv6-sctp-protocol"}, + }, ], "post-test": [ { -- 2.17.1