Calculating checksum of ICMPv6 Packet in C
问题 I am trying to calculate the checksum of an ICMPv6 message (to be precise, a Neighbor Advertisement). RFC 4443 describes it as the "16-bit one's complement of the one's complement sum of the entire ICMPv6 message" There is also some example code on how to do that (although I think it's from IPv4, but the only difference is what is included in the sum, not how to calculate it): RFC 1071 I have taken a packet from wireshark and entered the shorts in host byte order. Then I print the correct