Home
last modified time | relevance | path

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

/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/flow/ !
H A Dflow_agg.c140 .th_sum = 0,
191 .th_sum = 0,
337 uint16_t th_sum = tcp->th_sum; in mbuf_csum() local
338 tcp->th_sum = 0; in mbuf_csum()
352 tcp->th_sum = th_sum; in mbuf_csum()
353 th_sum = __packet_fix_sum(th_sum, csum, 0); in mbuf_csum()
354 *data_csum = ~th_sum & 0xffff; in mbuf_csum()
1376 flow_agg_pkt_fix_hdr_sum(fa, sopt + 4, &stcp->th_sum, ntsval); in flow_agg_merge_hdr()
1377 flow_agg_pkt_fix_hdr_sum(fa, sopt + 8, &stcp->th_sum, ntsecr); in flow_agg_merge_hdr()
1391 stcp->th_sum = fa->fa_fix_pkt_sum(stcp->th_sum, old, new); in flow_agg_merge_hdr()
[all …]
H A Dflow_track.c868 th->th_sum = in_cksum(m, len); in flow_track_abort_tcp()
896 th->th_sum = in6_cksum(m, IPPROTO_TCP, in flow_track_abort_tcp()
/xnu-10063.141.1/tests/ !
H A Dicmp_fragmented_payload.c162 (uint16_t)(pcb->inner_tcp_hdr == NULL ? -1 : pcb->inner_tcp_hdr->th_sum)); in icmp4_pcb_print()
245 pcb->inner_tcp_hdr->th_sum = 0; in icmp4_pcb_set_payload()
246 …pcb->inner_tcp_hdr->th_sum = checksum_buffer((uint16_t*)pcb->inner_tcp_hdr, pcb->inner_tcp_hdr_l… in icmp4_pcb_set_payload()
/xnu-10063.141.1/bsd/netinet/ !
H A Dtcpip.h99 #define ti_sum ti_t.th_sum
H A Dtcp.h122 unsigned short th_sum; /* checksum */ member
H A Dtcp_subr.c671 tcp_hdr->th_sum = in6_pseudo(&inp->in6p_laddr, &inp->in6p_faddr, in tcp_fillheaders()
686 tcp_hdr->th_sum = in tcp_fillheaders()
878 nth->th_sum = 0; in tcp_respond()
879 nth->th_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in tcp_respond()
882 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_respond()
886 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_respond()
889 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_respond()
3986 th->th_sum = 0; in tcp_make_keepalive_frame()
3988 th->th_sum = inet_cksum(m, IPPROTO_TCP, in tcp_make_keepalive_frame()
3991 th->th_sum = inet6_cksum(m, IPPROTO_TCP, in tcp_make_keepalive_frame()
H A Dtcp_output.c2709 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output()
2711 th->th_sum = in_addword(th->th_sum, in tcp_output()
2716 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output()
2718 th->th_sum = in_addword(th->th_sum, in tcp_output()
H A Dtcp_input.c7252 th->th_sum = m->m_pkthdr.csum_rx_val; in tcp_input_checksum()
7310 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input_checksum()
7314 th->th_sum ^= 0xffff; in tcp_input_checksum()
7328 th->th_sum = in_cksum(m, len); in tcp_input_checksum()
7343 th->th_sum = m->m_pkthdr.csum_rx_val; in tcp_input_checksum()
7395 th->th_sum = in6_pseudo( in tcp_input_checksum()
7399 th->th_sum ^= 0xffff; in tcp_input_checksum()
7402 th->th_sum = in6_cksum(m, IPPROTO_TCP, off, tlen); in tcp_input_checksum()
7411 if (th->th_sum != 0) { in tcp_input_checksum()
H A Dip_compat.h549 __u16 th_sum;
/xnu-10063.141.1/bsd/skywalk/nexus/netif/ !
H A Dnx_netif_gso.c449 state->tcp->th_sum = 0; in netif_gso_ipv4_tcp_internal()
454 state->tcp->th_sum = ~(uint16_t)partial; in netif_gso_ipv4_tcp_internal()
530 state->tcp->th_sum = 0; in netif_gso_ipv6_tcp_internal()
535 state->tcp->th_sum = ~(uint16_t)partial; in netif_gso_ipv6_tcp_internal()
/xnu-10063.141.1/bsd/dev/dtrace/scripts/ !
H A Dtcp.d138 tcp_checksum = ntohs(T->th_sum);
/xnu-10063.141.1/bsd/net/ !
H A Dpf_norm.c2705 th->th_sum = pf_cksum_fixup(th->th_sum, ov, nv, 0); in pf_normalize_tcp()
2711 th->th_sum = pf_cksum_fixup(th->th_sum, th->th_urp, 0, 0); in pf_normalize_tcp()
2933 &th->th_sum, in pf_normalize_tcp_stateful()
2949 &th->th_sum, htonl(tsecr), in pf_normalize_tcp_stateful()
3300 th->th_sum = pf_cksum_fixup(th->th_sum, in pf_normalize_tcpopt()
H A Dpacket_mangler.c1060 tcp->th_sum = 0; in chksm_update()
1064 tcp->th_sum = tsum; in chksm_update()
H A Dpf.c2641 pf_change_a(&sack.start, &th->th_sum, in pf_modulate_sack()
2644 pf_change_a(&sack.end, &th->th_sum, in pf_modulate_sack()
2817 th->th_sum = in_cksum(m, len); in pf_send_tcp()
2841 th->th_sum = in6_cksum(m, IPPROTO_TCP, in pf_send_tcp()
5075 &th->th_sport, pd->ip_sum, &th->th_sum, in pf_test_rule()
5092 &th->th_sum, &pd->ndaddr, in pf_test_rule()
5430 &th->th_sum, &pd->baddr, in pf_test_rule()
5497 &th->th_sum, &pd->bdaddr, in pf_test_rule()
5905 pf_change_a(&th->th_seq, &th->th_sum, in pf_test_rule()
6125 &th->th_sum, &pd->baddr, in pf_test_rule()
[all …]
H A Dnat464_utils.c889 psum = &th->th_sum; in nat464_translate_proto()
H A Dif_bridge.c4881 csum_p = &tcp->th_sum;
5120 (*mp)->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
9649 state->tcp->th_sum = 0;
9650 state->tcp->th_sum = in_pseudo(state->hdr.ip->ip_src.s_addr,
9696 state->tcp->th_sum = 0;
9697 state->tcp->th_sum = in6_pseudo(&state->hdr.ip6->ip6_src,
9926 (*mp)->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/ !
H A Dfsw_dp.c3653 tcp->th_sum = 0; in do_gso()
3658 tcp->th_sum = ~(uint16_t)partial; in do_gso()
3674 tcp->th_sum = 0; in do_gso()
3679 tcp->th_sum = ~(uint16_t)partial; in do_gso()