Reputation: 155
https://man7.org/linux/man-pages/man7/raw.7.html
Maybe is there a way tell kernel auto calc the tcp checksum?
Upvotes: 0
Views: 70
Reputation: 505
I'm guessing that you ran the tcpdump on the same host that is sending the packet. Most NICs will do the checksum calculation in hardware as the packet is being sent. The tcpdump sees the packet before it is sent, so it doesn't see the right checksum.
Try running tcpdump on the destination machine. Hopefully it will see the right checksum.
Upvotes: 0