Home
last modified time | relevance | path

Searched refs:ip6h (Results 1 – 7 of 7) sorted by relevance

/xnu-11417.101.15/bsd/skywalk/nexus/flowswitch/
H A Dfsw_cellular.c52 const struct ip6_hdr *ip6h; in fsw_cellular_demux() local
60 ip6h = (struct ip6_hdr *)(void *)baddr; in fsw_cellular_demux()
66 } else if ((pkt->pkt_length >= sizeof(*ip6h)) && in fsw_cellular_demux()
67 (pkt->pkt_headroom + sizeof(*ip6h) <= bdlim) && in fsw_cellular_demux()
68 ((ip6h->ip6_vfc & IPV6_VERSION_MASK) == IPV6_VERSION)) { in fsw_cellular_demux()
H A Dfsw_ip.c51 const struct ip6_hdr *ip6h; in fsw_ip_demux() local
59 ip6h = (struct ip6_hdr *)(void *)baddr; in fsw_ip_demux()
65 } else if ((pkt->pkt_length >= sizeof(*ip6h)) && in fsw_ip_demux()
66 (pkt->pkt_headroom + sizeof(*ip6h) <= bdlim) && in fsw_ip_demux()
67 ((ip6h->ip6_vfc & IPV6_VERSION_MASK) == IPV6_VERSION)) { in fsw_ip_demux()
H A Dfsw_ip_frag.c387 struct ip6_hdr *__single ip6h = __unsafe_forge_single(struct ip6_hdr *, in fsw_ip_frag_reass_v6() local
390 p->pkt_flow_ulen = ntohs(ip6h->ip6_plen) - in fsw_ip_frag_reass_v6()
/xnu-11417.101.15/bsd/net/
H A Ddlil_subr.c781 struct ip6_hdr *ip6h = mtod(m, struct ip6_hdr *); in dlil_is_clat_needed() local
783 CLAT64_NEEDED(&ip6h->ip6_dst)) { in dlil_is_clat_needed()
953 struct ip6_hdr *ip6h = NULL; in dlil_clat64() local
974 ip6h = mtod(*m, struct ip6_hdr *); in dlil_clat64()
976 if ((size_t)(*m)->m_pkthdr.len < ntohs(ip6h->ip6_plen) + sizeof(struct ip6_hdr)) { in dlil_clat64()
981 osrc = ip6h->ip6_src; in dlil_clat64()
982 odst = ip6h->ip6_dst; in dlil_clat64()
1024 ip6h = pbuf->pb_data; in dlil_clat64()
1026 proto = ip6h->ip6_nxt; in dlil_clat64()
1027 tos = (ntohl(ip6h->ip6_flow) >> 20) & 0xff; in dlil_clat64()
[all …]
H A Dnat464_utils.c789 struct ip6_hdr *ip6h = NULL; in nat464_translate_proto() local
817 ip6h = pbuf->pb_data; in nat464_translate_proto()
818 hlen = (uint16_t)sizeof(*ip6h); in nat464_translate_proto()
819 plen = ntohs(ip6h->ip6_plen); in nat464_translate_proto()
821 nsrc = &ip6h->ip6_src; in nat464_translate_proto()
822 ndst = &ip6h->ip6_dst; in nat464_translate_proto()
823 proto = &ip6h->ip6_nxt; in nat464_translate_proto()
877 hlen, ntohs(ip6h->ip6_plen)); in nat464_translate_proto()
978 ip6h->ip6_plen = htons(tot_len - hlen); in nat464_translate_proto()
986 ntohs(ip6h->ip6_plen)); in nat464_translate_proto()
[all …]
H A Dif_bridge.c8077 mbuf_t *data, struct ip6_hdr *ip6h,
8088 unsigned int off = sizeof(*ip6h);
8090 icmp6len = (u_int32_t)ntohs(ip6h->ip6_plen);
8106 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8127 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8313 struct ip6_hdr *ip6h;
8321 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
8322 bcopy(&ip6h->ip6_dst, &dst, sizeof(dst));
8340 struct ip6_hdr *ip6h;
8352 ip6h = (struct ip6_hdr *)(header + sizeof(*eh));
[all …]
/xnu-11417.101.15/bsd/skywalk/nexus/netif/
H A Dnx_netif_flow.c213 struct ip6_hdr *ip6h; in netif_flow_ipv6_ula_info() local
218 err = netif_flow_get_buf(pkt, sizeof(*eh) + sizeof(*ip6h), in netif_flow_ipv6_ula_info()
226 ip6h = (struct ip6_hdr *)(eh + 1); in netif_flow_ipv6_ula_info()
233 if (len < sizeof(*eh) + sizeof(*ip6h)) { in netif_flow_ipv6_ula_info()
237 laddr = &ip6h->ip6_src; in netif_flow_ipv6_ula_info()
238 raddr = &ip6h->ip6_dst; in netif_flow_ipv6_ula_info()
240 laddr = &ip6h->ip6_dst; in netif_flow_ipv6_ula_info()
241 raddr = &ip6h->ip6_src; in netif_flow_ipv6_ula_info()