in4_cksum
sum = in4_cksum(m, p, off, len);
if (in4_cksum(m, 0, ehlen, iphlen) != 0) {
sum = in4_cksum(m, 0, l4offset, len);
sum = in4_cksum(m, 0, l4offset, len);
dh->dh_sum = in4_cksum(m, IPPROTO_DCCP, sizeof(struct ip),
dh->dh_sum = in4_cksum(m, IPPROTO_DCCP, off, cslen);
int in4_cksum(struct mbuf *, u_int8_t, int, int);
ip->ip_sum = in4_cksum(n, 0, off, iphlen);
th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss);
csum = in4_cksum(m, 0, hdrlen, iphdrlen);
csum = in4_cksum(m, 0, l4offset, ip_len - iphdrlen);
csum = in4_cksum(m, 0, offset, ntohs(ip->ip_len) - offset);
if (in4_cksum(m, IPPROTO_TCP, toff,
th->th_sum = in4_cksum(m, IPPROTO_TCP, hlen, tlen - hlen);
if (in4_cksum(m, IPPROTO_UDP, iphlen, len) != 0)
th->th_sum = in4_cksum(m, IPPROTO_TCP, poff, plen);
uh->uh_sum = in4_cksum(m, IPPROTO_UDP, poff, plen);