| /xnu-11215.1.10/bsd/net/ |
| H A D | nat464_utils.c | 322 } else if (ptr == PTR_IP6(ip6_plen) || in nat464_translate_icmp() 323 ptr == PTR_IP6(ip6_plen) + 1) { in nat464_translate_icmp() 436 ptr = PTR_IP6(ip6_plen); in nat464_translate_icmp() 546 ip6->ip6_plen = htons((uint16_t)(tot_len2 - olen)); in nat464_translate_icmp_ip() 564 __func__, ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_icmp_ip() 622 p_ip6h->ip6_plen = htons(ntohs(p_ip6h->ip6_plen) + in nat464_insert_frag46() 753 ip6->ip6_plen = htons(tot_len - off); in nat464_translate_46() 763 ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_46() 819 plen = ntohs(ip6h->ip6_plen); in nat464_translate_proto() 877 hlen, ntohs(ip6h->ip6_plen)); in nat464_translate_proto() [all …]
|
| H A D | pf_norm.c | 1113 #define FR_IP6_PLEN(fr) (ntohs((fr)->fr_ip6->ip6_plen)) 1154 uint32_t ip_len = (sizeof(*ip6) + ntohs(ip6->ip6_plen)); in pf_reassemble6() 1288 ip6->ip6_plen = htons(plen); in pf_reassemble6() 1297 frea->fr_ip6->ip6_plen = htons(FR_IP6_PLEN(frea) - in pf_reassemble6() 1393 ip6->ip6_plen = htons(off); in pf_reassemble6() 1443 (uint64_t)VM_KERNEL_ADDRHASH(m), ntohs(ip6->ip6_plen), in pf_reassemble6() 1489 plen = ntohs(h->ip6_plen) - (hlen - sizeof *h); in pf_frag6cache() 1632 ntohs(h->ip6_plen) - precut); in pf_frag6cache() 1637 h->ip6_plen = htons(ntohs(h->ip6_plen) - in pf_frag6cache() 1695 ntohs(h->ip6_plen) - aftercut); in pf_frag6cache() [all …]
|
| 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 | 2764 h6->ip6_plen = htons(tlen); in pf_send_tcp() 4578 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af() 4665 } else if (ptr == PTR_IP6(ip6_plen) || in pf_translate_icmp_af() 4666 ptr == PTR_IP6(ip6_plen) + 1) { in pf_translate_icmp_af() 4772 ptr = PTR_IP6(ip6_plen); in pf_translate_icmp_af() 4878 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4() 4898 ntohs(ip6->ip6_plen)); in pf_nat64_ipv4() 4911 hlen, ntohs(ip6->ip6_plen)); in pf_nat64_ipv4() 5560 len = ntohs(h6->ip6_plen) - in pf_test_rule() 9124 (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-11215.1.10/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-11215.1.10/bsd/netinet6/ |
| H A D | frag6.c | 329 if (ip6->ip6_plen == 0) { in frag6_input() 343 (((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) { in frag6_input() 345 offsetof(struct ip6_hdr, ip6_plen)); in frag6_input() 400 uint32_t ip_len = (sizeof(*ip6) + ntohs(ip6->ip6_plen)); in frag6_input() 539 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset; in frag6_input() 841 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 | 790 ip6->ip6_plen = 0; in ip6_output_list() 792 ip6->ip6_plen = htons((uint16_t)plen); in ip6_output_list() 1832 } else if (ip6->ip6_plen == 0) { in ip6_do_fragmentation() 1921 new_mhip6->ip6_plen = htons((u_short)(len + hlen + in ip6_do_fragmentation() 2061 plen = ntohs(ip6->ip6_plen); in in6_finalize_cksum() 2072 ip6->ip6_plen, ip6->ip6_plen, plen, plen, in in6_finalize_cksum()
|
| H A D | ip6_input.c | 1184 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input() 1209 if (ip6->ip6_plen == 0 && plen == 0) { in ip6_input() 1219 (int)((caddr_t)&ip6->ip6_plen - (caddr_t)ip6)); in ip6_input() 1676 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 | 445 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
|
| /xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ip_frag.c | 351 if (ip6->ip6_plen == 0) { in fsw_ip_frag_reass_v6() 359 fragpartlen = ntohs(ip6->ip6_plen) - in fsw_ip_frag_reass_v6() 390 p->pkt_flow_ulen = ntohs(ip6h->ip6_plen) - in fsw_ip_frag_reass_v6() 543 offsetof(struct ip6_hdr, ip6_plen)); in ipf_process()
|
| /xnu-11215.1.10/bsd/netinet/ |
| H A D | ip6.h | 126 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
|
| /xnu-11215.1.10/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_gso.c | 510 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal_nosum() 531 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal()
|
| /xnu-11215.1.10/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() 1376 old_l3len = ntohs(sip6->ip6_plen) + sizeof(struct ip6_hdr); in flow_agg_merge_hdr() 1377 uint16_t l3plen = ntohs(sip6->ip6_plen) + pkt->pkt_flow_ulen; in flow_agg_merge_hdr() 1378 sip6->ip6_plen = htons(l3plen); in flow_agg_merge_hdr() 1380 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 | 809 ip6->ip6_plen = htons(tlen); in flow_track_abort_tcp() 976 ip6->ip6_plen = htons(ulen); in flow_track_abort_quic()
|
| /xnu-11215.1.10/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()
|
| H A D | net_test_lib.c | 333 ip6_udp->ip6.ip6_plen = htons(sizeof(struct udphdr) + data_len); in ethernet_udp6_frame_populate()
|