in6_cksum
th->th_sum = in6_cksum(m, IPPROTO_TCP,
sum = in6_cksum(m, p, off, len);
sum = in6_cksum(m, 0, l4offset, len);
sum = in6_cksum(m, 0, l4offset, len);
th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
dh->dh_sum = in6_cksum(m, IPPROTO_DCCP, sizeof(struct ip6_hdr),
if (in6_cksum(m, IPPROTO_DCCP, off, cslen) != 0) {
return (in6_cksum(m, IPPROTO_CARP, off, len));
if (in6_cksum(m, IPPROTO_TCP, toff,
th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
th->th_sum = in6_cksum(m, IPPROTO_TCP, hlen, tlen - hlen);
icmp6->icmp6_cksum = in6_cksum(m, IPPROTO_ICMPV6,
in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), ntohs(ip6->ip6_plen));
if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
int in6_cksum(struct mbuf *, u_int8_t, u_int32_t, u_int32_t);
th->th_sum = in6_cksum(n, 0, off + iphlen, thlen + mss);
csum = in6_cksum(m, 0, l4offset,
csum = in6_cksum(m, 0, offset, m->m_pkthdr.len - offset);
if (in6_cksum(m, IPPROTO_PIM, off, cksumlen)) {
mldh->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, sizeof(struct ip6_hdr),
in6_cksum(m, IPPROTO_ICMPV6, sizeof(struct ip6_hdr), icmp6len);
in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), icmp6len);
in6_cksum(m, proto, *offp,
sum = in6_cksum(m, nxt, sizeof(*ip6), plen);
if (in6_cksum(m, IPPROTO_UDP, off, len) != 0) {
uh_sum = in6_cksum(m, IPPROTO_UDP, sizeof(*ip6), plen);