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

123

/freebsd-9.3-release/sys/netinet/
H A Dtcpip.h56 #define ti_sum ti_t.th_sum
H A Dtcp_lro.c118 ch = th->th_sum = 0x0000;
275 th->th_sum = (le->ulp_csum & 0xffff);
276 th->th_sum = ~th->th_sum;
278 th->th_sum = TCP_LRO_INVALID_CSUM;
454 csum = th->th_sum;
606 th->th_sum = csum; /* Restore checksum on first packet. */
H A Dtcp.h76 u_short th_sum; /* checksum */ member in struct:tcphdr
H A Dtcp_timewait.c578 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
582 th->th_sum = in6_cksum_pseudo(ip6,
595 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
H A Dtcp_subr.c447 th->th_sum = 0; /* in_pseudo() is called later for ipv4 */
624 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
628 nth->th_sum = in6_cksum_pseudo(ip6,
640 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
1863 * When called from tcp_input(), we can be sure that th_sum has been
2011 savecsum = th->th_sum;
2012 th->th_sum = 0;
2014 th->th_sum = savecsum;
H A Dtcp_input.c622 th->th_sum = m->m_pkthdr.csum_data;
624 th->th_sum = in6_cksum_pseudo(ip6, tlen,
626 th->th_sum ^= 0xffff;
628 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen);
629 if (th->th_sum) {
675 th->th_sum = m->m_pkthdr.csum_data;
677 th->th_sum = in_pseudo(ip->ip_src.s_addr,
682 th->th_sum ^= 0xffff;
695 th->th_sum = in_cksum(m, len);
697 if (th->th_sum) {
[all...]
/freebsd-9.3-release/sys/netinet/libalias/
H A Dalias_skinny.c218 tc->th_sum = 0;
222 tc->th_sum = TcpChecksum(pip);
261 tc->th_sum = 0;
265 tc->th_sum = TcpChecksum(pip);
293 tc->th_sum = 0;
297 tc->th_sum = TcpChecksum(pip);
H A Dalias_smedia.c419 tc->th_sum = 0;
423 tc->th_sum = TcpChecksum(pip);
467 tc->th_sum = 0;
471 tc->th_sum = TcpChecksum(pip);
H A Dalias_irc.c461 tc->th_sum = 0;
465 tc->th_sum = TcpChecksum(pip);
H A Dalias_pptp.c350 ADJUST_CHECKSUM(accumulate, tc->th_sum);
422 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dalias_ftp.c764 tc->th_sum = 0;
768 tc->th_sum = TcpChecksum(pip);
H A Dalias_proxy.c372 tc->th_sum = 0;
376 tc->th_sum = TcpChecksum(pip);
/freebsd-9.3-release/contrib/ipfilter/ipsend/
H A Dtcpip.h83 #define ti_sum ti_t.th_sum
H A Dip.c294 t2->th_sum = 0;
295 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
/freebsd-9.3-release/contrib/tcpdump/
H A Dtcp.h50 u_int16_t th_sum; /* checksum */ member in struct:tcphdr
H A Dprint-tcp.c400 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
414 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
798 savecsum = tp1.th_sum;
799 tp1.th_sum = 0;
801 tp1.th_sum = savecsum;
/freebsd-9.3-release/usr.sbin/ppp/
H A Dtcpmss.c136 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dslcompress.c378 deltaA = ntohs(th->th_sum);
503 th->th_sum = htons((*cp << 8) | cp[1]);
/freebsd-9.3-release/contrib/ipfilter/ipsd/Celler/
H A Dip_compat.h148 __u16 th_sum; member in struct:__anon1598
/freebsd-9.3-release/contrib/ipfilter/ipsend/.OLD/
H A Dip_compat.h150 __u16 th_sum; member in struct:__anon1605
/freebsd-9.3-release/sys/netgraph/
H A Dng_tcpmss.c435 sum = be16dec(&tc->th_sum);
437 be16enc(&tc->th_sum, sum);
H A Dng_nat.c806 th->th_sum = in_pseudo(ip->ip_src.s_addr,
812 th_sum);
/freebsd-9.3-release/sys/net/
H A Dslcompress.c368 deltaA = ntohs(th->th_sum);
535 th->th_sum = htons((*cp << 8) | cp[1]);
/freebsd-9.3-release/sys/netpfil/ipfw/
H A Dip_fw_nat.c360 th->th_sum = cksum;
362 offsetof(struct tcphdr, th_sum);
/freebsd-9.3-release/sys/contrib/pf/net/
H A Dpf_norm.c1660 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0);
1666 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp,
1894 &th->th_sum,
1910 &th->th_sum, htonl(tsecr),
2290 th->th_sum = pf_proto_cksum_fixup(m,
2291 th->th_sum, *mss, htons(r->max_mss), 0);

Completed in 249 milliseconds

123