Lines Matching full:checksum
2 * 4.4-Lite-2 Internet checksum routine, modified to take a vector of
47 * Checksum routine for Internet Protocol family headers (Portable Version).
151 * Given the host-byte-order value of the checksum field in a packet
152 * header, and the network-byte-order computed checksum of the data
153 * that the checksum covers (including the checksum itself), compute
154 * what the checksum field *should* have been.
162 * The value that should have gone into the checksum field in in_cksum_shouldbe()
164 * *but* the checksum field. in in_cksum_shouldbe()
166 * We can compute that by subtracting the value of the checksum in in_cksum_shouldbe()
170 * "sum" is the value of the checksum field, and "computed_sum" in in_cksum_shouldbe()
181 * As RFC 1071 notes, the checksum can be computed without in in_cksum_shouldbe()
183 * on a big-endian machine gives a big-endian checksum, which in in_cksum_shouldbe()
184 * can be directly stuffed into the big-endian checksum fields in in_cksum_shouldbe()
186 * machine gives a little-endian checksum, which must be in in_cksum_shouldbe()
187 * byte-swapped before being stuffed into a big-endian checksum in in_cksum_shouldbe()
192 * host-byte-order value from the header; the adjusted checksum in in_cksum_shouldbe()