Searched refs:th_sum (Results 1 - 7 of 7) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcpip.h98 #define ti_sum ti_t.th_sum
H A Dtcp.h106 unsigned short th_sum; /* checksum */ member in struct:tcphdr
H A Dtcp_subr.c404 tcp_hdr->th_sum = 0;
420 tcp_hdr->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
624 nth->th_sum = 0;
625 nth->th_sum = in6_cksum(m, IPPROTO_TCP,
635 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
638 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
H A Dtcp_output.c1317 th->th_sum = in6_cksum(m, IPPROTO_TCP, sizeof(struct ip6_hdr),
1323 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1325 th->th_sum = in_addword(th->th_sum,
H A Dip_compat.h547 __u16 th_sum;
H A Dtcp_input.c668 th->th_sum = in_addword(pseudo, (m->m_pkthdr.csum_data & 0xFFFF));
671 th->th_sum = m->m_pkthdr.csum_data;
673 th->th_sum = in_pseudo(ip->ip_src.s_addr,
677 th->th_sum ^= 0xffff;
691 th->th_sum = in_cksum(m, len);
699 if (th->th_sum) {
H A Dip_fw2.c1302 tcp->th_sum = in_cksum(m, m->m_pkthdr.len);

Completed in 43 milliseconds