Home
last modified time | relevance | path

Searched refs:temp_sum (Results 1 – 2 of 2) sorted by relevance

/system/core/libnetutils/
Dchecksum.c56 uint16_t ip_checksum_fold(uint32_t temp_sum) { in ip_checksum_fold() argument
57 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() argument
69 return ~ip_checksum_fold(temp_sum); in ip_checksum_finish()
80 uint32_t temp_sum; in ip_checksum() local
82 temp_sum = ip_checksum_add(0, data, len); in ip_checksum()
83 return ip_checksum_finish(temp_sum); in ip_checksum()
/system/core/libnetutils/include/netutils/
Dchecksum.h26 uint16_t ip_checksum_finish(uint32_t temp_sum);