/freebsd-12-stable/sys/netinet/ |
H A D | tcpip.h | 58 #define ti_sum ti_t.th_sum
|
H A D | tcp_lro.c | 202 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 D | tcp.h | 79 u_short th_sum; /* checksum */ member in struct:tcphdr
|
H A D | tcp_timewait.c | 620 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 D | alias_skinny.c | 217 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 D | alias_smedia.c | 405 tc->th_sum = 0; 409 tc->th_sum = TcpChecksum(pip); 452 tc->th_sum = 0; 456 tc->th_sum = TcpChecksum(pip);
|
H A D | alias_irc.c | 459 tc->th_sum = 0; 463 tc->th_sum = TcpChecksum(pip);
|
H A D | alias_pptp.c | 341 ADJUST_CHECKSUM(accumulate, tc->th_sum); 413 ADJUST_CHECKSUM(accumulate, tc->th_sum);
|
H A D | alias_ftp.c | 755 tc->th_sum = 0; 759 tc->th_sum = TcpChecksum(pip);
|
H A D | alias_proxy.c | 369 tc->th_sum = 0; 373 tc->th_sum = TcpChecksum(pip);
|
/freebsd-12-stable/contrib/tcpdump/ |
H A D | tcp.h | 49 uint16_t th_sum; /* checksum */ member in struct:tcphdr
|
H A D | print-tcp.c | 375 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 D | rack_bbr_common.c | 259 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 D | xform_tcp.c | 200 csum = th->th_sum; 201 th->th_sum = 0; 203 th->th_sum = csum;
|
H A D | udpencap.c | 259 off = offsetof(struct tcphdr, th_sum);
|
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | tcpmss.c | 138 ADJUST_CHECKSUM(accumulate, tc->th_sum);
|
H A D | slcompress.c | 380 deltaA = ntohs(th->th_sum); 505 th->th_sum = htons((*cp << 8) | cp[1]);
|
/freebsd-12-stable/sys/netpfil/ipfw/pmod/ |
H A D | tcpmod.c | 107 bcopy(&tcp->th_sum, &csum, sizeof(csum)); 109 bcopy(&csum, &tcp->th_sum, sizeof(csum));
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_checksum.c | 361 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 D | ng_tcpmss.c | 437 sum = be16dec(&tc->th_sum); 439 be16enc(&tc->th_sum, sum);
|
/freebsd-12-stable/contrib/ipfilter/ipsend/ |
H A D | ip.c | 287 t2->th_sum = 0; 288 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
|
/freebsd-12-stable/sys/net/ |
H A D | slcompress.c | 365 deltaA = ntohs(th->th_sum); 523 th->th_sum = htons((*cp << 8) | cp[1]);
|
/freebsd-12-stable/cddl/lib/libdtrace/ |
H A D | tcp.d | 271 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 D | nat64_translate.c | 1119 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 D | pf_norm.c | 1433 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,
|