Home
last modified time | relevance | path

Searched refs:th_sum (Results 1 – 25 of 41) sorted by relevance

12

/f-stack/freebsd/netinet/libalias/
H A Dalias_skinny.c219 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 Dalias_smedia.c418 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 Dalias_irc.c461 tc->th_sum = 0; in AliasHandleIrcOut()
465 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
H A Dalias_pptp.c349 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut()
421 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
H A Dalias_ftp.c765 tc->th_sum = 0; in NewFtpMessage()
769 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
H A Dalias_proxy.c370 tc->th_sum = 0; in ProxyEncodeTcpStream()
374 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
H A Dalias.c1032 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 Drack_bbr_common.c312 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 Dxform_tcp.c200 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 Dudpencap.c259 off = offsetof(struct tcphdr, th_sum); in udp_ipsec_adjust_cksum()
/f-stack/freebsd/netpfil/ipfw/pmod/
H A Dtcpmod.c107 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 Dtcpip.h58 #define ti_sum ti_t.th_sum
H A Dtcp.h79 u_short th_sum; /* checksum */ member
/f-stack/freebsd/netinet/
H A Dtcpip.h58 #define ti_sum ti_t.th_sum
H A Dtcp_lro.c272 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 Dtcp_timewait.c621 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 Dtcp.h79 u_short th_sum; /* checksum */ member
H A Dtcp_input.c671 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 Dng_checksum.c360 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 Dng_tcpmss.c436 sum = be16dec(&tc->th_sum); in correct_mss()
438 be16enc(&tc->th_sum, sum); in correct_mss()
H A Dng_nat.c884 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 Dnat64_translate.c1125 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 Dslcompress.c363 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 Dpf_norm.c1409 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 Dip_proxy.c1032 u_short sum = ntohs(tcp->th_sum);
1034 tcp->th_sum = htons(sum);
1036 tcp->th_sum = fr_cksum(fin, ip,

12