| /freebsd-12.1/sys/netinet/libalias/ |
| H A D | alias_skinny.c | 220 tc->th_sum = 0; in alias_skinny_reg_msg() 224 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg() 263 tc->th_sum = 0; in alias_skinny_port_msg() 267 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg() 295 tc->th_sum = 0; in alias_skinny_opnrcvch_ack() 299 tc->th_sum = TcpChecksum(pip); in alias_skinny_opnrcvch_ack()
|
| H A D | alias_smedia.c | 421 tc->th_sum = 0; in alias_rtsp_out() 425 tc->th_sum = TcpChecksum(pip); in alias_rtsp_out() 469 tc->th_sum = 0; in alias_pna_out() 473 tc->th_sum = TcpChecksum(pip); in alias_pna_out()
|
| H A D | alias_irc.c | 462 tc->th_sum = 0; in AliasHandleIrcOut() 466 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
|
| H A D | alias_pptp.c | 350 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut() 422 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
|
| H A D | alias_ftp.c | 767 tc->th_sum = 0; in NewFtpMessage() 771 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
|
| H A D | alias_proxy.c | 376 tc->th_sum = 0; in ProxyEncodeTcpStream() 380 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
|
| /freebsd-12.1/sys/netinet/ |
| H A D | tcp_lro.c | 202 ch = th->th_sum = 0x0000; in tcp_lro_csum_th() 389 th->th_sum = (le->ulp_csum & 0xffff); in tcp_lro_flush() 390 th->th_sum = ~th->th_sum; in tcp_lro_flush() 392 th->th_sum = TCP_LRO_INVALID_CSUM; in tcp_lro_flush() 719 csum = th->th_sum; in tcp_lro_rx2() 939 th->th_sum = csum; /* Restore checksum on first packet. */ in tcp_lro_rx2()
|
| H A D | tcpip.h | 58 #define ti_sum ti_t.th_sum
|
| H A D | tcp_timewait.c | 606 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond() 610 th->th_sum = in6_cksum_pseudo(ip6, in tcp_twrespond() 624 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_twrespond()
|
| H A D | tcp.h | 78 u_short th_sum; /* checksum */ member
|
| H A D | tcp_input.c | 634 th->th_sum = m->m_pkthdr.csum_data; in tcp_input() 636 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input() 638 th->th_sum ^= 0xffff; in tcp_input() 640 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input() 641 if (th->th_sum) { in tcp_input() 688 th->th_sum = m->m_pkthdr.csum_data; in tcp_input() 690 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input() 694 th->th_sum ^= 0xffff; in tcp_input() 705 th->th_sum = in_cksum(m, len); in tcp_input() 716 if (th->th_sum) { in tcp_input()
|
| /freebsd-12.1/sys/netipsec/ |
| H A D | xform_tcp.c | 200 csum = th->th_sum; in tcp_signature_compute() 201 th->th_sum = 0; in tcp_signature_compute() 203 th->th_sum = csum; in tcp_signature_compute()
|
| H A D | udpencap.c | 259 off = offsetof(struct tcphdr, th_sum); in udp_ipsec_adjust_cksum()
|
| /freebsd-12.1/sys/netpfil/ipfw/pmod/ |
| H A D | tcpmod.c | 107 bcopy(&tcp->th_sum, &csum, sizeof(csum)); in tcpmod_setmss() 109 bcopy(&csum, &tcp->th_sum, sizeof(csum)); in tcpmod_setmss()
|
| /freebsd-12.1/sys/netgraph/ |
| H A D | ng_checksum.c | 361 th->th_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4() 365 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv4() 487 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6() 490 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv6()
|
| H A D | ng_tcpmss.c | 437 sum = be16dec(&tc->th_sum); in correct_mss() 439 be16enc(&tc->th_sum, sum); in correct_mss()
|
| /freebsd-12.1/contrib/tcpdump/ |
| H A D | print-tcp.c | 375 tcp_sum = EXTRACT_16BITS(&tp->th_sum); in tcp_print() 387 tcp_sum = EXTRACT_16BITS(&tp->th_sum); in tcp_print() 892 savecsum = tp1.th_sum; in tcp_verify_signature() 893 tp1.th_sum = 0; in tcp_verify_signature() 895 tp1.th_sum = savecsum; in tcp_verify_signature()
|
| H A D | tcp.h | 49 uint16_t th_sum; /* checksum */ member
|
| /freebsd-12.1/sys/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 1066 if (len < offsetof(struct tcphdr, th_sum)) in nat64_icmp_translate() 1070 tcp->th_sum = cksum_adjust(tcp->th_sum, in nat64_icmp_translate() 1074 tcp->th_sum = cksum_add(tcp->th_sum, in nat64_icmp_translate() 1240 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip4() 1610 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip6()
|
| /freebsd-12.1/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.1/sys/netpfil/pf/ |
| H A D | pf_norm.c | 1238 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp() 1244 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp() 1447 &th->th_sum, in pf_normalize_tcp_stateful() 1463 &th->th_sum, htonl(tsecr), in pf_normalize_tcp_stateful() 1789 th->th_sum = pf_proto_cksum_fixup(m, in pf_normalize_tcpopt() 1790 th->th_sum, *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt()
|
| /freebsd-12.1/usr.sbin/ppp/ |
| H A D | tcpmss.c | 138 ADJUST_CHECKSUM(accumulate, tc->th_sum); in MSSFixup()
|
| H A D | slcompress.c | 380 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 505 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp()
|
| /freebsd-12.1/sys/net/ |
| H A D | slcompress.c | 365 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 523 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp_core()
|
| /freebsd-12.1/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);
|