Home
last modified time | relevance | path

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

123

/freebsd/sys/netinet/libalias/
H A Dalias_skinny.c215 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 Dalias_smedia.c403 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 Dalias_irc.c457 tc->th_sum = 0; in AliasHandleIrcOut()
461 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
H A Dalias_pptp.c339 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut()
411 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
H A Dalias_ftp.c753 tc->th_sum = 0; in NewFtpMessage()
757 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
H A Dalias_proxy.c367 tc->th_sum = 0; in ProxyEncodeTcpStream()
371 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
/freebsd/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c184 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/contrib/tcpdump/
H A Dprint-tcp.c394 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 Dtcp.h48 nd_uint16_t th_sum; /* checksum */ member
/freebsd/sys/netipsec/
H A Dxform_tcp.c210 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()
/freebsd/sys/netpfil/ipfw/pmod/
H A Dtcpmod.c104 bcopy(&tcp->th_sum, &csum, sizeof(csum)); in tcpmod_setmss()
106 bcopy(&csum, &tcp->th_sum, sizeof(csum)); in tcpmod_setmss()
/freebsd/sys/netgraph/
H A Dng_checksum.c358 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 Dng_tcpmss.c440 sum = be16dec(&tc->th_sum); in correct_mss()
442 be16enc(&tc->th_sum, sum); in correct_mss()
/freebsd/sys/netinet/
H A Dtcpip.h55 #define ti_sum ti_t.th_sum
H A Dtcp_output.c1363 th->th_sum = htons(0); in tcp_default_output()
1367 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_default_output()
1368 th->th_sum = in6_cksum_pseudo(ip6, in tcp_default_output()
1384 th->th_sum = htons(0); in tcp_default_output()
1388 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_default_output()
1389 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_default_output()
H A Dtcp_input.c665 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port()
667 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input_with_port()
669 th->th_sum ^= 0xffff; in tcp_input_with_port()
671 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input_with_port()
672 if (th->th_sum) { in tcp_input_with_port()
723 th->th_sum = m->m_pkthdr.csum_data; in tcp_input_with_port()
725 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input_with_port()
729 th->th_sum ^= 0xffff; in tcp_input_with_port()
740 th->th_sum = in_cksum(m, len); in tcp_input_with_port()
751 if (th->th_sum && (port == 0)) { in tcp_input_with_port()
H A Dtcp_syncache.c1990 th->th_sum = htons(0); in syncache_respond()
1993 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in syncache_respond()
1994 th->th_sum = in6_cksum_pseudo(ip6, tlen + optlen - hlen, in syncache_respond()
2021 th->th_sum = htons(0); in syncache_respond()
2024 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in syncache_respond()
2025 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in syncache_respond()
/freebsd/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c241 th->th_sum = 0; in mlx5e_lro_update_hdr()
243 th->th_sum = ~tcp_csum & 0xffff; in mlx5e_lro_update_hdr()
250 th->th_sum = 0; in mlx5e_lro_update_hdr()
256 th->th_sum = ~tcp_csum & 0xffff; in mlx5e_lro_update_hdr()
/freebsd/sbin/ipf/ipsend/
H A Dip.c274 t2->th_sum = 0; in send_tcp()
275 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t)); in send_tcp()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1120 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/usr.sbin/ppp/
H A Dtcpmss.c141 ADJUST_CHECKSUM(accumulate, tc->th_sum); in MSSFixup()
H A Dslcompress.c376 deltaA = ntohs(th->th_sum); in sl_compress_tcp()
501 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp()
/freebsd/sys/net/
H A Dslcompress.c360 deltaA = ntohs(th->th_sum); in sl_compress_tcp()
516 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp_core()
/freebsd/cddl/lib/libdtrace/
H A Dtcp.d271 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
290 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
/freebsd/sys/netpfil/pf/
H A Dpf_norm.c1405 th->th_sum = pf_proto_cksum_fixup(pd->m, th->th_sum, ov, nv, 0); in pf_normalize_tcp()
1411 th->th_sum = pf_proto_cksum_fixup(pd->m, th->th_sum, th->th_urp, in pf_normalize_tcp()
1626 &th->th_sum, in pf_normalize_tcp_stateful()
1644 &th->th_sum, in pf_normalize_tcp_stateful()
1971 &th->th_sum, in pf_normalize_mss()

123