From patchwork Fri Aug 18 14:32:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Bhansali X-Patchwork-Id: 130525 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BA0C74309C; Fri, 18 Aug 2023 16:32:44 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5462240ED9; Fri, 18 Aug 2023 16:32:44 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 6971E40395 for ; Fri, 18 Aug 2023 16:32:42 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 37I6nFRw030475; Fri, 18 Aug 2023 07:32:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=JuPSlz/VHyviUoGL1Hf5sRWXtD2iOrZOvn3bVA855lA=; b=M5x+W2aGBSw5nqrrIe70IDRN5l1Q2MT3EhYWHrJKvzzt0cZqDkSO+6BSaeECSlizlmvr BDnyPnkq5HX6di/Jyjku46rqNzu7PWvhfUCPbIr/Qs/lxehrDsw6HydGJeD0Bd1AKB/M BsHgslNNMPFu9KkmObjz+rvR1GUl0TOLdJ6nsiC34gEum2+dsC0giTcXe4MgSlzYCFxY AL3Usqgt+B+0WjxvALp/H7AxRdIzf9fzOtija4i3Qq6zKJH3KilV/+hGO8oUMUQ72uo8 I0GERD1EUbELKX2Xm2g+PuWJt06ja8farcSKYfwjjt0ufcBywl3P4LIbZxw43UhEvZ8z Sg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3shy4d1tq5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 18 Aug 2023 07:32:41 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 18 Aug 2023 07:32:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Fri, 18 Aug 2023 07:32:39 -0700 Received: from localhost.localdomain (unknown [10.28.36.158]) by maili.marvell.com (Postfix) with ESMTP id 51DF53F7048; Fri, 18 Aug 2023 07:32:37 -0700 (PDT) From: Rahul Bhansali To: , Akhil Goyal , Fan Zhang , Anoob Joseph CC: Rahul Bhansali Subject: [PATCH] test/security: fix IPv6 next header field Date: Fri, 18 Aug 2023 20:02:29 +0530 Message-ID: <20230818143229.2708450-1-rbhansali@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: BPxWOCHxWwRmHRJoCrZwCrR50FunG3W4 X-Proofpoint-GUID: BPxWOCHxWwRmHRJoCrZwCrR50FunG3W4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-18_18,2023-08-18_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In case of IPv6 fragments are reassembled, then fragment header will be removed from packet and next-header field in IPv6 header will be updated to header followed by fragment header. Fixes: a310577766d6 ("test/security: add inline IPsec reassembly cases") Signed-off-by: Rahul Bhansali Acked-by: Akhil Goyal --- app/test/test_security_inline_proto_vectors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test/test_security_inline_proto_vectors.h b/app/test/test_security_inline_proto_vectors.h index 61a045b446..3ac75588a3 100644 --- a/app/test/test_security_inline_proto_vectors.h +++ b/app/test/test_security_inline_proto_vectors.h @@ -88,7 +88,7 @@ struct ip_reassembly_test_packet pkt_ipv6_udp_p1 = { .l4_offset = 40, .data = { /* IP */ - 0x60, 0x00, 0x00, 0x00, 0x05, 0xb4, 0x2C, 0x40, + 0x60, 0x00, 0x00, 0x00, 0x05, 0xb4, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -135,7 +135,7 @@ struct ip_reassembly_test_packet pkt_ipv6_udp_p2 = { .l4_offset = 40, .data = { /* IP */ - 0x60, 0x00, 0x00, 0x00, 0x11, 0x5a, 0x2c, 0x40, + 0x60, 0x00, 0x00, 0x00, 0x11, 0x5a, 0x11, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,