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 A66F8A0503; Fri, 20 May 2022 07:46:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9736540222; Fri, 20 May 2022 07:46:17 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id E317240156 for ; Fri, 20 May 2022 07:46:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653025575; x=1684561575; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hdpaFxsX/NZRF5gTnZAMQVe/WpmAJUQTcnZ3bwt+83E=; b=d51s9FPAffMBtDJa0744BJbUGu0OStH3ANMOrd1NmcK5DvLemJ7MEdLM qMmAFoA9GQI/yaPRlrQcrLfFkFY6iRj09sfUhL+7FwNHClX7OpQ4QZylw H2clek4uscazzeBZ+nB8rC6+ge8vp1gVRrwvlFBnsvAf21YpboCoEwUdh WapVhzozy+GsNYL2h2Pxi6jlD7/mrX4GGK1N/e0szjZ5BnAtV5t9WLTBm VK0lKpA4EgNnDwkVfzqLUKOlloL1BWjZA6mD+nAuGIJtzTotKn1TtICB6 pArHZAufsSEvMRLdlEuV3hqKB9XUJmdbvvIsyvlz2yW980KjFQJzP5BHb Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="272203107" X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="272203107" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 22:46:12 -0700 X-IronPort-AV: E=Sophos;i="5.91,238,1647327600"; d="scan'208";a="546510800" Received: from unknown (HELO daily-regression-131.intel.com) ([10.239.251.131]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 22:46:11 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1 2/8] tests/ice_advanced_rss_pppoe: remove ip fragment packets Date: Fri, 20 May 2022 13:45:59 +0800 Message-Id: <20220520054605.1856551-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220520054605.1856551-1-songx.jiale@intel.com> References: <20220520054605.1856551-1-songx.jiale@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jiale Song --- .../ice_advanced_rss_pppoe_test_plan.rst | 240 --------- tests/TestSuite_ice_advanced_rss_pppoe.py | 464 +----------------- 2 files changed, 2 insertions(+), 702 deletions(-) diff --git a/test_plans/ice_advanced_rss_pppoe_test_plan.rst b/test_plans/ice_advanced_rss_pppoe_test_plan.rst index 05dd82b6..a8633f4b 100644 --- a/test_plans/ice_advanced_rss_pppoe_test_plan.rst +++ b/test_plans/ice_advanced_rss_pppoe_test_plan.rst @@ -487,8 +487,6 @@ packets mismatched the pattern:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)],iface="ens786f0") Subcase 1: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY ----------------------------------------- @@ -531,21 +529,6 @@ Subcase 1: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=4)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -597,21 +580,6 @@ Subcase 2: MAC_PPPOE_IPV4_PAY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=4)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -665,23 +633,6 @@ Subcase 3: MAC_PPPOE_IPV4_PAY_L2_SRC_ONLY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the fields [Source MAC][Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -733,21 +684,6 @@ Subcase 4: MAC_PPPOE_IPV4_PAY_L3_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Source IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.7", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -799,21 +735,6 @@ Subcase 5: MAC_PPPOE_IPV4_PAY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the field [Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.3", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.7", dst="192.168.1.2", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -867,23 +788,6 @@ Subcase 6: MAC_PPPOE_IPV4_PAY_L3_SRC_ONLY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - change the fields [Source IP][Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.7", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.3", dst="192.168.1.7", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53",dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=3)/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2223,9 +2127,7 @@ Test case: MAC_PPPOE_IPV6_PAY packets mismatched the pattern:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") Subcase 1: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY ----------------------------------------- @@ -2268,21 +2170,6 @@ Subcase 1: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2334,21 +2221,6 @@ Subcase 2: MAC_PPPOE_IPV6_PAY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2402,23 +2274,6 @@ Subcase 3: MAC_PPPOE_IPV6_PAY_L2_SRC_ONLY_L2_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source MAC][Dest MAC], send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2470,21 +2325,6 @@ Subcase 4: MAC_PPPOE_IPV6_PAY_L3_SRC_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Source IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2536,21 +2376,6 @@ Subcase 5: MAC_PPPOE_IPV6_PAY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the field [Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -2604,23 +2429,6 @@ Subcase 6: MAC_PPPOE_IPV6_PAY_L3_SRC_ONLY_L3_DST_ONLY check the hash values are the same as the first packet. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - change the fields [Source IP][Dest IP], send packets:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are different from the first packet. - change other fields, send packets:: - - sendp([Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values are the same as the first packet. - 4. send packets mismatched the pattern, check the hash values not exist. 5. destroy the rule:: @@ -4150,16 +3958,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash value is not changed. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - - swap the values of [Source IP] and [Dest IP], send the packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash value is not changed. - 4. send packets mismatched the rule, and swap the [Source IP] and [Dest IP] * MAC_PPPOE_IPV6_PAY packet:: @@ -4169,13 +3967,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash values of the two packets are different. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - * MAC_IPV4_PAY packet:: sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)],iface="ens786f0") @@ -4183,13 +3974,6 @@ Test case: MAC_PPPOE_IPV4_PAY_symmetric check the hash values of the two packets are different. - * MAC_IPV4_FRAG packet:: - - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - 5. destroy the rule:: testpmd> flow destroy 0 rule 0 @@ -4404,16 +4188,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash value is not changed. - * MAC_PPPOE_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - swap the values of [Source IP] and [Dest IP], send the packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0057)/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash value is not changed. - 4. send packets mismatched the rule, and swap the values of [Source IP] and [Dest IP] * MAC_PPPOE_IPV4_PAY packet:: @@ -4423,13 +4197,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash values of the two packets are different. - * MAC_PPPOE_IPV4_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(proto=0x0021)/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - * MAC_IPV6_PAY packet:: sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)],iface="ens786f0") @@ -4437,13 +4204,6 @@ Test case: MAC_PPPOE_IPV6_PAY_symmetric check the hash values of the two packets are different. - * MAC_IPV6_FRAG packet:: - - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - sendp([Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)],iface="ens786f0") - - check the hash values of the two packets are different. - 5. destroy the rule:: testpmd> flow destroy 0 rule 0 diff --git a/tests/TestSuite_ice_advanced_rss_pppoe.py b/tests/TestSuite_ice_advanced_rss_pppoe.py index 229cc311..968164a2 100644 --- a/tests/TestSuite_ice_advanced_rss_pppoe.py +++ b/tests/TestSuite_ice_advanced_rss_pppoe.py @@ -385,8 +385,6 @@ mac_pppoe_ipv4_pay_packets = { "mismatch": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)', ] } @@ -398,14 +396,6 @@ mac_pppoe_ipv4_pay = [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5")/Raw("x"*80)', ] -mac_pppoe_ipv4_frag = [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=4)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.5", frag=3)/Raw("x"*80)', -] - mac_pppoe_ipv4_pay_src_test = [ { "send_packet": mac_pppoe_ipv4_pay[0], @@ -419,18 +409,6 @@ mac_pppoe_ipv4_pay_src_test = [ "send_packet": mac_pppoe_ipv4_pay[2], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -450,18 +428,6 @@ mac_pppoe_ipv4_pay_dst_test = [ "send_packet": mac_pppoe_ipv4_pay[1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -489,26 +455,6 @@ mac_pppoe_ipv4_pay_src_dst_test = [ "send_packet": mac_pppoe_ipv4_pay[-1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_frag[0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[3], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_frag[-1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -518,7 +464,7 @@ mac_pppoe_ipv4_pay_src_dst_test = [ mac_pppoe_ipv4_pay_post_test = ( [ { - "send_packet": [item for item in mac_pppoe_ipv4_pay + mac_pppoe_ipv4_frag], + "send_packet": [item for item in mac_pppoe_ipv4_pay], "action": "check_no_hash", }, ], @@ -554,11 +500,6 @@ mac_pppoe_ipv4_pay_l3_src_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_src_only = { @@ -584,24 +525,6 @@ mac_pppoe_ipv4_pay_l3_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": mac_pppoe_ipv4_pay_packets["mismatch"], "action": "check_no_hash", @@ -609,8 +532,7 @@ mac_pppoe_ipv4_pay_l3_src_only = { ], "post-test": [ { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_pay"] - + mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_frag"], + "send_packet": mac_pppoe_ipv4_pay_l3_src_only_packets["mac_pppoe_ipv4_pay"], "action": "check_no_hash", }, ], @@ -622,11 +544,6 @@ mac_pppoe_ipv4_pay_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.3")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.7", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.3", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.7", dst="192.168.1.2", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_dst_only = { @@ -652,24 +569,6 @@ mac_pppoe_ipv4_pay_l3_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -680,7 +579,6 @@ mac_pppoe_ipv4_pay_l3_dst_only = { "send_packet": [ i for i in mac_pppoe_ipv4_pay_l3_dst_only_packets["mac_pppoe_ipv4_pay"] - + mac_pppoe_ipv4_pay_l3_dst_only_packets["mac_pppoe_ipv4_frag"] ], "action": "check_no_hash", }, @@ -695,13 +593,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.7", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.3", dst="192.168.1.7", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=3)/Raw("x"*80)', - ], } mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { @@ -739,36 +630,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv4_pay"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv4_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv4_pay_packets["mismatch"]], "action": "check_no_hash", @@ -781,9 +642,6 @@ mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only = { for i in mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ "mac_pppoe_ipv4_pay" ] - + mac_pppoe_ipv4_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv4_frag" - ] ], "action": "check_no_hash", }, @@ -2295,9 +2153,7 @@ mac_pppoe_ipv4_tcp_pay_ipv4 = { mac_pppoe_ipv6_pay_packets = { "mismatch": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', ] } @@ -2307,11 +2163,6 @@ mac_pppoe_ipv6_pay_l2_src_only_packets = { 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_src_only = { @@ -2337,37 +2188,11 @@ mac_pppoe_ipv6_pay_l2_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l2_src_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l2_dst_only_packets = { @@ -2376,11 +2201,6 @@ mac_pppoe_ipv6_pay_l2_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_dst_only = { @@ -2406,37 +2226,11 @@ mac_pppoe_ipv6_pay_l2_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l2_dst_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets = { @@ -2447,13 +2241,6 @@ mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets = { 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only = { @@ -2491,52 +2278,11 @@ mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i - for i in mac_pppoe_ipv6_pay_l2_src_only_l2_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_src_only_packets = { @@ -2545,11 +2291,6 @@ mac_pppoe_ipv6_pay_l3_src_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:54", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_src_only = { @@ -2575,37 +2316,11 @@ mac_pppoe_ipv6_pay_l3_src_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][1:-1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l3_src_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_dst_only_packets = { @@ -2614,11 +2329,6 @@ mac_pppoe_ipv6_pay_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2023")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_dst_only = { @@ -2644,37 +2354,11 @@ mac_pppoe_ipv6_pay_l3_dst_only = { ], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1:-1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i for i in mac_pppoe_ipv6_pay_l3_dst_only_packets["mac_pppoe_ipv6_frag"] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets = { @@ -2685,13 +2369,6 @@ mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1537", dst="CDCD:910A:2222:5498:8475:1111:3900:2025")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:53", dst="10:22:33:44:55:99")/PPPoE(sessionid=7)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], } mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only = { @@ -2729,52 +2406,11 @@ mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only = { ][-1], "action": {"check_hash_same", "mac_pppoe_ipv6_pay"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][2], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][3], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ][-1], - "action": {"check_hash_same", "mac_pppoe_ipv6_frag"}, - }, { "send_packet": [i for i in mac_pppoe_ipv6_pay_packets["mismatch"]], "action": "check_no_hash", }, ], - "post-test": [ - { - "send_packet": [ - i - for i in mac_pppoe_ipv6_pay_l3_src_only_l3_dst_only_packets[ - "mac_pppoe_ipv6_frag" - ] - ], - "action": "check_no_hash", - }, - ], } mac_pppoe_ipv6_udp_pay_packets = { @@ -4626,28 +4262,16 @@ mac_pppoe_ipv6_pay_symmetric_packets = { 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], }, "mismatch": { "mac_pppoe_ipv4_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)', - ], "mac_ipv6_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], }, } @@ -4668,18 +4292,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_same": "mac_pppoe_ipv6_pay_match"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["match"][ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag_match"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["match"][ - "mac_pppoe_ipv6_frag" - ][1:], - "action": {"check_hash_same": "mac_pppoe_ipv6_frag_match"}, - }, { "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ "mac_pppoe_ipv4_pay" @@ -4692,18 +4304,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_different": "mac_pppoe_ipv4_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv4_frag" - ][1:], - "action": {"check_hash_different": "mac_pppoe_ipv4_frag_mismatch"}, - }, { "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ "mac_ipv6_pay" @@ -4716,18 +4316,6 @@ mac_pppoe_ipv6_pay_symmetric = { ][1:], "action": {"check_hash_different": "mac_ipv6_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_ipv6_frag" - ][0], - "action": {"save_hash": "mac_ipv6_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv6_pay_symmetric_packets["mismatch"][ - "mac_ipv6_frag" - ][1:], - "action": {"check_hash_different": "mac_ipv6_frag_mismatch"}, - }, ], "post-test": [ { @@ -4745,28 +4333,16 @@ mac_pppoe_ipv4_pay_symmetric_packets = { 'Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55",dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1")/Raw("x"*80)', ], - "mac_pppoe_ipv4_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.1", dst="192.168.1.2", frag=5)/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x21\')/IP(src="192.168.1.2", dst="192.168.1.1", frag=5)/Raw("x"*80)', - ], }, "mismatch": { "mac_pppoe_ipv6_pay": [ 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/Raw("x"*80)', 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/Raw("x"*80)', ], - "mac_pppoe_ipv6_frag": [ - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:1536", dst="CDCD:910A:2222:5498:8475:1111:3900:2022")/IPv6ExtHdrFragment()/Raw("x"*80)', - 'Ether(src="00:11:22:33:44:55", dst="10:22:33:44:55:66")/PPPoE(sessionid=3)/PPP(b\'\\x00\\x57\')/IPv6(src="CDCD:910A:2222:5498:8475:1111:3900:2022", dst="CDCD:910A:2222:5498:8475:1111:3900:1536")/IPv6ExtHdrFragment()/Raw("x"*80)', - ], "mac_ipv4_pay": [ 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21")/Raw("x"*80)', 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20")/Raw("x"*80)', ], - "mac_ipv4_frag": [ - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.20",dst="192.168.0.21", frag=5)/Raw("x"*80)', - 'Ether(dst="00:11:22:33:44:55")/IP(src="192.168.0.21",dst="192.168.0.20", frag=5)/Raw("x"*80)', - ], }, } @@ -4787,18 +4363,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_same": "mac_pppoe_ipv4_pay_match"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["match"][ - "mac_pppoe_ipv4_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv4_frag_match"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["match"][ - "mac_pppoe_ipv4_frag" - ][1], - "action": {"check_hash_same": "mac_pppoe_ipv4_frag_match"}, - }, { "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ "mac_pppoe_ipv6_pay" @@ -4811,18 +4375,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_different": "mac_pppoe_ipv6_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv6_frag" - ][0], - "action": {"save_hash": "mac_pppoe_ipv6_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_pppoe_ipv6_frag" - ][1], - "action": {"check_hash_different": "mac_pppoe_ipv6_frag_mismatch"}, - }, { "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ "mac_ipv4_pay" @@ -4835,18 +4387,6 @@ mac_pppoe_ipv4_pay_symmetric = { ][1], "action": {"check_hash_different": "mac_ipv4_pay_mismatch"}, }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_ipv4_frag" - ][0], - "action": {"save_hash": "mac_ipv4_frag_mismatch"}, - }, - { - "send_packet": mac_pppoe_ipv4_pay_symmetric_packets["mismatch"][ - "mac_ipv4_frag" - ][1], - "action": {"check_hash_different": "mac_ipv4_frag_mismatch"}, - }, ], "post-test": [ { -- 2.17.1