Home
last modified time | relevance | path

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

12

/xnu-11215.1.10/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-11215.1.10/bsd/net/ !
H A Dnat464_utils.c326 ptr = PTR_IP(ip_p); in nat464_translate_icmp()
439 } else if (ptr == PTR_IP(ip_p)) { in nat464_translate_icmp()
525 ip4->ip_p = IPPROTO_ICMP; in nat464_translate_icmp_ip()
527 ip4->ip_p = proto2; in nat464_translate_icmp_ip()
537 __func__, ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_icmp_ip()
681 ip4->ip_p = *proto; in nat464_translate_64()
713 ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_64()
813 proto = &iph->ip_p; in nat464_translate_proto()
967 &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 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()
1040 ip.ip_p, hdr->pth_ifname); in pktap_fill_proc_info()
H A Dpf_norm.c449 key->fr_p = ip->ip_p; in pf_ip2key()
529 if (ip->ip_p == IPPROTO_UDP && hlen == sizeof(struct ip) && in pf_reassemble()
598 (*frag)->fr_p = frent->fr_ip->ip_p; in pf_reassemble()
839 (*frag)->fr_p = h->ip_p; in pf_fragcache()
1933 } else if (r->proto && r->proto != h->ip_p) { in pf_normalize_ip()
H A Dif_ports_used.c1539 pkt_proto = iphdr.ip_p; in if_ports_used_match_mbuf()
1541 switch (iphdr.ip_p) { in if_ports_used_match_mbuf()
1622 __func__, iphdr.ip_p, IF_XNAME(ifp)); in if_ports_used_match_mbuf()
H A Dif_bond.c1415 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p))
1416 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p))
1424 u_char ip_p; in ip_header_hash() local
1429 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); in ip_header_hash()
1435 ip_p = *data; in ip_header_hash()
1453 return ntohl(ip_dst.s_addr) ^ ntohl(ip_src.s_addr) ^ ((uint32_t)ip_p); in ip_header_hash()
H A Dpacket_mangler.c1057 switch (ip->ip_p) { in chksm_update()
/xnu-11215.1.10/bsd/netinet/ !
H A Dip_input.c696 if ((pr_input = ip_protox[ip->ip_p]->pr_input) == NULL) { in ip_proto_dispatch_in()
700 } else if (!(ip_protox[ip->ip_p]->pr_flags & PR_PROTOLOCK)) { in ip_proto_dispatch_in()
738 tbl[pkttbl_idx].pkte_proto = ip->ip_p; in ip_chain_insert()
742 (ip->ip_p == tbl[pkttbl_idx].pkte_proto)) { in ip_chain_insert()
839 ip_proto_dispatch_in(tmp_mbuf, hlen, ip->ip_p, 0); in ip_input_dispatch_chain()
911 (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)) { in ip_input_adjust()
1029 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref); in ip_input_first_pass()
1056 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass()
1260 hlen == sizeof(struct ip) && ip->ip_p == IPPROTO_UDP) { in ip_input_first_pass()
1279 if (ip_protox[ip->ip_p]->pr_flags & PR_LASTHDR) { 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()
1268 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.c594 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
1743 if (ip->ip_p == IPPROTO_UDP && in ip_output_list()
1780 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
2081 (uint64_t)VM_KERNEL_ADDRHASH(m), ip->ip_p, in in_finalize_cksum()
2118 m, mlen, ip->ip_p, ulpoff, m->m_pkthdr.csum_flags); in in_finalize_cksum()
2125 ip_out_cksum_stats(ip->ip_p, len); in in_finalize_cksum()
3151 if (ifa == NULL && ip->ip_p != IPPROTO_UDP && in in_selectsrcif()
3152 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.c279 if (inp->inp_ip_p && (inp->inp_ip_p != ip->ip_p)) { in rip_input_inner()
546 ip->ip_p = inp->inp_ip_p; in rip_output()
H A Dip_compat.h574 __u8 ip_p;
/xnu-11215.1.10/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-11215.1.10/tests/ !
H A Dicmp_fragmented_payload.c255 pcb->inner_ip_hdr->ip_p = IPPROTO_TCP; in icmp4_pcb_set_payload()
/xnu-11215.1.10/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.c793 ip->ip_p = IPPROTO_TCP; in flow_track_abort_tcp()
968 ip->ip_p = IPPROTO_UDP; in flow_track_abort_quic()
/xnu-11215.1.10/tests/skywalk/ !
H A Dskt_xfer.c468 switch (ip_udp->ip.ip_p) { in ip_frame_dump()
586 ip_tcp->ip.ip_p = IPPROTO_TCP; in tcp_frame_populate()
676 ip_udp->ip.ip_p = IPPROTO_UDP; in udp_frame_populate()
736 ip->ip_p = protocol; in ip_frame_populate()
826 assert(ip_tcp->ip.ip_p == IPPROTO_TCP); in tcp_frame_process()
901 assert(ip_udp->ip.ip_p == IPPROTO_UDP); in udp_frame_process()
1065 switch (ip->ip_p) { in frame_process()

12