Home
last modified time | relevance | path

Searched refs:ip6_plen (Results 1 – 25 of 36) sorted by relevance

12

/xnu-10002.81.5/bsd/net/
H A Dnat464_utils.c316 } else if (ptr == PTR_IP6(ip6_plen) || in nat464_translate_icmp()
317 ptr == PTR_IP6(ip6_plen) + 1) { in nat464_translate_icmp()
430 ptr = PTR_IP6(ip6_plen); in nat464_translate_icmp()
540 ip6->ip6_plen = htons((uint16_t)(tot_len2 - olen)); in nat464_translate_icmp_ip()
558 __func__, ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_icmp_ip()
616 p_ip6h->ip6_plen = htons(ntohs(p_ip6h->ip6_plen) + in nat464_insert_frag46()
747 ip6->ip6_plen = htons(tot_len - off); in nat464_translate_46()
757 ntohs(ip6->ip6_plen), ip6->ip6_nxt, in nat464_translate_46()
813 plen = ntohs(ip6h->ip6_plen); in nat464_translate_proto()
871 hlen, ntohs(ip6h->ip6_plen)); in nat464_translate_proto()
[all …]
H A Dpf_norm.c1113 #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_ADDRPERM(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 Dpf_osfp.c145 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in pf_osfp_fingerprint_hdr()
H A Dpacket_mangler.c846 ip_pld_len = ntohs(ip6.ip6_plen); in pktmnglr_ipfilter_input()
H A Dpf.c2783 h6->ip6_plen = htons(tlen); in pf_send_tcp()
4597 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af()
4684 } else if (ptr == PTR_IP6(ip6_plen) || in pf_translate_icmp_af()
4685 ptr == PTR_IP6(ip6_plen) + 1) { in pf_translate_icmp_af()
4791 ptr = PTR_IP6(ip6_plen); in pf_translate_icmp_af()
4897 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4()
4917 ntohs(ip6->ip6_plen)); in pf_nat64_ipv4()
4930 hlen, ntohs(ip6->ip6_plen)); in pf_nat64_ipv4()
5580 len = ntohs(h6->ip6_plen) - in pf_test_rule()
9143 (ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) < in pf_pull_hdr()
[all …]
/xnu-10002.81.5/bsd/netinet6/
H A Dfrag6.c329 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 Desp_input.c169 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_strip_udp_encap()
963 if (__improbable(ntohs(ip6->ip6_plen) == 0)) { in esp6_input_extended()
1137 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - (u_int16_t)siz); in esp6_input_extended()
1245 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen); in esp6_input_extended()
1528 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_extended()
1793 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 Desp_output.c1168 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 Dah_input.c613 if (ntohs(ip6->ip6_plen) == 0) { in ah6_input()
901 ip6->ip6_plen = htons((u_int16_t)(ntohs(ip6->ip6_plen) - stripsiz)); in ah6_input()
H A Din6_gif.c174 ip6->ip6_plen = htons((u_short)m->m_pkthdr.len); in in6_gif_output()
H A Dip6_input.c1173 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input()
1198 if (ip6->ip6_plen == 0 && plen == 0) { in ip6_input()
1208 (int)((caddr_t)&ip6->ip6_plen - (caddr_t)ip6)); in ip6_input()
1654 if (ip6->ip6_plen) { in ip6_process_hopopts()
H A Dip6_output.c777 ip6->ip6_plen = 0; in ip6_output_list()
779 ip6->ip6_plen = htons((uint16_t)plen); in ip6_output_list()
1809 } else if (ip6->ip6_plen == 0) { in ip6_do_fragmentation()
1898 new_mhip6->ip6_plen = htons((u_short)(len + hlen + in ip6_do_fragmentation()
2038 plen = ntohs(ip6->ip6_plen); in in6_finalize_cksum()
2049 ip6->ip6_plen, ip6->ip6_plen, plen, plen, in in6_finalize_cksum()
H A Dah_output.c463 ip6->ip6_plen = htons((u_int16_t)(m->m_pkthdr.len - sizeof(struct ip6_hdr))); in ah6_output()
H A Dudp6_output.c433 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
H A Dipsec.c2444 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_encapsulate()
2662 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_update_routecache_and_output()
2807 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec46_encapsulate()
3876 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_trans_internal()
4300 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_tunnel_internal()
5293 ip6->ip6_plen = htons(sizeof(struct udphdr) + 1); in ipsec_send_natt_keepalive()
H A Dudp6_usrreq.c277 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
H A Dnd6_nbr.c848 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_ns_output()
1578 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_na_output()
/xnu-10002.81.5/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip_frag.c348 if (ip6->ip6_plen == 0) { in fsw_ip_frag_reass_v6()
356 fragpartlen = ntohs(ip6->ip6_plen) - in fsw_ip_frag_reass_v6()
384 p->pkt_flow_ulen = ntohs(ip6h->ip6_plen) - in fsw_ip_frag_reass_v6()
530 offsetof(struct ip6_hdr, ip6_plen)); in ipf_process()
/xnu-10002.81.5/bsd/netinet/
H A Dip6.h126 #define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen macro
H A Dtcp_debug.c198 len = isipv6 ? ((struct ip6_hdr *)ipgen)->ip6_plen : ((struct ip *)ipgen)->ip_len;
/xnu-10002.81.5/bsd/skywalk/nexus/netif/
H A Dnx_netif_gso.c505 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal_nosum()
526 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal()
/xnu-10002.81.5/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_agg.c1106 sl3tlen = (sizeof(struct ip6_hdr) + ntohs(sip6->ip6_plen)); in can_agg_slowpath()
1340 old_l3len = ntohs(sip6->ip6_plen) + sizeof(struct ip6_hdr); in flow_agg_merge_hdr()
1341 uint16_t l3plen = ntohs(sip6->ip6_plen) + pkt->pkt_flow_ulen; in flow_agg_merge_hdr()
1342 sip6->ip6_plen = htons(l3plen); in flow_agg_merge_hdr()
1344 SK_DF(logflags, "Agg IP6 len %u", ntohs(sip6->ip6_plen)); in flow_agg_merge_hdr()
H A Dflow_classifier.c251 l3tlen = l3hlen + ntohs(ip6->ip6_plen); in flow_pkt_classify()
H A Dflow_track.c794 ip6->ip6_plen = htons(tlen); in flow_track_abort_tcp()
960 ip6->ip6_plen = htons(ulen); in flow_track_abort_quic()
/xnu-10002.81.5/tests/
H A Dnet_test_lib.c196 ip6_udp->ip6.ip6_plen = htons(sizeof(struct udphdr) + data_len); in ethernet_udp6_frame_populate()

12