Home
last modified time | relevance | path

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

12

/xnu-8019.80.24/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-8019.80.24/bsd/net/
H A Dnat464_utils.c320 ptr = PTR_IP(ip_p); in nat464_translate_icmp()
433 } else if (ptr == PTR_IP(ip_p)) { in nat464_translate_icmp()
519 ip4->ip_p = IPPROTO_ICMP; in nat464_translate_icmp_ip()
521 ip4->ip_p = proto2; in nat464_translate_icmp_ip()
531 __func__, ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_icmp_ip()
675 ip4->ip_p = *proto; in nat464_translate_64()
707 ntohs(ip4->ip_len), ip4->ip_p, ntohs(ip4->ip_sum), in nat464_translate_64()
807 proto = &iph->ip_p; in nat464_translate_proto()
961 &hlen2, iph2->ip_p, iph2->ip_ttl, tot_len2, in nat464_translate_proto()
H A Dif_stf.c598 ip->ip_p = IPPROTO_IPV6; in stf_pre_output()
756 proto = ip->ip_p; in in_stf_input()
H A Dpktap.c974 if (ip.ip_p == IPPROTO_TCP) { in pktap_fill_proc_info()
987 } else if (ip.ip_p == IPPROTO_UDP) { in pktap_fill_proc_info()
1016 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()
1934 } else if (r->proto && r->proto != h->ip_p) { in pf_normalize_ip()
H A Dif_bond.c1431 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p))
1432 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p))
1440 u_char ip_p; in ip_header_hash() local
1445 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header); in ip_header_hash()
1451 ip_p = *data; in ip_header_hash()
1469 return ntohl(ip_dst.s_addr) ^ ntohl(ip_src.s_addr) ^ ((uint32_t)ip_p); in ip_header_hash()
H A Dif_ports_used.c1258 switch (iphdr.ip_p) { in if_ports_used_match_mbuf()
1325 __func__, iphdr.ip_p, ifp->if_xname); in if_ports_used_match_mbuf()
H A Dif_bridge.c4309 info_p->ip_proto = ip->ip_p;
7258 if (iphdr.ip_p == IPPROTO_UDP) {
7316 if (iphdr.ip_p != IPPROTO_TCP &&
7317 iphdr.ip_p != IPPROTO_UDP &&
7318 iphdr.ip_p != IPPROTO_ICMP &&
7319 iphdr.ip_p != IPPROTO_ESP &&
7320 iphdr.ip_p != IPPROTO_AH &&
7321 iphdr.ip_p != IPPROTO_GRE) {
7992 if (iphdr->ip_p == IPPROTO_UDP) {
H A Dpacket_mangler.c1104 switch (ip->ip_p) { in chksm_update()
/xnu-8019.80.24/bsd/netinet/
H A Dip_input.c687 if ((pr_input = ip_protox[ip->ip_p]->pr_input) == NULL) { in ip_proto_dispatch_in()
689 } else if (!(ip_protox[ip->ip_p]->pr_flags & PR_PROTOLOCK)) { in ip_proto_dispatch_in()
727 tbl[pkttbl_idx].pkte_proto = ip->ip_p; in ip_chain_insert()
731 (ip->ip_p == tbl[pkttbl_idx].pkte_proto)) { in ip_chain_insert()
828 ip_proto_dispatch_in(tmp_mbuf, hlen, ip->ip_p, 0); in ip_input_dispatch_chain()
900 (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)) { in ip_input_adjust()
1018 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref); in ip_input_first_pass()
1044 ip->ip_p, ip->ip_off, ip->ip_len); in ip_input_first_pass()
1236 hlen == sizeof(struct ip) && ip->ip_p == IPPROTO_UDP) { in ip_input_first_pass()
1255 if (ip_protox[ip->ip_p]->pr_flags & PR_LASTHDR) { in ip_input_first_pass()
[all …]
H A Dip_icmp.c254 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && in icmp_error()
269 if (oip->ip_p == IPPROTO_TCP) { in icmp_error()
413 nip->ip_p = IPPROTO_ICMP; in icmp_error()
592 icp->icmp_ip.ip_p); in icmp_input()
601 ctlfunc = ip_protox[icp->icmp_ip.ip_p]->pr_ctlinput; in icmp_input()
1345 if (ip->ip_p != IPPROTO_ICMP) { in icmp_dgram_send()
H A Dip.h112 u_char ip_p; /* protocol */ member
H A Din_gif.c178 iphdr.ip_p = proto; in in_gif_output()
250 proto = ip->ip_p; in in_gif_input()
H A Dip_output.c574 ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
1686 if (ip->ip_p == IPPROTO_UDP && in ip_output_list()
1722 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len); in ip_output_list()
2024 (uint64_t)VM_KERNEL_ADDRPERM(m), ip->ip_p, in in_finalize_cksum()
2061 m, mlen, ip->ip_p, ulpoff, m->m_pkthdr.csum_flags); in in_finalize_cksum()
2068 ip_out_cksum_stats(ip->ip_p, len); in in_finalize_cksum()
3091 if (ifa == NULL && ip->ip_p != IPPROTO_UDP && in in_selectsrcif()
3092 ip->ip_p != IPPROTO_TCP && ipforwarding) { in in_selectsrcif()
H A Dip_encap.c152 proto = ip->ip_p; in encap4_input()
H A Draw_ip.c214 if (inp->inp_ip_p && (inp->inp_ip_p != ip->ip_p)) { in rip_input()
506 ip->ip_p = inp->inp_ip_p; in rip_output()
H A Dip_compat.h574 __u8 ip_p;
/xnu-8019.80.24/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.c422 inner_protocol = inner_ip->ip_p; in esp_output()
440 inner_protocol = ip->ip_p; in esp_output()
472 if (ip->ip_p != IPPROTO_UDP) { in esp_output()
950 return esp_output(m, &ip->ip_p, m->m_next, AF_INET, sav); in esp4_output()
H A Desp_input.c148 ip->ip_p = IPPROTO_ESP; in esp4_input_strip_udp_encap()
183 proto = inner_ip->ip_p; in esp_input_log()
256 if (ip->ip_p != IPPROTO_ESP && in esp4_input_extended()
257 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) { in esp4_input_extended()
522 if (ip->ip_p == IPPROTO_UDP) { in esp4_input_extended()
606 inner_ip_proto = ip->ip_p; in esp4_input_extended()
749 ip->ip_p = (u_int8_t)nxt; in esp4_input_extended()
1352 inner_ip_proto = ip->ip_p; in esp6_input_extended()
H A Dipsec.c1235 nxt = ip.ip_p; in ipsec4_get_ulp()
2377 ip->ip_p = IPPROTO_IPIP; in ipsec4_encapsulate()
2529 ip->ip_p = IPPROTO_IPV6; in ipsec64_encapsulate()
3453 if (ip->ip_p == IPPROTO_UDP) { in ipsec4_output()
4915 ip->ip_p = IPPROTO_UDP; in ipsec_send_natt_keepalive()
5100 ip->ip_p = IPPROTO_UDP; in ipsec_fill_offload_frame()
H A Dah_input.c512 ip->ip_p = (u_char)nxt; in ah4_input()
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c230 pkt->pkt_flow_ip_proto = iph->ip_p; in flow_pkt_classify()
/xnu-8019.80.24/tests/
H A Dicmp_fragmented_payload.c255 pcb->inner_ip_hdr->ip_p = IPPROTO_TCP; in icmp4_pcb_set_payload()
H A Dipsec.m474 ipheader->ip_p = IPPROTO_UDP;

12