| /xnu-12377.81.4/bsd/net/ |
| H A D | nat464_utils.c | 328 } else if (ptr == PTR_IP6(ip6_plen) || in nat464_translate_icmp() 329 ptr == PTR_IP6(ip6_plen) + 1) { in nat464_translate_icmp() 442 ptr = PTR_IP6(ip6_plen); in nat464_translate_icmp() 552 ip6->ip6_plen = htons((uint16_t)(tot_len2 - olen)); in nat464_translate_icmp_ip() 570 __func__, ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_icmp_ip() 628 p_ip6h->ip6_plen = htons(ntohs(p_ip6h->ip6_plen) + in nat464_insert_frag46() 759 ip6->ip6_plen = htons(tot_len - off); in nat464_translate_46() 769 ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_46() 825 plen = ntohs(ip6h->ip6_plen); in nat464_translate_proto() 883 hlen, ntohs(ip6h->ip6_plen)); in nat464_translate_proto() [all …]
|
| H A D | pf_norm.c | 1117 #define FR_IP6_PLEN(fr) (ntohs((fr)->fr_ip6->ip6_plen)) 1158 uint32_t ip_len = (sizeof(*ip6) + ntohs(ip6->ip6_plen)); in pf_reassemble6() 1292 ip6->ip6_plen = htons(plen); in pf_reassemble6() 1301 frea->fr_ip6->ip6_plen = htons(FR_IP6_PLEN(frea) - in pf_reassemble6() 1397 ip6->ip6_plen = htons(off); in pf_reassemble6() 1448 (uint64_t)VM_KERNEL_ADDRHASH(m), ntohs(ip6->ip6_plen), in pf_reassemble6() 1494 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h); in pf_frag6cache() 1637 ntohs(h->ip6_plen) - precut); in pf_frag6cache() 1642 h->ip6_plen = htons(ntohs(h->ip6_plen) - in pf_frag6cache() 1700 ntohs(h->ip6_plen) - aftercut); in pf_frag6cache() [all …]
|
| H A D | dlil_subr.c | 866 if ((size_t)(*m)->m_pkthdr.len < ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr)) { in dlil_clat64() 929 tot_len = ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr); in dlil_clat64()
|
| H A D | pf_osfp.c | 148 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in pf_osfp_fingerprint_hdr()
|
| H A D | pf.c | 2767 h6->ip6_plen = htons(tlen); in pf_send_tcp() 4581 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af() 4668 } else if (ptr == PTR_IP6(ip6_plen) || in pf_translate_icmp_af() 4669 ptr == PTR_IP6(ip6_plen) + 1) { in pf_translate_icmp_af() 4775 ptr = PTR_IP6(ip6_plen); in pf_translate_icmp_af() 4881 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4() 4901 ntohs(ip6->ip6_plen)); in pf_nat64_ipv4() 4914 hlen, ntohs(ip6->ip6_plen)); in pf_nat64_ipv4() 5563 len = ntohs(h6->ip6_plen) - in pf_test_rule() 9127 (ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) < in pf_pull_hdr() [all …]
|
| H A D | packet_mangler.c | 848 ip_pld_len = ntohs(ip6.ip6_plen); in pktmnglr_ipfilter_input()
|
| /xnu-12377.81.4/tests/skywalk/ |
| H A D | skt_reass.c | 253 ip6->ip6_plen = htons(sizeof(struct ip6_frag) + plen); in bad_fraglen_build() 307 ip6_plen))); in bad_fraglen_match() 327 ip6->ip6_plen = htons(sizeof(struct ip6_frag) + plen); in timeout_build() 409 ip6->ip6_plen = htons(plen); in atomic_build() 502 ip6->ip6_plen = htons(sizeof(struct ip6_frag)); in queue_limit_build()
|
| H A D | skt_netifdirect.c | 227 ip6_hdr.ip6_plen = htons(data_len + sizeof(udp_hdr)); in skt_netif_ipv6_udp_frame_populate() 276 ip_plen = ntohs(ip6_hdr->ip6_plen); in skt_netif_ipv6_udp_frame_process()
|
| /xnu-12377.81.4/bsd/netinet6/ |
| H A D | frag6.c | 332 if (ip6->ip6_plen == 0) { in frag6_input() 346 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { in frag6_input() 348 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input() 404 uint32_t ip_len = (sizeof(*ip6) + ntohs(ip6->ip6_plen)); in frag6_input() 545 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset; in frag6_input() 851 ip6->ip6_plen = htons((uint16_t)(next + offset - sizeof(struct ip6_hdr))); in frag6_input()
|
| H A D | esp_input.c | 169 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_strip_udp_encap() 968 if (__improbable(ntohs(ip6->ip6_plen) == 0)) { in esp6_input_extended() 1135 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - (u_int16_t)siz); in esp6_input_extended() 1243 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen); in esp6_input_extended() 1526 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_extended() 1790 if (__improbable(ip6->ip6_plen == 0)) { in esp_kpipe_input() 2058 ip6->ip6_plen = htons((uint16_t)decrypted_payload_len); in esp_kpipe_input()
|
| H A D | esp_output.c | 1168 if (__probable(ntohs(ip6->ip6_plen) + add_ip_len <= IP_MAXPACKET)) { in esp_kpipe_output() 1169 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) + (u_short)add_ip_len); in esp_kpipe_output() 1174 ntohs(ip6->ip6_plen), ntohl(sav->spi)); in esp_kpipe_output()
|
| H A D | ah_input.c | 618 if (ntohs(ip6->ip6_plen) == 0) { in ah6_input() 908 ip6->ip6_plen = htons((u_int16_t)(ntohs(ip6->ip6_plen) - stripsiz)); in ah6_input()
|
| H A D | in6_gif.c | 174 ip6->ip6_plen = htons((u_short)m->m_pkthdr.len); in in6_gif_output()
|
| H A D | ip6_output.c | 808 ip6->ip6_plen = 0; in ip6_output_list() 810 ip6->ip6_plen = htons((uint16_t)plen); in ip6_output_list() 1864 } else if (ip6->ip6_plen == 0) { in ip6_do_fragmentation() 1955 new_mhip6->ip6_plen = htons((u_short)(len + hlen + in ip6_do_fragmentation() 2096 plen = ntohs(ip6->ip6_plen); in in6_finalize_cksum() 2107 ip6->ip6_plen, ip6->ip6_plen, plen, plen, in in6_finalize_cksum()
|
| H A D | ip6_input.c | 1207 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input() 1232 if (ip6->ip6_plen == 0 && plen == 0) { in ip6_input() 1242 (int)((caddr_t)&ip6->ip6_plen - (caddr_t)ip6)); in ip6_input() 1706 if (ip6->ip6_plen) { in ip6_process_hopopts()
|
| H A D | ah_output.c | 463 ip6->ip6_plen = htons((u_int16_t)(m->m_pkthdr.len - sizeof(struct ip6_hdr))); in ah6_output()
|
| H A D | ipsec.c | 2431 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_encapsulate() 2648 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_update_routecache_and_output() 2792 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec46_encapsulate() 3861 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_trans_internal() 4285 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_tunnel_internal() 5273 ip6->ip6_plen = htons(sizeof(struct udphdr) + 1); in ipsec_send_natt_keepalive() 5390 ip6->ip6_plen = htons(sizeof(struct udphdr) + 1); in ipsec_fill_offload_frame() 5449 sizeof(*ip6), ntohs(ip6->ip6_plen), frame_data_len); in ipsec_fill_offload_frame()
|
| H A D | udp6_output.c | 469 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
|
| /xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip_frag.c | 354 if (ip6->ip6_plen == 0) { in fsw_ip_frag_reass_v6() 362 fragpartlen = ntohs(ip6->ip6_plen) - in fsw_ip_frag_reass_v6() 414 p->pkt_flow_ulen = ntohs(ip6h->ip6_plen) - in fsw_ip_frag_reass_v6() 567 offsetof(struct ip6_hdr, ip6_plen)); in ipf_process()
|
| /xnu-12377.81.4/bsd/netinet/ |
| H A D | ip6.h | 126 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
|
| /xnu-12377.81.4/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 517 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal_nosum() 538 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal()
|
| /xnu-12377.81.4/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_agg.c | 1139 sl3tlen = (sizeof(struct ip6_hdr) + ntohs(sip6->ip6_plen)); in can_agg_slowpath() 1378 old_l3len = ntohs(sip6->ip6_plen) + sizeof(struct ip6_hdr); in flow_agg_merge_hdr() 1379 uint16_t l3plen = ntohs(sip6->ip6_plen) + pkt->pkt_flow_ulen; in flow_agg_merge_hdr() 1380 sip6->ip6_plen = htons(l3plen); in flow_agg_merge_hdr() 1382 SK_DF(logflags, "Agg IP6 len %u", ntohs(sip6->ip6_plen)); in flow_agg_merge_hdr()
|
| H A D | flow_classifier.c | 262 l3tlen = l3hlen + ntohs(ip6->ip6_plen); in flow_pkt_classify()
|
| H A D | flow_track.c | 814 ip6->ip6_plen = htons(tlen); in flow_track_abort_tcp() 981 ip6->ip6_plen = htons(ulen); in flow_track_abort_quic()
|
| /xnu-12377.81.4/tests/ |
| H A D | net_bridge.c | 446 ip6_len = ntohs(ip6->ip6_plen); in ip6_frame_validate() 729 ip6_len = ntohs(ip6_udp->ip6.ip6_plen); in ethernet_frame_get_udp6_payload() 911 ip6->ip6_plen = htons(data_len); in ethernet_nd6_frame_populate() 2251 payload_length = ntohs(ip6->ip6_plen); in validate_mac_nat_nd6_out()
|