DPDK usage discussions
 help / color / mirror / Atom feed
From: "Gábor LENCSE" <lencse@hit.bme.hu>
To: "users@dpdk.org" <users@dpdk.org>
Subject: How to calculate ICMPv6 checksum?
Date: Thu, 7 Aug 2025 17:32:02 +0200	[thread overview]
Message-ID: <40938de8-49b3-46d0-964b-9cd296000d10@hit.bme.hu> (raw)

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


             reply	other threads:[~2025-08-07 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-07 15:32 Gábor LENCSE [this message]
2025-08-07 17:57 ` Stephen Hemminger
2025-08-08 18:56   ` Gábor LENCSE

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40938de8-49b3-46d0-964b-9cd296000d10@hit.bme.hu \
    --to=lencse@hit.bme.hu \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).