Home
last modified time | relevance | path

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

12

/xnu-8020.101.4/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 Dsixxlowpan.c758 SET16(&ip6->ip6_plen, len); in uncompress_hdr_hc1()
761 SET16(&ip6->ip6_plen, ip_len - UIP_IPH_LEN); in uncompress_hdr_hc1()
767 memcpy(&udp->uh_ulen, &ip6->ip6_plen, 2); in uncompress_hdr_hc1()
H A Dpf_osfp.c145 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); in pf_osfp_fingerprint_hdr()
H A Dpf.c2669 h6->ip6_plen = htons(tlen); in pf_send_tcp()
4463 ip6->ip6_plen = htons(pd2->tot_len - olen); in pf_change_icmp_af()
4550 } else if (ptr == PTR_IP6(ip6_plen) || in pf_translate_icmp_af()
4551 ptr == PTR_IP6(ip6_plen) + 1) { in pf_translate_icmp_af()
4657 ptr = PTR_IP6(ip6_plen); in pf_translate_icmp_af()
4763 ip6->ip6_plen = htons(pd->tot_len - off); in pf_nat64_ipv4()
4783 ntohs(ip6->ip6_plen)); in pf_nat64_ipv4()
4796 hlen, ntohs(ip6->ip6_plen)); in pf_nat64_ipv4()
5444 len = ntohs(h6->ip6_plen) - in pf_test_rule()
8960 (ntohs(h->ip6_plen) + sizeof(struct ip6_hdr)) < in pf_pull_hdr()
[all …]
H A Dpacket_mangler.c855 ip_pld_len = ntohs(ip6.ip6_plen); in pktmnglr_ipfilter_input()
/xnu-8020.101.4/bsd/netinet6/ !
H A Dfrag6.c332 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()
403 uint32_t ip_len = (sizeof(*ip6) + ntohs(ip6->ip6_plen)); in frag6_input()
534 frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset; in frag6_input()
829 ip6->ip6_plen = htons((uint16_t)(next + offset - sizeof(struct ip6_hdr))); in frag6_input()
H A Desp_input.c165 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_strip_udp_encap()
954 if (ntohs(ip6->ip6_plen) == 0) { in esp6_input_extended()
1115 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - (u_int16_t)siz); in esp6_input_extended()
1223 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - taillen); in esp6_input_extended()
1507 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - stripsiz); in esp6_input_extended()
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.c1164 plen = (u_int32_t)ntohs(ip6->ip6_plen); in ip6_input()
1189 if (ip6->ip6_plen == 0 && plen == 0) { in ip6_input()
1199 (int)((caddr_t)&ip6->ip6_plen - (caddr_t)ip6)); in ip6_input()
1645 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()
1813 } else if (ip6->ip6_plen == 0) { in ip6_do_fragmentation()
1902 new_mhip6->ip6_plen = htons((u_short)(len + hlen + in ip6_do_fragmentation()
2042 plen = ntohs(ip6->ip6_plen); in in6_finalize_cksum()
2053 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.c431 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
H A Dipsec.c2442 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_encapsulate()
2660 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_update_routecache_and_output()
2804 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec46_encapsulate()
3586 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_trans_internal()
4004 ip6->ip6_plen = htons((u_int16_t)plen); in ipsec6_output_tunnel_internal()
4980 ip6->ip6_plen = htons(sizeof(struct udphdr) + 1); in ipsec_send_natt_keepalive()
H A Dudp6_usrreq.c272 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
H A Dnd6_nbr.c844 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_ns_output()
1566 ip6->ip6_plen = htons((u_short)icmp6len); in nd6_na_output()
H A Dicmp6.c3020 ip6->ip6_plen = htons((uint16_t)(m->m_pkthdr.len - sizeof(struct ip6_hdr))); in icmp6_redirect_output()
3024 = in6_cksum(m, IPPROTO_ICMPV6, sizeof(*ip6), ntohs(ip6->ip6_plen)); in icmp6_redirect_output()
/xnu-8020.101.4/bsd/skywalk/nexus/flowswitch/ !
H A Dfsw_ip_frag.c351 if (ip6->ip6_plen == 0) { in fsw_ip_frag_reass_v6()
359 fragpartlen = ntohs(ip6->ip6_plen) - in fsw_ip_frag_reass_v6()
387 p->pkt_flow_ulen = ntohs(ip6h->ip6_plen) - in fsw_ip_frag_reass_v6()
532 offsetof(struct ip6_hdr, ip6_plen)); in ipf_process()
/xnu-8020.101.4/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-8020.101.4/bsd/skywalk/nexus/flowswitch/flow/ !
H A Dflow_agg.c1058 sl3tlen = (sizeof(struct ip6_hdr) + ntohs(sip6->ip6_plen)); in can_agg_slowpath()
1257 old_l3len = ntohs(sip6->ip6_plen) + sizeof(struct ip6_hdr); in flow_agg_merge_hdr()
1258 uint16_t l3plen = ntohs(sip6->ip6_plen) + pkt->pkt_flow_ulen; in flow_agg_merge_hdr()
1259 sip6->ip6_plen = htons(l3plen); in flow_agg_merge_hdr()
1261 SK_DF(logflags, "Agg IP6 len %u", ntohs(sip6->ip6_plen)); in flow_agg_merge_hdr()
H A Dflow_classifier.c250 l3tlen = l3hlen + ntohs(ip6->ip6_plen); in flow_pkt_classify()
/xnu-8020.101.4/bsd/skywalk/nexus/netif/ !
H A Dnx_netif_gso.c451 state->hdr.ip6->ip6_plen = htons(state->tcp_hlen + payload_len); in netif_gso_ipv6_tcp_internal()
/xnu-8020.101.4/tests/ !
H A Dnet_bridge.c865 ip6_len = ntohs(ip6->ip6_plen); in ip6_frame_validate()
1105 ip6_udp->ip6.ip6_plen = htons(sizeof(struct udphdr) + data_len); in ethernet_udp6_frame_populate()
1280 ip6_len = ntohs(ip6_udp->ip6.ip6_plen); in ethernet_frame_get_udp6_payload()
1462 ip6->ip6_plen = htons(data_len); in ethernet_nd6_frame_populate()

12