| /xnu-11215.1.10/bsd/dev/dtrace/scripts/ ! |
| H A D | ip.d | 167 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 D | nat464_utils.c | 326 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 D | if_stf.c | 596 ip->ip_p = IPPROTO_IPV6; in stf_pre_output() 754 proto = ip->ip_p; in in_stf_input()
|
| H A D | pktap.c | 998 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 D | pf_norm.c | 449 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 D | if_ports_used.c | 1539 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 D | if_bond.c | 1415 #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 D | packet_mangler.c | 1057 switch (ip->ip_p) { in chksm_update()
|
| /xnu-11215.1.10/bsd/netinet/ ! |
| H A D | ip_input.c | 696 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 D | ip_icmp.c | 249 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 D | ip.h | 112 u_char ip_p; /* protocol */ member
|
| H A D | in_gif.c | 177 iphdr.ip_p = proto; in in_gif_output() 249 proto = ip->ip_p; in in_gif_input()
|
| H A D | ip_output.c | 594 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 D | ip_encap.c | 153 proto = ip->ip_p; in encap4_input()
|
| H A D | raw_ip.c | 279 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 D | ip_compat.h | 574 __u8 ip_p;
|
| /xnu-11215.1.10/bsd/netinet6/ ! |
| H A D | ah_output.c | 283 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 D | esp_output.c | 426 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 D | esp_input.c | 152 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 D | ipsec.c | 1230 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 D | ah_core.c | 688 hdrtype = (iphdr.ip_p) & 0xff; in ah4_calccksum()
|
| /xnu-11215.1.10/tests/ ! |
| H A D | icmp_fragmented_payload.c | 255 pcb->inner_ip_hdr->ip_p = IPPROTO_TCP; in icmp4_pcb_set_payload()
|
| /xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/flow/ ! |
| H A D | flow_classifier.c | 242 pkt->pkt_flow_ip_proto = iph->ip_p; in flow_pkt_classify()
|
| H A D | flow_track.c | 793 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 D | skt_xfer.c | 468 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()
|