| /xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_agg.c | 149 .th_sum = 0, 200 .th_sum = 0, 346 uint16_t th_sum = tcp->th_sum; in mbuf_csum() local 347 tcp->th_sum = 0; in mbuf_csum() 361 tcp->th_sum = th_sum; in mbuf_csum() 362 th_sum = __packet_fix_sum(th_sum, csum, 0); in mbuf_csum() 363 *data_csum = ~th_sum & 0xffff; in mbuf_csum() 1414 flow_agg_pkt_fix_hdr_sum(fa, sopt + 4, &stcp->th_sum, ntsval); in flow_agg_merge_hdr() 1415 flow_agg_pkt_fix_hdr_sum(fa, sopt + 8, &stcp->th_sum, ntsecr); in flow_agg_merge_hdr() 1439 stcp->th_sum = fa->fa_fix_pkt_sum(stcp->th_sum, old, new); in flow_agg_merge_hdr() [all …]
|
| H A D | flow_track.c | 874 th->th_sum = in_cksum(m, len); in flow_track_abort_tcp() 902 th->th_sum = in6_cksum(m, IPPROTO_TCP, in flow_track_abort_tcp()
|
| /xnu-12377.61.12/tests/ |
| H A D | icmp_fragmented_payload.c | 162 (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-12377.61.12/bsd/netinet/ |
| H A D | tcpip.h | 99 #define ti_sum ti_t.th_sum
|
| H A D | tcp.h | 122 unsigned short th_sum; /* checksum */ member
|
| H A D | tcp_subr.c | 816 tcp_hdr->th_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in tcp_fillheaders() 839 tcp_hdr->th_sum = in tcp_fillheaders() 1084 nth->th_sum = 0; in tcp_respond() 1085 nth->th_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, in tcp_respond() 1088 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_respond() 1092 nth->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, in tcp_respond() 1095 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_respond() 4960 th->th_sum = 0; in tcp_make_keepalive_frame() 4962 th->th_sum = inet_cksum(m, IPPROTO_TCP, in tcp_make_keepalive_frame() 4965 th->th_sum = inet6_cksum(m, IPPROTO_TCP, in tcp_make_keepalive_frame()
|
| H A D | tcp_output.c | 3042 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output() 3044 th->th_sum = in_addword(th->th_sum, in tcp_output() 3049 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); in tcp_output() 3051 th->th_sum = in_addword(th->th_sum, in tcp_output()
|
| H A D | ip_compat.h | 549 __u16 th_sum;
|
| H A D | tcp_input.c | 7774 th->th_sum = m->m_pkthdr.csum_rx_val; in tcp_input_checksum() 7832 th->th_sum = in_pseudo(ip->ip_src.s_addr, in tcp_input_checksum() 7836 th->th_sum ^= 0xffff; in tcp_input_checksum() 7850 th->th_sum = in_cksum(m, len); in tcp_input_checksum() 7865 th->th_sum = m->m_pkthdr.csum_rx_val; in tcp_input_checksum() 7917 th->th_sum = in6_pseudo( in tcp_input_checksum() 7921 th->th_sum ^= 0xffff; in tcp_input_checksum() 7924 th->th_sum = in6_cksum(m, IPPROTO_TCP, off, tlen); in tcp_input_checksum() 7933 if (th->th_sum != 0) { in tcp_input_checksum()
|
| /xnu-12377.61.12/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 461 state->tcp->th_sum = 0; in netif_gso_ipv4_tcp_internal() 466 state->tcp->th_sum = ~(uint16_t)partial; in netif_gso_ipv4_tcp_internal() 542 state->tcp->th_sum = 0; in netif_gso_ipv6_tcp_internal() 547 state->tcp->th_sum = ~(uint16_t)partial; in netif_gso_ipv6_tcp_internal()
|
| /xnu-12377.61.12/bsd/dev/dtrace/scripts/ |
| H A D | tcp.d | 138 tcp_checksum = ntohs(T->th_sum);
|
| /xnu-12377.61.12/bsd/net/ |
| H A D | pf_norm.c | 2709 th->th_sum = pf_cksum_fixup(th->th_sum, ov, nv, 0); in pf_normalize_tcp() 2715 th->th_sum = pf_cksum_fixup(th->th_sum, th->th_urp, 0, 0); in pf_normalize_tcp() 2935 &th->th_sum, in pf_normalize_tcp_stateful() 2951 &th->th_sum, htonl(tsecr), in pf_normalize_tcp_stateful() 3302 th->th_sum = pf_cksum_fixup(th->th_sum, in pf_normalize_tcpopt()
|
| H A D | pf.c | 2625 pf_change_a(&sack.start, &th->th_sum, in pf_modulate_sack() 2628 pf_change_a(&sack.end, &th->th_sum, in pf_modulate_sack() 2801 th->th_sum = in_cksum(m, len); in pf_send_tcp() 2825 th->th_sum = in6_cksum(m, IPPROTO_TCP, in pf_send_tcp() 5059 &th->th_sport, pd->ip_sum, &th->th_sum, in pf_test_rule() 5076 &th->th_sum, &pd->ndaddr, in pf_test_rule() 5413 &th->th_sum, &pd->baddr, in pf_test_rule() 5480 &th->th_sum, &pd->bdaddr, in pf_test_rule() 5888 pf_change_a(&th->th_seq, &th->th_sum, in pf_test_rule() 6108 &th->th_sum, &pd->baddr, in pf_test_rule() [all …]
|
| H A D | packet_mangler.c | 1060 tcp->th_sum = 0; in chksm_update() 1064 tcp->th_sum = tsum; in chksm_update()
|
| H A D | nat464_utils.c | 901 psum = &th->th_sum; in nat464_translate_proto()
|
| H A D | if_bridge.c | 5146 csum_p = &tcp->th_sum; 5343 (*mp)->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum); 10340 state->tcp->th_sum = 0; 10341 state->tcp->th_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, 10390 state->tcp->th_sum = 0; 10391 state->tcp->th_sum = in6_pseudo(&ip6->ip6_src, &ip6->ip6_dst, 10575 m->m_pkthdr.csum_data = offsetof(struct tcphdr, th_sum);
|
| /xnu-12377.61.12/tests/skywalk/ |
| H A D | skywalk_test_utils.c | 2489 tcp->th_sum = sum; in sktu_create_tcp_frames() 2495 csum_stuff = offsetof(struct tcphdr, th_sum); in sktu_create_tcp_frames() 2498 tcp->th_sum = sktu_fold_sum_final(sum); in sktu_create_tcp_frames()
|
| H A D | skt_xfer.c | 498 ntohs(ip_tcp->tcp.th_sum)); in ip_frame_dump() 560 ip_tcp->tcp.th_sum = 0; in tcp_frame_populate() 562 ip_tcp->tcp.th_sum = in_pseudo(src_ip.s_addr, dst_ip.s_addr, in tcp_frame_populate() 566 sizeof(struct ip) + offsetof(struct tcphdr, th_sum)); in tcp_frame_populate() 579 ip_tcp->tcp.th_sum = skt_xfer_fold_sum_final(partial); in tcp_frame_populate()
|
| /xnu-12377.61.12/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_dp.c | 3900 tcp->th_sum = 0; in do_gso() 3906 tcp->th_sum = ~(uint16_t)partial; in do_gso() 3922 tcp->th_sum = 0; in do_gso() 3927 tcp->th_sum = ~(uint16_t)partial; in do_gso()
|