Searched refs:computed_sum (Results 1 - 1 of 1) sorted by last modified time

/freebsd-11-stable/contrib/tcpdump/
H A Din_cksum.c157 in_cksum_shouldbe(uint16_t sum, uint16_t computed_sum) argument
170 * "sum" is the value of the checksum field, and "computed_sum"
172 * so that's -(-computed_sum - sum), or (sum + computed_sum).
190 * "computed_sum" is a network-byte-order value, so we must put
196 shouldbe += ntohs(computed_sum);

Completed in 106 milliseconds