Lines Matching defs:cksum
193 uint32_t cksum;
231 cksum = (dst >> 16) + (dst & 0xFFFF) +
233 cksum += htons(len);
240 cksum += (((proto) == IPPROTO_UDP) ?
242 cksum = IP_CSUM(mp, IP_SIMPLE_HDR_LENGTH +
243 offset, cksum);
244 *(up) = (uint16_t)(cksum ? cksum : ~cksum);
267 uint16_t *up, partial, cksum;
292 cksum = IP_BCSUM_PARTIAL(mp->b_rptr + offset + start,
294 cksum = ~cksum;
295 *up = cksum ? cksum : ~cksum;