| /freebsd-14.2/sys/netinet/libalias/ |
| H A D | alias_skinny.c | 215 tc->th_sum = 0; in alias_skinny_reg_msg() 219 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg() 258 tc->th_sum = 0; in alias_skinny_port_msg() 262 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg() 288 tc->th_sum = 0; in alias_skinny_opnrcvch_ack() 292 tc->th_sum = TcpChecksum(pip); in alias_skinny_opnrcvch_ack()
|
| H A D | alias_smedia.c | 403 tc->th_sum = 0; in alias_rtsp_out() 407 tc->th_sum = TcpChecksum(pip); in alias_rtsp_out() 450 tc->th_sum = 0; in alias_pna_out() 454 tc->th_sum = TcpChecksum(pip); in alias_pna_out()
|
| H A D | alias_irc.c | 457 tc->th_sum = 0; in AliasHandleIrcOut() 461 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
|
| H A D | alias_pptp.c | 339 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut() 411 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
|
| H A D | alias_ftp.c | 753 tc->th_sum = 0; in NewFtpMessage() 757 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
|
| H A D | alias_proxy.c | 367 tc->th_sum = 0; in ProxyEncodeTcpStream() 371 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
|
| /freebsd-14.2/sys/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 184 th->th_sum = m->m_pkthdr.csum_data; in ctf_get_enet_type() 186 th->th_sum = in6_cksum_pseudo(ip6, tlen, in ctf_get_enet_type() 189 th->th_sum ^= 0xffff; in ctf_get_enet_type() 191 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen); in ctf_get_enet_type() 192 if (th->th_sum) { in ctf_get_enet_type() 217 th->th_sum = m->m_pkthdr.csum_data; in ctf_get_enet_type() 219 th->th_sum = in_pseudo(ip->ip_src.s_addr, in ctf_get_enet_type() 222 th->th_sum ^= 0xffff; in ctf_get_enet_type() 232 th->th_sum = in_cksum(m, len); in ctf_get_enet_type() 241 if (th->th_sum) { in ctf_get_enet_type()
|
| /freebsd-14.2/sys/netipsec/ |
| H A D | xform_tcp.c | 210 csum = th->th_sum; in tcp_signature_compute() 211 th->th_sum = 0; in tcp_signature_compute() 213 th->th_sum = csum; in tcp_signature_compute()
|
| H A D | udpencap.c | 257 off = offsetof(struct tcphdr, th_sum); in udp_ipsec_adjust_cksum()
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | print-tcp.c | 394 tcp_sum = GET_BE_U_2(tp->th_sum); in tcp_print() 406 tcp_sum = GET_BE_U_2(tp->th_sum); in tcp_print() 957 memcpy(&savecsum, tp1.th_sum, sizeof(savecsum)); in tcp_verify_signature() 958 memset(tp1.th_sum, 0, sizeof(tp1.th_sum)); in tcp_verify_signature() 960 memcpy(tp1.th_sum, &savecsum, sizeof(tp1.th_sum)); in tcp_verify_signature()
|
| H A D | tcp.h | 48 nd_uint16_t th_sum; /* checksum */ member
|
| /freebsd-14.2/sys/netpfil/ipfw/pmod/ |
| H A D | tcpmod.c | 105 bcopy(&tcp->th_sum, &csum, sizeof(csum)); in tcpmod_setmss() 107 bcopy(&csum, &tcp->th_sum, sizeof(csum)); in tcpmod_setmss()
|
| /freebsd-14.2/sys/netinet/ |
| H A D | tcpip.h | 57 #define ti_sum ti_t.th_sum
|
| H A D | tcp_output.c | 1359 th->th_sum = htons(0); in tcp_default_output() 1363 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_default_output() 1364 th->th_sum = in6_cksum_pseudo(ip6, in tcp_default_output() 1380 th->th_sum = htons(0); in tcp_default_output() 1384 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_default_output() 1385 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_default_output()
|
| H A D | tcp_input.c | 658 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port() 660 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input_with_port() 662 th->th_sum ^= 0xffff; in tcp_input_with_port() 664 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input_with_port() 665 if (th->th_sum) { in tcp_input_with_port() 716 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port() 718 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input_with_port() 722 th->th_sum ^= 0xffff; in tcp_input_with_port() 733 th->th_sum = in_cksum(m, len); in tcp_input_with_port() 744 if (th->th_sum && (port == 0)) { in tcp_input_with_port()
|
| H A D | tcp_syncache.c | 2000 th->th_sum = htons(0); in syncache_respond() 2003 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in syncache_respond() 2004 th->th_sum = in6_cksum_pseudo(ip6, tlen + optlen - hlen, in syncache_respond() 2031 th->th_sum = htons(0); in syncache_respond() 2034 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in syncache_respond() 2035 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in syncache_respond()
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_checksum.c | 358 th->th_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4() 362 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv4() 484 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6() 487 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv6()
|
| H A D | ng_tcpmss.c | 434 sum = be16dec(&tc->th_sum); in correct_mss() 436 be16enc(&tc->th_sum, sum); in correct_mss()
|
| /freebsd-14.2/sbin/ipf/ipsend/ |
| H A D | ip.c | 278 t2->th_sum = 0; in send_tcp() 279 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t)); in send_tcp()
|
| /freebsd-14.2/sys/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 1120 if (len < offsetof(struct tcphdr, th_sum)) in nat64_icmp_translate() 1124 tcp->th_sum = cksum_adjust(tcp->th_sum, in nat64_icmp_translate() 1128 tcp->th_sum = cksum_add(tcp->th_sum, in nat64_icmp_translate() 1300 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip4() 1677 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip6()
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | tcpmss.c | 141 ADJUST_CHECKSUM(accumulate, tc->th_sum); in MSSFixup()
|
| H A D | slcompress.c | 378 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 503 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp()
|
| /freebsd-14.2/sys/net/ |
| H A D | slcompress.c | 362 deltaA = ntohs(th->th_sum); in sl_compress_tcp() 518 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp_core()
|
| /freebsd-14.2/cddl/lib/libdtrace/ |
| H A D | tcp.d | 269 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum); 288 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
|
| /freebsd-14.2/sys/netpfil/pf/ |
| H A D | pf_norm.c | 1470 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp() 1476 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp() 1691 &th->th_sum, in pf_normalize_tcp_stateful() 1709 &th->th_sum, in pf_normalize_tcp_stateful() 2036 &th->th_sum, in pf_normalize_mss()
|