Lines Matching refs:checksum
16 * checksum.c - ipv4/ipv6 checksum calculation
27 #include "checksum.h"
30 * adds data to a checksum
31 * current - the current checksum (or 0 to start a new checksum)
32 * data - the data to add to the checksum
36 uint32_t checksum = current;
41 checksum += *data_16;
46 checksum += *(uint8_t *)data_16;
49 return checksum;
53 * close the checksum
67 * data - data to checksum
78 * calculate the pseudo header checksum for use in tcp/udp/icmp headers
79 * current - the current checksum or 0 to start a new checksum
98 * calculate the pseudo header checksum for use in tcp/udp headers
99 * current - the current checksum or 0 to start a new checksum