Home
last modified time | relevance | path

Searched refs:iph (Results 1 – 8 of 8) sorted by relevance

/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c91 #define iph _l3._iph in flow_pkt_classify() macro
196 iph = (volatile struct ip *__indexable)(void *)pkt_buf_cpy; in flow_pkt_classify()
211 l3hlen = (uint8_t)(iph->ip_hl << 2); in flow_pkt_classify()
218 l3tlen = ntohs(iph->ip_len); in flow_pkt_classify()
222 CL_SKIP_ON(iph->ip_v != IPVERSION); in flow_pkt_classify()
224 if (__probable(IS_P2ALIGNED(&iph->ip_src, 8))) { in flow_pkt_classify()
225 sk_copy64_8(__DECONST(uint64_t *, &iph->ip_src), in flow_pkt_classify()
227 } else if (IS_P2ALIGNED(&iph->ip_src, 4)) { in flow_pkt_classify()
231 src = (uint32_t *)(void *)(__DEVOLATILE(char *, iph) + in flow_pkt_classify()
236 bcopy(__DECONST(struct __flow_l3_ipv4_addrs *__single, &iph->ip_src), in flow_pkt_classify()
[all …]
H A Dflow_agg.c1051 struct ip *iph = (struct ip *)(void *)l3_hdr; in can_agg_slowpath() local
1056 ASSERT(IS_P2ALIGNED(iph, sizeof(uint16_t))); in can_agg_slowpath()
1066 if (siph->ip_ttl != iph->ip_ttl) { in can_agg_slowpath()
1069 uint8_t, iph->ip_ttl); in can_agg_slowpath()
1073 if (siph->ip_tos != iph->ip_tos) { in can_agg_slowpath()
1076 uint8_t, iph->ip_tos); in can_agg_slowpath()
1081 (ntohs(iph->ip_off) & (IP_DF | IP_RF))) { in can_agg_slowpath()
1084 ntohs(siph->ip_off), uint16_t, ntohs(iph->ip_off)); in can_agg_slowpath()
1091 memcmp((uint8_t *)(siph + 1), (uint8_t *)(iph + 1), in can_agg_slowpath()
1096 (uint8_t *)(iph + 1)); in can_agg_slowpath()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ip.c50 const struct ip *iph; in fsw_ip_demux() local
58 iph = (struct ip *)(void *)baddr; in fsw_ip_demux()
61 if ((pkt->pkt_length >= sizeof(*iph)) && in fsw_ip_demux()
62 (pkt->pkt_headroom + sizeof(*iph)) <= bdlim && in fsw_ip_demux()
63 (iph->ip_v == IPVERSION)) { in fsw_ip_demux()
H A Dfsw_cellular.c51 const struct ip *iph; in fsw_cellular_demux() local
59 iph = (struct ip *)(void *)baddr; in fsw_cellular_demux()
62 if ((pkt->pkt_length >= sizeof(*iph)) && in fsw_cellular_demux()
63 (pkt->pkt_headroom + sizeof(*iph)) <= bdlim && in fsw_cellular_demux()
64 (iph->ip_v == IPVERSION)) { in fsw_cellular_demux()
H A Dfsw_ip_frag.c308 struct ip *__single iph = __unsafe_forge_single(struct ip *, in fsw_ip_frag_reass_v4() local
311 p->pkt_flow_ulen = ntohs(iph->ip_len) - in fsw_ip_frag_reass_v4()
/xnu-12377.1.9/bsd/net/
H A Ddlil_subr.c640 struct ip *iph = mtod(m, struct ip *); in dlil_is_clat_needed() local
641 if (CLAT46_NEEDED(ntohl(iph->ip_dst.s_addr))) { in dlil_is_clat_needed()
679 struct ip *iph = NULL; in dlil_clat46() local
706 iph = mtod(*m, struct ip *); in dlil_clat46()
707 osrc = iph->ip_src; in dlil_clat46()
708 odst = iph->ip_dst; in dlil_clat46()
709 proto = iph->ip_p; in dlil_clat46()
710 off = (uint16_t)(iph->ip_hl << 2); in dlil_clat46()
711 ip_id_val = iph->ip_id; in dlil_clat46()
712 ip_frag_off = ntohs(iph->ip_off) & IP_OFFMASK; in dlil_clat46()
[all …]
H A Dnat464_utils.c794 struct ip *iph = NULL; in nat464_translate_proto() local
813 iph = pbuf->pb_data; in nat464_translate_proto()
814 hlen = (uint16_t)(iph->ip_hl << 2); in nat464_translate_proto()
815 plen = ntohs(iph->ip_len) - hlen; in nat464_translate_proto()
816 tot_len = ntohs(iph->ip_len); in nat464_translate_proto()
817 nsrc = &iph->ip_src; in nat464_translate_proto()
818 ndst = &iph->ip_dst; in nat464_translate_proto()
819 proto = &iph->ip_p; in nat464_translate_proto()
865 iph->ip_sum = 0; in nat464_translate_proto()
866 iph->ip_sum = pbuf_inet_cksum(pbuf, 0, 0, hlen); in nat464_translate_proto()
[all …]
/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_inet.c168 #define iph _l3._iph in fill_inet_td() macro
199 iph = (volatile struct ip *)(void *)l3_hdr; in fill_inet_td()
200 ipv = iph->ip_v; in fill_inet_td()
210 l3hlen = (uint8_t)(iph->ip_hl << 2); in fill_inet_td()
222 l3tlen = ntohs(iph->ip_len); in fill_inet_td()
234 td->inet_proto = iph->ip_p; in fill_inet_td()
235 bcopy(__DECONST(void *, &iph->ip_src), &td->inet_laddr.iia_v4addr, in fill_inet_td()
236 sizeof(iph->ip_src)); in fill_inet_td()
237 bcopy(__DECONST(void *, &iph->ip_dst), &td->inet_raddr.iia_v4addr, in fill_inet_td()
238 sizeof(iph->ip_dst)); in fill_inet_td()
[all …]