Home
last modified time | relevance | path

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

123

/freebsd-12.1/sys/netinet/libalias/
H A Dalias_skinny.c220 tc->th_sum = 0; in alias_skinny_reg_msg()
224 tc->th_sum = TcpChecksum(pip); in alias_skinny_reg_msg()
263 tc->th_sum = 0; in alias_skinny_port_msg()
267 tc->th_sum = TcpChecksum(pip); in alias_skinny_port_msg()
295 tc->th_sum = 0; in alias_skinny_opnrcvch_ack()
299 tc->th_sum = TcpChecksum(pip); in alias_skinny_opnrcvch_ack()
H A Dalias_smedia.c421 tc->th_sum = 0; in alias_rtsp_out()
425 tc->th_sum = TcpChecksum(pip); in alias_rtsp_out()
469 tc->th_sum = 0; in alias_pna_out()
473 tc->th_sum = TcpChecksum(pip); in alias_pna_out()
H A Dalias_irc.c462 tc->th_sum = 0; in AliasHandleIrcOut()
466 tc->th_sum = TcpChecksum(pip); in AliasHandleIrcOut()
H A Dalias_pptp.c350 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpOut()
422 ADJUST_CHECKSUM(accumulate, tc->th_sum); in AliasHandlePptpIn()
H A Dalias_ftp.c767 tc->th_sum = 0; in NewFtpMessage()
771 tc->th_sum = TcpChecksum(pip); in NewFtpMessage()
H A Dalias_proxy.c376 tc->th_sum = 0; in ProxyEncodeTcpStream()
380 tc->th_sum = TcpChecksum(pip); in ProxyEncodeTcpStream()
/freebsd-12.1/sys/netinet/
H A Dtcp_lro.c202 ch = th->th_sum = 0x0000; in tcp_lro_csum_th()
389 th->th_sum = (le->ulp_csum & 0xffff); in tcp_lro_flush()
390 th->th_sum = ~th->th_sum; in tcp_lro_flush()
392 th->th_sum = TCP_LRO_INVALID_CSUM; in tcp_lro_flush()
719 csum = th->th_sum; in tcp_lro_rx2()
939 th->th_sum = csum; /* Restore checksum on first packet. */ in tcp_lro_rx2()
H A Dtcpip.h58 #define ti_sum ti_t.th_sum
H A Dtcp_timewait.c606 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_twrespond()
610 th->th_sum = in6_cksum_pseudo(ip6, in tcp_twrespond()
624 th->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_twrespond()
H A Dtcp.h78 u_short th_sum; /* checksum */ member
H A Dtcp_input.c634 th->th_sum = m->m_pkthdr.csum_data; in tcp_input()
636 th->th_sum = in6_cksum_pseudo(ip6, tlen, in tcp_input()
638 th->th_sum ^= 0xffff; in tcp_input()
640 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen); in tcp_input()
641 if (th->th_sum) { in tcp_input()
688 th->th_sum = m->m_pkthdr.csum_data; in tcp_input()
690 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input()
694 th->th_sum ^= 0xffff; in tcp_input()
705 th->th_sum = in_cksum(m, len); in tcp_input()
716 if (th->th_sum) { in tcp_input()
/freebsd-12.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()
H A Dudpencap.c259 off = offsetof(struct tcphdr, th_sum); in udp_ipsec_adjust_cksum()
/freebsd-12.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-12.1/sys/netgraph/
H A Dng_checksum.c361 th->th_sum = in_pseudo(ip4->ip_src.s_addr, in checksum_ipv4()
365 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv4()
487 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6()
490 th->th_sum = in_cksum_skip(m, l3_offset + plen, l3_offset + hlen); in checksum_ipv6()
H A Dng_tcpmss.c437 sum = be16dec(&tc->th_sum); in correct_mss()
439 be16enc(&tc->th_sum, sum); in correct_mss()
/freebsd-12.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()
892 savecsum = tp1.th_sum; in tcp_verify_signature()
893 tp1.th_sum = 0; in tcp_verify_signature()
895 tp1.th_sum = savecsum; in tcp_verify_signature()
H A Dtcp.h49 uint16_t th_sum; /* checksum */ member
/freebsd-12.1/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c1066 if (len < offsetof(struct tcphdr, th_sum)) in nat64_icmp_translate()
1070 tcp->th_sum = cksum_adjust(tcp->th_sum, in nat64_icmp_translate()
1074 tcp->th_sum = cksum_add(tcp->th_sum, in nat64_icmp_translate()
1240 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip4()
1610 csum = &TCP(mtodo(m, hlen))->th_sum; in nat64_do_handle_ip6()
/freebsd-12.1/contrib/ipfilter/ipsend/
H A Dip.c287 t2->th_sum = 0;
288 t2->th_sum = chksum((u_short *)ip2, thlen + sizeof(ip_t));
/freebsd-12.1/sys/netpfil/pf/
H A Dpf_norm.c1238 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp()
1244 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp()
1447 &th->th_sum, in pf_normalize_tcp_stateful()
1463 &th->th_sum, htonl(tsecr), in pf_normalize_tcp_stateful()
1789 th->th_sum = pf_proto_cksum_fixup(m, in pf_normalize_tcpopt()
1790 th->th_sum, *mss, htons(r->max_mss), 0); in pf_normalize_tcpopt()
/freebsd-12.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-12.1/sys/net/
H A Dslcompress.c365 deltaA = ntohs(th->th_sum); in sl_compress_tcp()
523 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp_core()
/freebsd-12.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);

123