| /f-stack/freebsd/netinet/libalias/ |
| H A D | alias_skinny.c | 219 tc->th_sum = 0; in alias_skinny_reg_msg() 223 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg() 262 tc->th_sum = 0; in alias_skinny_port_msg() 266 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg() 294 tc->th_sum = 0; in alias_skinny_opnrcvch_ack() 298 tc->th_sum = TcpChecksum(pip); in alias_skinny_opnrcvch_ack()
|
| H A D | alias_smedia.c | 418 tc->th_sum = 0; in alias_rtsp_out() 422 tc->th_sum = TcpChecksum(pip); in alias_rtsp_out() 466 tc->th_sum = 0; in alias_pna_out() 470 tc->th_sum = TcpChecksum(pip); in alias_pna_out()
|
| H A D | alias_irc.c | 461 tc->th_sum = 0; in AliasHandleIrcOut() 465 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
|
| H A D | alias_pptp.c | 349 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut() 421 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
|
| H A D | alias_ftp.c | 765 tc->th_sum = 0; in NewFtpMessage() 769 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
|
| H A D | alias_proxy.c | 370 tc->th_sum = 0; in ProxyEncodeTcpStream() 374 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
|
| H A D | alias.c | 1032 ADJUST_CHECKSUM(accumulate, tc->th_sum); in TcpAliasIn() 1098 ADJUST_CHECKSUM(accumulate, tc->th_sum); in TcpAliasOut() 1164 ADJUST_CHECKSUM(accumulate, tc->th_sum); in TcpAliasOut() 1611 ADJUST_CHECKSUM(accumulate, tc->th_sum); in LibAliasUnaliasOut()
|
| /f-stack/freebsd/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 312 th->th_sum = m->m_pkthdr.csum_data; in ctf_process_inbound_raw() 314 th->th_sum = in6_cksum_pseudo(ip6, tlen, in ctf_process_inbound_raw() 316 th->th_sum ^= 0xffff; in ctf_process_inbound_raw() 318 th->th_sum = in6_cksum(m, IPPROTO_TCP, drop_hdrlen, tlen); in ctf_process_inbound_raw() 319 if (th->th_sum) { in ctf_process_inbound_raw() 359 th->th_sum = m->m_pkthdr.csum_data; in ctf_process_inbound_raw() 361 th->th_sum = in_pseudo(ip->ip_src.s_addr, in ctf_process_inbound_raw() 365 th->th_sum ^= 0xffff; in ctf_process_inbound_raw() 375 th->th_sum = in_cksum(m, len); in ctf_process_inbound_raw() 384 if (th->th_sum) { in ctf_process_inbound_raw()
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/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()
|
| /f-stack/tools/compat/include/netinet/ |
| H A D | tcpip.h | 58 #define ti_sum ti_t.th_sum
|
| H A D | tcp.h | 79 u_short th_sum; /* checksum */ member
|
| /f-stack/freebsd/netinet/ |
| H A D | tcpip.h | 58 #define ti_sum ti_t.th_sum
|
| H A D | tcp_lro.c | 272 ch = th->th_sum = 0x0000; in tcp_lro_csum_th() 553 th->th_sum = (le->ulp_csum & 0xffff); in tcp_flush_out_le() 554 th->th_sum = ~th->th_sum; in tcp_flush_out_le() 643 csum = th->th_sum; in tcp_set_le_to_m() 651 th->th_sum = csum; /* Restore checksum on first packet. */ in tcp_set_le_to_m() 1247 csum = th->th_sum; in tcp_lro_rx2() 1321 th->th_sum = csum; /* Restore checksum */ in tcp_lro_rx2() 1383 th->th_sum = csum; /* Restore checksum */ in tcp_lro_rx2()
|
| H A D | tcp_timewait.c | 621 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond() 625 th->th_sum = in6_cksum_pseudo(ip6, in tcp_twrespond() 639 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_twrespond()
|
| H A D | tcp.h | 79 u_short th_sum; /* checksum */ member
|
| H A D | tcp_input.c | 671 th->th_sum = m->m_pkthdr.csum_data; in tcp_input() 673 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input() 675 th->th_sum ^= 0xffff; in tcp_input() 677 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input() 678 if (th->th_sum) { in tcp_input() 725 th->th_sum = m->m_pkthdr.csum_data; in tcp_input() 727 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input() 731 th->th_sum ^= 0xffff; in tcp_input() 742 th->th_sum = in_cksum(m, len); in tcp_input() 753 if (th->th_sum) { in tcp_input()
|
| /f-stack/freebsd/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()
|
| H A D | ng_nat.c | 884 th->th_sum = in_pseudo(ip->ip_src.s_addr, in ng_nat_rcvdata() 890 th_sum); in ng_nat_rcvdata()
|
| /f-stack/freebsd/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 1125 if (len < offsetof(struct tcphdr, th_sum)) in nat64_icmp_translate() 1129 tcp->th_sum = cksum_adjust(tcp->th_sum, in nat64_icmp_translate() 1133 tcp->th_sum = cksum_add(tcp->th_sum, in nat64_icmp_translate() 1305 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip4() 1682 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip6()
|
| /f-stack/freebsd/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()
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf_norm.c | 1409 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp() 1415 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp() 1618 &th->th_sum, in pf_normalize_tcp_stateful() 1636 &th->th_sum, in pf_normalize_tcp_stateful() 1964 &th->th_sum, in pf_normalize_tcpopt()
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | ip_proxy.c | 1032 u_short sum = ntohs(tcp->th_sum); 1034 tcp->th_sum = htons(sum); 1036 tcp->th_sum = fr_cksum(fin, ip,
|