From: "N. Benes" <nbenes@eso.org>
To: users@dpdk.org
Subject: Re: [dpdk-users] Bug in IPv4 header checksum computation?
Date: Fri, 22 Mar 2019 09:30:00 +0000 [thread overview]
Message-ID: <0f3b13ee-f78f-eebe-268c-1dd47d7e9f49@eso.org> (raw)
In-Reply-To: <abd6263a-2d7a-cf1b-1193-7af41af510a5@eso.org>
N. Benes:
> Example to generate a PCAP with 0x0000 IPv4 header checksum and
> (correct) UDP payload with 0 checksum:
>
> text2pcap -n -e 0800 ipcks.txt ipcks.pcapng
>> 0000 45 00 00 20 12 34 00 00 10 11 00 00 0a 00 00 01
>> 0010 0a 00 00 02 01 00 00 16 00 0c 00 00 00 00 00 00
As an improvement to the above example, here's a valid IPv4/UDP packet
with IPv4 header checksum resulting in 0x0000 (IPv4 identification
chosen accordingly):
> 0000 45 00 00 20 96 cb 00 00 10 11 00 00 0a 00 00 01
> 0010 0a 00 00 02 01 00 00 16 00 0c 00 00 00 00 00 00
This packet is shown as fully correct in Wireshark, but DPDK's
rte_ipv4_cksum() would set the checksum to 0xffff.
prev parent reply other threads:[~2019-03-22 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-21 15:03 N. Benes
2019-03-22 9:30 ` N. Benes [this message]
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=0f3b13ee-f78f-eebe-268c-1dd47d7e9f49@eso.org \
--to=nbenes@eso.org \
--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).