| /freebsd-13.1/sys/netinet/libalias/ |
| H A D | alias_skinny.c | 217 tc->th_sum = 0; in alias_skinny_reg_msg() 221 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg() 260 tc->th_sum = 0; in alias_skinny_port_msg() 264 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg() 292 tc->th_sum = 0; in alias_skinny_opnrcvch_ack() 296 tc->th_sum = TcpChecksum(pip); in alias_skinny_opnrcvch_ack()
|
| H A D | alias_smedia.c | 405 tc->th_sum = 0; in alias_rtsp_out() 409 tc->th_sum = TcpChecksum(pip); in alias_rtsp_out() 452 tc->th_sum = 0; in alias_pna_out() 456 tc->th_sum = TcpChecksum(pip); in alias_pna_out()
|
| H A D | alias_irc.c | 459 tc->th_sum = 0; in AliasHandleIrcOut() 463 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
|
| H A D | alias_pptp.c | 341 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut() 413 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
|
| H A D | alias_ftp.c | 755 tc->th_sum = 0; in NewFtpMessage() 759 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
|
| H A D | alias_proxy.c | 369 tc->th_sum = 0; in ProxyEncodeTcpStream() 373 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
|
| /freebsd-13.1/sys/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 223 th->th_sum = m->m_pkthdr.csum_data; in ctf_get_enet_type() 225 th->th_sum = in6_cksum_pseudo(ip6, tlen, in ctf_get_enet_type() 228 th->th_sum ^= 0xffff; in ctf_get_enet_type() 230 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen); in ctf_get_enet_type() 231 if (th->th_sum) { in ctf_get_enet_type() 257 th->th_sum = m->m_pkthdr.csum_data; in ctf_get_enet_type() 259 th->th_sum = in_pseudo(ip->ip_src.s_addr, in ctf_get_enet_type() 262 th->th_sum ^= 0xffff; in ctf_get_enet_type() 272 th->th_sum = in_cksum(m, len); in ctf_get_enet_type() 281 if (th->th_sum) { in ctf_get_enet_type()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | tcp_timewait.c | 690 th->th_sum = htons(0); in tcp_twrespond() 693 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond() 694 th->th_sum = in6_cksum_pseudo(ip6, in tcp_twrespond() 713 th->th_sum = htons(0); in tcp_twrespond() 716 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond() 717 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_twrespond()
|
| H A D | tcpip.h | 58 #define ti_sum ti_t.th_sum
|
| H A D | tcp_output.c | 1372 th->th_sum = htons(0); in tcp_output() 1376 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output() 1377 th->th_sum = in6_cksum_pseudo(ip6, in tcp_output() 1393 th->th_sum = htons(0); in tcp_output() 1397 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output() 1398 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_output()
|
| H A D | tcp.h | 79 u_short th_sum; /* checksum */ member
|
| H A D | tcp_input.c | 699 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port() 701 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input_with_port() 703 th->th_sum ^= 0xffff; in tcp_input_with_port() 705 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input_with_port() 706 if (th->th_sum) { in tcp_input_with_port() 755 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port() 757 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input_with_port() 761 th->th_sum ^= 0xffff; in tcp_input_with_port() 772 th->th_sum = in_cksum(m, len); in tcp_input_with_port() 783 if (th->th_sum && (port == 0)) { in tcp_input_with_port()
|
| /freebsd-13.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()
|
| /freebsd-13.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-13.1/sys/netgraph/ |
| H A D | ng_checksum.c | 360 th->th_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4() 364 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv4() 486 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6() 489 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv6()
|
| H A D | ng_tcpmss.c | 436 sum = be16dec(&tc->th_sum); in correct_mss() 438 be16enc(&tc->th_sum, sum); in correct_mss()
|
| /freebsd-13.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() 898 savecsum = tp1.th_sum; in tcp_verify_signature() 899 tp1.th_sum = 0; in tcp_verify_signature() 901 tp1.th_sum = savecsum; in tcp_verify_signature()
|
| H A D | tcp.h | 49 uint16_t th_sum; /* checksum */ member
|
| /freebsd-13.1/sbin/ipf/ipsend/ |
| H A D | ip.c | 279 t2->th_sum = 0; in send_tcp() 280 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t)); in send_tcp()
|
| /freebsd-13.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-13.1/sys/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 1121 if (len < offsetof(struct tcphdr, th_sum)) in nat64_icmp_translate() 1125 tcp->th_sum = cksum_adjust(tcp->th_sum, in nat64_icmp_translate() 1129 tcp->th_sum = cksum_add(tcp->th_sum, in nat64_icmp_translate() 1301 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip4() 1678 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip6()
|
| /freebsd-13.1/sys/net/ |
| H A D | slcompress.c | 363 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 519 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp_core()
|
| /freebsd-13.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);
|
| /freebsd-13.1/sys/netpfil/pf/ |
| H A D | pf_norm.c | 1414 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp() 1420 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp() 1623 &th->th_sum, in pf_normalize_tcp_stateful() 1641 &th->th_sum, in pf_normalize_tcp_stateful() 1969 &th->th_sum, in pf_normalize_tcpopt()
|