Searched refs:temp_sum (Results 1 – 2 of 2) sorted by relevance
56 uint16_t ip_checksum_fold(uint32_t temp_sum) { in ip_checksum_fold() argument57 while (temp_sum > 0xffff) { in ip_checksum_fold()58 temp_sum = (temp_sum >> 16) + (temp_sum & 0xFFFF); in ip_checksum_fold()60 return temp_sum; in ip_checksum_fold()68 uint16_t ip_checksum_finish(uint32_t temp_sum) { in ip_checksum_finish() argument69 return ~ip_checksum_fold(temp_sum); in ip_checksum_finish()80 uint32_t temp_sum; in ip_checksum() local82 temp_sum = ip_checksum_add(0, data, len); in ip_checksum()83 return ip_checksum_finish(temp_sum); in ip_checksum()
26 uint16_t ip_checksum_finish(uint32_t temp_sum);