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

/macosx-10.10.1/xnu-2782.1.97/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.c534 tcp_hdr->th_sum = in6_pseudo(&inp->in6p_laddr, &inp->in6p_faddr,
551 tcp_hdr->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
756 nth->th_sum = 0;
757 nth->th_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst,
760 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
768 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
771 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
H A Dtcp_output.c1822 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1824 th->th_sum = in_addword(th->th_sum,
1831 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
1833 th->th_sum = in_addword(th->th_sum,
H A Dtcp_input.c5574 th->th_sum = m->m_pkthdr.csum_rx_val;
5606 th->th_sum = in_pseudo(ip->ip_src.s_addr,
5610 th->th_sum ^= 0xffff;
5624 th->th_sum = in_cksum(m, len);
5643 th->th_sum = m->m_pkthdr.csum_rx_val;
5675 th->th_sum = in6_pseudo(
5679 th->th_sum ^= 0xffff;
5682 th->th_sum = in6_cksum(m, IPPROTO_TCP, off, tlen);
5692 if (th->th_sum != 0) {
H A Dip_compat.h547 __u16 th_sum;
H A Dip_fw2.c1879 tcp->th_sum = in_cksum(m, m->m_pkthdr.len);
/macosx-10.10.1/tcpdump-61/tcpdump/
H A Dtcp.h50 u_int16_t th_sum; /* checksum */ member in struct:tcphdr
H A Dprint-tcp.c413 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
427 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
1119 savecsum = tp1.th_sum;
1120 tp1.th_sum = 0;
1122 tp1.th_sum = savecsum;
/macosx-10.10.1/network_cmds-457/alias/
H A Dalias_smedia.c381 tc->th_sum = 0;
382 tc->th_sum = TcpChecksum(pip);
426 tc->th_sum = 0;
427 tc->th_sum = TcpChecksum(pip);
H A Dalias_irc.c345 tc->th_sum = 0;
346 tc->th_sum = TcpChecksum(pip);
H A Dalias_pptp.c212 ADJUST_CHECKSUM(accumulate, tc->th_sum);
282 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dalias_ftp.c596 tc->th_sum = 0;
597 tc->th_sum = TcpChecksum(pip);
H A Dalias.c234 ADJUST_CHECKSUM(accnetorder, tc->th_sum);
1054 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1126 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1212 ADJUST_CHECKSUM(accumulate, tc->th_sum);
1607 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dalias_proxy.c394 tc->th_sum = 0;
395 tc->th_sum = TcpChecksum (pip);
/macosx-10.10.1/ppp-786.1.1/Family/
H A Dslcompress.c390 deltaA = ntohs(th->th_sum);
564 th->th_sum = htons((*cp << 8) | cp[1]);
/macosx-10.10.1/xnu-2782.1.97/bsd/dev/dtrace/scripts/
H A Dtcp.d138 tcp_checksum = ntohs(T->th_sum);
/macosx-10.10.1/xnu-2782.1.97/bsd/net/
H A Dpf_norm.c2198 th->th_sum = pf_cksum_fixup(th->th_sum, ov, nv, 0);
2204 th->th_sum = pf_cksum_fixup(th->th_sum, th->th_urp, 0, 0);
2422 &th->th_sum,
2438 &th->th_sum, htonl(tsecr),
2782 th->th_sum = pf_cksum_fixup(th->th_sum,
H A Dpf.c2348 pf_change_a(&sack.start, &th->th_sum,
2351 pf_change_a(&sack.end, &th->th_sum,
2521 th->th_sum = in_cksum(m, len);
2546 th->th_sum = in6_cksum(m, IPPROTO_TCP,
4157 &th->th_sport, pd->ip_sum, &th->th_sum,
4255 &th->th_dport, pd->ip_sum, &th->th_sum,
4473 &th->th_sum, &pd->baddr,
4546 &th->th_sum, &pd->baddr,
4880 pf_change_a(&th->th_seq, &th->th_sum,
5064 &th->th_sum,
[all...]
H A Dpacket_mangler.c1019 tcp->th_sum = 0;
1022 tcp->th_sum = tsum;
/macosx-10.10.1/network_cmds-457/traceroute.tproj/
H A Dtraceroute.c1445 tcp->th_sum = 0;
1449 tcp->th_sum = (sum) ? sum : 0xffff;
/macosx-10.10.1/mDNSResponder-561.1.1/mDNSMacOSX/
H A Dhelper.c2414 t->th_sum = ~sum;
2491 t->th_sum = 0; /* 16-bit checksum (below) */

Completed in 403 milliseconds