[][src]Crate netchecksum

The 1s complement checksum used by TCP, UDP and ICMP.

This implementation, though, is not 100% compatible with the standard one used in TCP, UDP and ICMP. This is made compatible with the original cjdns javascript implementation which uses little-endian summing and byte-flipping the sum in the end. For long buffers the result is different! This is a note of warning not to use any "standard" checksum here, if we want to keep compatibility with the JS implementation.

Functions

cksum_raw
cksum_udp4