Home
last modified time | relevance | path

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

/xnu-11215/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c91 #define iph _l3._iph in flow_pkt_classify() macro
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()
227 } else if (IS_P2ALIGNED(&iph->ip_src, 4)) { in flow_pkt_classify()
242 pkt->pkt_flow_ip_proto = iph->ip_p; in flow_pkt_classify()
243 pkt->pkt_flow_ip_hdr = (mach_vm_address_t)iph; in flow_pkt_classify()
247 pkt->pkt_flow_ip_frag_id = iph->ip_id; in flow_pkt_classify()
249 if ((ntohs(iph->ip_off) & IP_OFFMASK) != 0) { in flow_pkt_classify()
339 (volatile uint8_t *)iph + l3hlen); 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-11215/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.c305 struct ip *__single iph = __unsafe_forge_single(struct ip *, in fsw_ip_frag_reass_v4() local
308 p->pkt_flow_ulen = ntohs(iph->ip_len) - in fsw_ip_frag_reass_v4()
/xnu-11215/bsd/net/
H A Dnat464_utils.c788 struct ip *iph = NULL; in nat464_translate_proto() local
807 iph = pbuf->pb_data; in nat464_translate_proto()
810 tot_len = ntohs(iph->ip_len); in nat464_translate_proto()
811 nsrc = &iph->ip_src; in nat464_translate_proto()
812 ndst = &iph->ip_dst; in nat464_translate_proto()
813 proto = &iph->ip_p; in nat464_translate_proto()
859 iph->ip_sum = 0; in nat464_translate_proto()
975 iph->ip_len = htons(tot_len); in nat464_translate_proto()
1045 iph->ip_len = htons(tot_len); in nat464_translate_proto()
1054 iph->ip_sum = 0; in nat464_translate_proto()
[all …]
H A Ddlil.c7072 struct ip *iph = mtod(m, struct ip *); in dlil_is_clat_needed() local
7110 struct ip *iph = NULL; in dlil_clat46() local
7128 iph = pbuf->pb_data; in dlil_clat46()
7130 osrc = iph->ip_src; in dlil_clat46()
7131 odst = iph->ip_dst; in dlil_clat46()
7132 proto = iph->ip_p; in dlil_clat46()
7133 off = (uint16_t)(iph->ip_hl << 2); in dlil_clat46()
7134 ip_id_val = iph->ip_id; in dlil_clat46()
7137 tot_len = ntohs(iph->ip_len); in dlil_clat46()
7154 if (ntohs(iph->ip_off) & IP_MF) { in dlil_clat46()
[all …]
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus_traffic_rule.c350 #define iph _l3._iph in fill_inet_td() macro
381 iph = (volatile struct ip *)(void *)l3_hdr; in fill_inet_td()
382 ipv = iph->ip_v; in fill_inet_td()
392 l3hlen = (uint8_t)(iph->ip_hl << 2); in fill_inet_td()
404 l3tlen = ntohs(iph->ip_len); in fill_inet_td()
416 td->inet_proto = iph->ip_p; in fill_inet_td()
417 bcopy(__DECONST(void *, &iph->ip_src), &td->inet_laddr.iia_v4addr, in fill_inet_td()
418 sizeof(iph->ip_src)); in fill_inet_td()
419 bcopy(__DECONST(void *, &iph->ip_dst), &td->inet_raddr.iia_v4addr, in fill_inet_td()
420 sizeof(iph->ip_dst)); in fill_inet_td()
[all …]