Home
last modified time | relevance | path

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

/system/core/libnetutils/
Dchecksum.c138 uint16_t folded_sum = ip_checksum_fold(checksum + new_hdr_sum); in ip_checksum_adjust() local
140 if (folded_sum > folded_old) { in ip_checksum_adjust()
141 return ~(folded_sum - folded_old); in ip_checksum_adjust()
143 return ~(folded_sum - folded_old - 1); // end-around borrow in ip_checksum_adjust()