Searched refs:ip_p (Results 1 - 25 of 29) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet/
H A Dip.h103 u_char ip_p; /* protocol */ member in struct:ip
H A Dip_input.c656 if ((pr_input = ip_protox[ip->ip_p]->pr_input) == NULL) {
658 } else if (!(ip_protox[ip->ip_p]->pr_flags & PR_PROTOLOCK)) {
777 ip_proto_dispatch_in(m, hlen, ip->ip_p, inject_filter_ref);
793 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len);
1014 if (rsvp_on && ip->ip_p==IPPROTO_RSVP)
1138 if (ip->ip_p == IPPROTO_IGMP)
1167 && ip->ip_p == IPPROTO_UDP) {
1226 ip->ip_p == fp->ipq_p) {
1252 ip->ip_p == fp->ipq_p)
1381 if (ipsec_bypass == 0 && (ip_protox[ip->ip_p]
[all...]
H A Din_gif.c173 iphdr.ip_p = proto;
246 proto = ip->ip_p;
H A Dip_icmp.c224 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT &&
304 nip->ip_p = IPPROTO_ICMP;
462 printf("deliver to protocol %d\n", icp->icmp_ip.ip_p);
470 ctlfunc = ip_protox[icp->icmp_ip.ip_p]->pr_ctlinput;
1117 if (ip->ip_p != IPPROTO_ICMP)
H A Dip_output.c384 mtod(m, struct ip *)->ip_p);
534 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len);
1773 ip->ip_src.s_addr, ip->ip_p, ip->ip_off, ip->ip_len);
2037 ip_out_cksum_stats(ip->ip_p, ip_len - offset);
2060 m->m_len, offset + ip_offset, ip->ip_p);
2177 ip_offset + offsetof(struct ip, ip_sum), ip->ip_p);
3147 if (ifa == NULL && ip->ip_p != IPPROTO_UDP &&
3148 ip->ip_p != IPPROTO_TCP && ipforwarding) {
H A Dip_encap.c180 proto = ip->ip_p;
H A Draw_ip.c216 if (inp->inp_ip_p && (inp->inp_ip_p != ip->ip_p))
394 ip->ip_p = inp->inp_ip_p;
H A Dtcp_lro.c729 if (ip_hdr->ip_p != IPPROTO_TCP) {
770 ip_proto_dispatch_in_wrapper(m, ip_hdr->ip_hl << 2, ip_hdr->ip_p);
H A Dip_mroute.c1108 if (rsvpdebug && ip->ip_p == IPPROTO_RSVP) {
1119 if (rsvpdebug && ip->ip_p == IPPROTO_RSVP) {
1898 if (ip->ip_p == IPPROTO_UDP) {
H A Dip_compat.h572 __u8 ip_p;
H A Din_dhcp.c188 pkt->ip.ip_p = IPPROTO_UDP;
H A Dip_fw2.c1172 switch (ip->ip_p) {
1213 len = snprintf(SNPARGS(proto, 0), "P:%d %s", ip->ip_p,
1751 ip->ip_p = IPPROTO_TCP;
2032 proto = args->fwa_id.proto = ip->ip_p;
H A Digmp.c2426 ip->ip_p = IPPROTO_IGMP;
3771 ip->ip_p = IPPROTO_IGMP;
H A Dtcp_subr.c515 ip->ip_p = IPPROTO_TCP;
737 htons((u_short)(tlen - sizeof(struct ip) + ip->ip_p)));
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_udp.h112 u_char ip_p; /* protocol */ member in struct:ip
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_output.c283 ahdr->ah_nxt = ip->ip_p;
293 ahdr->ah_nxt = ip->ip_p;
321 ip->ip_p = IPPROTO_AH;
H A Desp_input.c155 ip->ip_p = IPPROTO_ESP;
205 if (ip->ip_p != IPPROTO_ESP &&
206 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) {
426 if (ip->ip_p == IPPROTO_UDP) {
620 ip->ip_p = nxt;
H A Desp_output.c405 if (ip->ip_p != IPPROTO_UDP) {
847 return esp_output(m, &ip->ip_p, m->m_next, AF_INET, sav);
H A Dipcomp_input.c203 ip->ip_p = nxt;
H A Dipcomp_output.c361 return ipcomp_output(m, &ip->ip_p, m->m_next, AF_INET, sav);
H A Dipsec.c1041 nxt = ip.ip_p;
2304 ip->ip_p = IPPROTO_IPIP;
2397 ip->ip_p = IPPROTO_IPIP;
2570 ip->ip_p = IPPROTO_IPV6;
3060 if (ip->ip_p == IPPROTO_UDP) {
4442 ip->ip_p = IPPROTO_UDP;
H A Dah_input.c574 ip->ip_p = nxt;
/darwin-on-arm/xnu/bsd/net/
H A Dif_stf.c597 ip->ip_p = IPPROTO_IPV6;
754 proto = ip->ip_p;
H A Dpf_norm.c438 key->fr_p = ip->ip_p;
534 (*frag)->fr_p = frent->fr_ip->ip_p;
733 (*frag)->fr_p = h->ip_p;
1552 else if (r->proto && r->proto != h->ip_p)
H A Dif_bond.c1382 #define IP_SRC_OFFSET (offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p))
1383 #define IP_DST_OFFSET (offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p))
1391 u_char ip_p; local
1396 offset = offsetof(struct ip, ip_p) + sizeof(struct ether_header);
1402 ip_p = *data;
1421 return (ntohl(ip_dst.s_addr) ^ ntohl(ip_src.s_addr) ^ ((uint32_t)ip_p));

Completed in 131 milliseconds

12