Lines Matching refs:cksum
321 uint16_t cksum, off; in udp_ipsec_adjust_cksum() local
333 if (sav->natt->cksum != 0) { in udp_ipsec_adjust_cksum()
335 m_copydata(m, skip + off, sizeof(cksum), in udp_ipsec_adjust_cksum()
336 (caddr_t)&cksum); in udp_ipsec_adjust_cksum()
338 if (proto == IPPROTO_UDP && cksum == 0) in udp_ipsec_adjust_cksum()
340 cksum = in_addword(cksum, sav->natt->cksum); in udp_ipsec_adjust_cksum()
364 cksum = 0; /* Reset for UDP. */ in udp_ipsec_adjust_cksum()
366 m_copyback(m, skip + off, sizeof(cksum), (caddr_t)&cksum); in udp_ipsec_adjust_cksum()
374 cksum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in udp_ipsec_adjust_cksum()
376 m_copyback(m, skip + off, sizeof(cksum), in udp_ipsec_adjust_cksum()
377 (caddr_t)&cksum); in udp_ipsec_adjust_cksum()
391 cksum = in6_cksum_pseudo(ip6, m->m_pkthdr.len - skip, in udp_ipsec_adjust_cksum()
393 m_copyback(m, skip + off, sizeof(cksum), in udp_ipsec_adjust_cksum()
394 (caddr_t)&cksum); in udp_ipsec_adjust_cksum()