Home
last modified time | relevance | path

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

123

/freebsd-13.1/sys/netinet/libalias/
H A Dalias_skinny.c217 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 Dalias_smedia.c405 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 Dalias_irc.c459 tc->th_sum = 0; in AliasHandleIrcOut()
463 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
H A Dalias_pptp.c341 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut()
413 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
H A Dalias_ftp.c755 tc->th_sum = 0; in NewFtpMessage()
759 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
H A Dalias_proxy.c369 tc->th_sum = 0; in ProxyEncodeTcpStream()
373 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
/freebsd-13.1/sys/netinet/tcp_stacks/
H A Drack_bbr_common.c223 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 Dtcp_timewait.c690 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 Dtcpip.h58 #define ti_sum ti_t.th_sum
H A Dtcp_output.c1372 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 Dtcp.h79 u_short th_sum; /* checksum */ member
H A Dtcp_input.c699 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 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()
/freebsd-13.1/sys/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()
/freebsd-13.1/sys/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()
/freebsd-13.1/contrib/tcpdump/
H A Dprint-tcp.c375 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 Dtcp.h49 uint16_t th_sum; /* checksum */ member
/freebsd-13.1/sbin/ipf/ipsend/
H A Dip.c279 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 Dtcpmss.c138 ADJUST_CHECKSUM(accumulate, tc->th_sum); in MSSFixup()
H A Dslcompress.c380 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 Dnat64_translate.c1121 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 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()
/freebsd-13.1/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-13.1/sys/netpfil/pf/
H A Dpf_norm.c1414 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()

123