First time here? Check out the FAQ!
THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

wireshark complaining of incorrect UDP checksum

I am capturing UDP packets on a gateway in an IPv6 environment. Wireshark keeps complaining that the UDP checksum is incorrect. I am using Wireshark Version 3.2.2. How do I know if wireshark is incorrect or the checksum in the incoming packet is incorrect.

I calculate the checksum in the incoming packet in the following way -

  1. I added (IPv6 address (source & destination), UDP length, Protocol ID, Entire UDP packet with checksum set as 0), 2 bytes at a time.
  2. Then, the MSB 4 bytes of the final sum to the LSB 4 bytes of the final sum.
  3. 1's compliment of the result in step (2).

Can anyone tell if my checksum computation is incorrect? If not, why is the value computed by me is different from the value expected by wireshark.

rkbug's avatar
1
rkbug
asked 2020-05-06 05:24:00 +0000
grahamb's avatar
23.8k
grahamb
updated 2020-05-06 14:12:18 +0000
edit flag offensive 0 remove flag close merge delete

Comments

This discussion is about TCP offload but is possible that the NIC on the "gateway" is doing rx checksum for UDP also?
What operating system is the capture machine running?

Chuckc's avatar Chuckc (2020-05-06 18:56:46 +0000) edit
add a comment see more comments

1 Answer

0

Thank you. I figured the issue. The IP addresses in the IP header was byte reverse in the checksum computation.

rkbug's avatar
1
rkbug
answered 2020-05-07 19:50:41 +0000
edit flag offensive 0 remove flag delete link

Comments

We don't close questions, instead we accept the correct answer by clicking the checkmark icon next to it.

grahamb's avatar grahamb (2020-05-07 19:59:44 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer