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 A7C9B46CE8 for ; Thu, 7 Aug 2025 17:32:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 805944027C; Thu, 7 Aug 2025 17:32:26 +0200 (CEST) Received: from frogstar.hit.bme.hu (frogstar.hit.bme.hu [152.66.248.44]) by mails.dpdk.org (Postfix) with ESMTP id B979940270 for ; Thu, 7 Aug 2025 17:32:25 +0200 (CEST) Received: from [172.16.18.16] ([193.225.151.17]) (authenticated bits=0) by frogstar.hit.bme.hu (8.18.1/8.17.1) with ESMTPSA id 577FWJBe083737 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Thu, 7 Aug 2025 17:32:24 +0200 (CEST) (envelope-from lencse@hit.bme.hu) X-Authentication-Warning: frogstar.hit.bme.hu: Host [193.225.151.17] claimed to be [172.16.18.16] Message-ID: <40938de8-49b3-46d0-964b-9cd296000d10@hit.bme.hu> Date: Thu, 7 Aug 2025 17:32:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: "users@dpdk.org" Content-Language: en-US From: =?UTF-8?Q?G=C3=A1bor_LENCSE?= Subject: How to calculate ICMPv6 checksum? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.103.12 at frogstar.hit.bme.hu X-Virus-Status: Clean Received-SPF: pass (frogstar.hit.bme.hu: authenticated connection) receiver=frogstar.hit.bme.hu; client-ip=193.225.151.17; helo=[172.16.18.16]; envelope-from=lencse@hit.bme.hu; x-software=spfmilter 2.001 http://www.acme.com/software/spfmilter/ with libspf2-1.2.11; X-DCC--Metrics: frogstar.hit.bme.hu; whitelist X-Spam-Status: No, score=-0.9 required=5.0 tests=ALL_TRUSTED,AWL, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.6-frogstar X-Spam-Checker-Version: SpamAssassin 3.4.6-frogstar (2021-04-09) on frogstar.hit.bme.hu X-Scanned-By: MIMEDefang 2.86 on 152.66.248.44 X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Dear All, I am working on adding ARP/NDP support to my SIIT / Stateful NAT64 benchmarking tool, siitperf [1]. (So far, the ARP / NDP table entries had to be set manually at the device under test, as siitperf was not able to reply to ARP / NDP requests). The ARP reply functionality seems to work fine, but I have a problem with NDP. As ICMPv6 messages contain checksum, I would need a function that computes it. However, I only found  the rte_ipv6_udptcp_cksum() function, but I did not find a similar one for calculating ICMPv6 checksum. I have been checking the functions shown here: https://doc.dpdk.org/api/rte__ip6_8h.html Could you please advise me about the function to use for ICMPv6 checksum calculation? Best regards, Gábor [1] https://github.com/lencsegabor/siitperf