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

123

/freebsd-12-stable/sys/netinet/
H A Dtcpip.h58 #define ti_sum ti_t.th_sum
H A Dtcp_lro.c202 ch = th->th_sum = 0x0000;
389 th->th_sum = (le->ulp_csum & 0xffff);
390 th->th_sum = ~th->th_sum;
392 th->th_sum = TCP_LRO_INVALID_CSUM;
719 csum = th->th_sum;
939 th->th_sum = csum; /* Restore checksum on first packet. */
H A Dtcp.h79 u_short th_sum; /* checksum */ member in struct:tcphdr
H A Dtcp_timewait.c620 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
624 th->th_sum = in6_cksum_pseudo(ip6,
638 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
/freebsd-12-stable/sys/netinet/libalias/
H A Dalias_skinny.c217 tc->th_sum = 0;
221 tc->th_sum = TcpChecksum(pip);
260 tc->th_sum = 0;
264 tc->th_sum = TcpChecksum(pip);
292 tc->th_sum = 0;
296 tc->th_sum = TcpChecksum(pip);
H A Dalias_smedia.c405 tc->th_sum = 0;
409 tc->th_sum = TcpChecksum(pip);
452 tc->th_sum = 0;
456 tc->th_sum = TcpChecksum(pip);
H A Dalias_irc.c459 tc->th_sum = 0;
463 tc->th_sum = TcpChecksum(pip);
H A Dalias_pptp.c341 ADJUST_CHECKSUM(accumulate, tc->th_sum);
413 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dalias_ftp.c755 tc->th_sum = 0;
759 tc->th_sum = TcpChecksum(pip);
H A Dalias_proxy.c369 tc->th_sum = 0;
373 tc->th_sum = TcpChecksum(pip);
/freebsd-12-stable/contrib/tcpdump/
H A Dtcp.h49 uint16_t th_sum; /* checksum */ member in struct:tcphdr
H A Dprint-tcp.c375 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
387 tcp_sum = EXTRACT_16BITS(&tp->th_sum);
898 savecsum = tp1.th_sum;
899 tp1.th_sum = 0;
901 tp1.th_sum = savecsum;
/freebsd-12-stable/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c259 th->th_sum = m->m_pkthdr.csum_data;
261 th->th_sum = in6_cksum_pseudo(ip6, tlen,
263 th->th_sum ^= 0xffff;
265 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen);
266 if (th->th_sum) {
306 th->th_sum = m->m_pkthdr.csum_data;
308 th->th_sum = in_pseudo(ip->ip_src.s_addr,
312 th->th_sum ^= 0xffff;
322 th->th_sum = in_cksum(m, len);
331 if (th->th_sum) {
[all...]
/freebsd-12-stable/sys/netipsec/
H A Dxform_tcp.c200 csum = th->th_sum;
201 th->th_sum = 0;
203 th->th_sum = csum;
H A Dudpencap.c259 off = offsetof(struct tcphdr, th_sum);
/freebsd-12-stable/usr.sbin/ppp/
H A Dtcpmss.c138 ADJUST_CHECKSUM(accumulate, tc->th_sum);
H A Dslcompress.c380 deltaA = ntohs(th->th_sum);
505 th->th_sum = htons((*cp << 8) | cp[1]);
/freebsd-12-stable/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c107 bcopy(&tcp->th_sum, &csum, sizeof(csum));
109 bcopy(&csum, &tcp->th_sum, sizeof(csum));
/freebsd-12-stable/sys/netgraph/
H A Dng_checksum.c361 th->th_sum = in_pseudo(ip4->ip_src.s_addr,
365 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen);
487 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0);
490 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen);
H A Dng_tcpmss.c437 sum = be16dec(&tc->th_sum);
439 be16enc(&tc->th_sum, sum);
/freebsd-12-stable/contrib/ipfilter/ipsend/
H A Dip.c287 t2->th_sum = 0;
288 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
/freebsd-12-stable/sys/net/
H A Dslcompress.c365 deltaA = ntohs(th->th_sum);
523 th->th_sum = htons((*cp << 8) | cp[1]);
/freebsd-12-stable/cddl/lib/libdtrace/
H A Dtcp.d271 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
290 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
/freebsd-12-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1119 if (len < offsetof(struct tcphdr, th_sum))
1123 tcp->th_sum = cksum_adjust(tcp->th_sum,
1127 tcp->th_sum = cksum_add(tcp->th_sum,
1298 csum = &TCP(mtodo(m, hlen))->th_sum;
1674 csum = &TCP(mtodo(m, hlen))->th_sum;
/freebsd-12-stable/sys/netpfil/pf/
H A Dpf_norm.c1433 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0);
1439 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp,
1644 &th->th_sum,
1662 &th->th_sum,
1994 &th->th_sum,

Completed in 136 milliseconds

123