Home
last modified time | relevance | path

Searched refs:ip_p (Results 1 – 25 of 42) sorted by relevance

12

/xnu-12377.1.9/bsd/dev/dtrace/scripts/
H A Dip.d167 ipv4_protocol = (ip != NULL) ? ip->ip_p : 0;
169 (ip->ip_p == 1) ? "ICMP" :
170 (ip->ip_p == 2) ? "IGMP" :
171 (ip->ip_p == 4) ? "IP" :
172 (ip->ip_p == 6) ? "TCP":
173 (ip->ip_p == 17) ? "UDP" :
174 (ip->ip_p == 50) ? "ESP":
175 (ip->ip_p == 51) ? "AH" :
176 (ip->ip_p == 58) ? "ICMPV6" :
177 (ip->ip_p == 255) ? "RAW" : stringof(ip->ip_p);
/xnu-12377.1.9/bsd/net/
H A Dnat464_utils.c332 ptr = PTR_IP(ip_p); in nat464_translate_icmp()
445 } else if (ptr == PTR_IP(ip_p)) { in nat464_translate_icmp()
531 ip4->ip_p = IPPROTO_ICMP; in nat464_translate_icmp_ip()
533 ip4->ip_p = proto2; in nat464_translate_icmp_ip()
543 __func__, ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_icmp_ip()
687 ip4->ip_p = *proto; in nat464_translate_64()
719 ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_64()
819 proto = &iph->ip_p; in nat464_translate_proto()
979 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
H A Dif_stf.c596 ip->ip_p = IPPROTO_IPV6; in stf_pre_output()
754 proto = ip->ip_p; in in_stf_input()
H A Ddlil_subr.c709 proto = iph->ip_p; in dlil_clat46()
776 error = (nat464_translate_46(pbuf, off, iph->ip_tos, iph->ip_p, in dlil_clat46()
H A Dpktap.c998 if (ip.ip_p == IPPROTO_TCP) { in pktap_fill_proc_info()
1011 } else if (ip.ip_p == IPPROTO_UDP) { in pktap_fill_proc_info()
1041 ip.ip_p, hdr->pth_ifname); in pktap_fill_proc_info()
H A Dif_ports_used.c1874 pkt_proto = iphdr.ip_p; in if_ports_used_match_mbuf()
1876 switch (iphdr.ip_p) { in if_ports_used_match_mbuf()
1957 iphdr.ip_p, IF_XNAME(ifp)); in if_ports_used_match_mbuf()
2682 if ((ipproto = ip.ip_p) != mark_wake_packet_ipproto) { in check_wake_mbuf()
H A Dpf_norm.c450 key->fr_p = ip->ip_p; in pf_ip2key()
530 if (ip->ip_p == IPPROTO_UDP && hlen == sizeof(struct ip) && in pf_reassemble()
599 (*frag)->fr_p = frent->fr_ip->ip_p; in pf_reassemble()
841 (*frag)->fr_p = h->ip_p; in pf_fragcache()
1936 } else if (r->proto && r->proto != h->ip_p) { in pf_normalize_ip()
H A Dif_bond.c1416 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p))
1417 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p))
1425 u_char ip_p; in ip_header_hash() local
1430 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); in ip_header_hash()
1436 ip_p = *data; in ip_header_hash()
1454 return ntohl(ip_dst.s_addr) ^ ntohl(ip_src.s_addr) ^ ((uint32_t)ip_p); in ip_header_hash()
/xnu-12377.1.9/bsd/netinet/
H A Dip_input.c699 if (__improbable(ip->ip_p != IPPROTO_TCP && (m->m_pkthdr.pkt_flags & PKTF_WAKE_PKT) != 0)) { in ip_proto_dispatch_in()
708 if ((pr_input = ip_protox[ip->ip_p]->pr_input) == NULL) { in ip_proto_dispatch_in()
712 } else if (!(ip_protox[ip->ip_p]->pr_flags & PR_PROTOLOCK)) { in ip_proto_dispatch_in()
750 tbl[pkttbl_idx].pkte_proto = ip->ip_p; in ip_chain_insert()
754 (ip->ip_p == tbl[pkttbl_idx].pkte_proto)) { in ip_chain_insert()
851 ip_proto_dispatch_in(tmp_mbuf, hlen, ip->ip_p, 0); in ip_input_dispatch_chain()
923 (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)) { in ip_input_adjust()
1041 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref); in ip_input_first_pass()
1068 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass()
1272 hlen == sizeof(struct ip) && ip->ip_p == IPPROTO_UDP) { in ip_input_first_pass()
[all …]
H A Dip_icmp.c249 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && in icmp_error()
266 if (oip->ip_p == IPPROTO_TCP) { in icmp_error()
426 nip->ip_p = IPPROTO_ICMP; in icmp_error()
607 icp->icmp_ip.ip_p); in icmp_input()
616 ctlfunc = ip_protox[icp->icmp_ip.ip_p]->pr_ctlinput; in icmp_input()
1273 if (ip->ip_p != IPPROTO_ICMP) { in icmp_dgram_send()
H A Dip.h112 u_char ip_p; /* protocol */ member
H A Din_gif.c177 iphdr.ip_p = proto; in in_gif_output()
249 proto = ip->ip_p; in in_gif_input()
H A Dip_output.c600 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
1773 if (ip->ip_p == IPPROTO_UDP && in ip_output_list()
1810 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
2111 (uint64_t)VM_KERNEL_ADDRHASH(m), ip->ip_p, in in_finalize_cksum()
2148 m, mlen, ip->ip_p, ulpoff, m->m_pkthdr.csum_flags); in in_finalize_cksum()
2155 ip_out_cksum_stats(ip->ip_p, len); in in_finalize_cksum()
3190 if (ifa == NULL && ip->ip_p != IPPROTO_UDP && in in_selectsrcif()
3191 ip->ip_p != IPPROTO_TCP && ipforwarding) { in in_selectsrcif()
H A Dip_encap.c153 proto = ip->ip_p; in encap4_input()
H A Draw_ip.c281 if (inp->inp_ip_p && (inp->inp_ip_p != ip->ip_p)) { in rip_input_inner()
545 ip->ip_p = inp->inp_ip_p; in rip_output()
H A Dip_compat.h574 __u8 ip_p;
/xnu-12377.1.9/bsd/netinet6/
H A Dah_output.c283 ahdr->ah_nxt = ip->ip_p; in ah4_output()
294 ahdr->ah_nxt = ip->ip_p; in ah4_output()
322 ip->ip_p = IPPROTO_AH; in ah4_output()
H A Desp_output.c426 inner_protocol = inner_ip->ip_p; in esp_output()
444 inner_protocol = ip->ip_p; in esp_output()
476 if (ip->ip_p != IPPROTO_UDP) { in esp_output()
954 return esp_output(m, &ip->ip_p, m->m_next, AF_INET, sav); in esp4_output()
1026 nxt_proto = ip_hdr->ip_p; in esp_kpipe_output()
1153 ip->ip_p = IPPROTO_ESP; in esp_kpipe_output()
H A Desp_input.c152 ip->ip_p = IPPROTO_ESP; in esp4_input_strip_udp_encap()
187 proto = inner_ip->ip_p; in esp_input_log()
262 if (ip->ip_p != IPPROTO_ESP && in esp4_input_extended()
263 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) { in esp4_input_extended()
539 if (ip->ip_p == IPPROTO_UDP) { in esp4_input_extended()
623 inner_ip_proto = ip->ip_p; in esp4_input_extended()
765 ip->ip_p = (u_int8_t)nxt; in esp4_input_extended()
1372 inner_ip_proto = ip->ip_p; in esp6_input_extended()
1774 nxt_proto = ip_hdr->ip_p; in esp_kpipe_input()
2050 ip->ip_p = nxt_proto; in esp_kpipe_input()
H A Dipsec.c1230 nxt = ip.ip_p; in ipsec4_get_ulp()
2352 ip->ip_p = IPPROTO_IPIP; in ipsec4_encapsulate()
2507 ip->ip_p = IPPROTO_IPV6; in ipsec64_encapsulate()
3723 if (ip->ip_p == IPPROTO_UDP) { in ipsec4_output()
5211 ip->ip_p = IPPROTO_UDP; in ipsec_send_natt_keepalive()
5481 ip->ip_p = IPPROTO_UDP; in ipsec_fill_offload_frame()
H A Dah_core.c688 hdrtype = (iphdr.ip_p) & 0xff; in ah4_calccksum()
/xnu-12377.1.9/tests/
H A Dicmp_fragmented_payload.c255 pcb->inner_ip_hdr->ip_p = IPPROTO_TCP; in icmp4_pcb_set_payload()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c242 pkt->pkt_flow_ip_proto = iph->ip_p; in flow_pkt_classify()
H A Dflow_track.c798 ip->ip_p = IPPROTO_TCP; in flow_track_abort_tcp()
973 ip->ip_p = IPPROTO_UDP; in flow_track_abort_quic()
/xnu-12377.1.9/tests/skywalk/
H A Dskt_xfer.c469 switch (ip_udp->ip.ip_p) { in ip_frame_dump()
587 ip_tcp->ip.ip_p = IPPROTO_TCP; in tcp_frame_populate()
677 ip_udp->ip.ip_p = IPPROTO_UDP; in udp_frame_populate()
737 ip->ip_p = protocol; in ip_frame_populate()
827 assert(ip_tcp->ip.ip_p == IPPROTO_TCP); in tcp_frame_process()
902 assert(ip_udp->ip.ip_p == IPPROTO_UDP); in udp_frame_process()
1066 switch (ip->ip_p) { in frame_process()

12