/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_tx.c | 228 ip->ip_p = IPPROTO_TCP; 232 ip->ip_p = IPPROTO_UDP; 236 ip->ip_p = IPPROTO_ICMP; 242 ip->ip_p = atoi(*cpp); 245 ip->ip_p = IPPROTO_IP; 249 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 259 if (ip->ip_p == IPPROTO_TCP) { 269 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 282 if (*cpp && ip->ip_p == IPPROTO_TCP) { 321 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) [all …]
|
H A D | printpacket.c | 53 printf("ip %d(%d) %d", ntohs(ip->ip_len), IP_HL(ip) << 2, ip->ip_p); 58 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 63 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) 65 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) {
|
H A D | ipft_ef.c | 95 ip->ip_p = getproto(prot); 97 switch (ip->ip_p) { 102 if (ip->ip_p == IPPROTO_TCP) 104 else if (ip->ip_p == IPPROTO_UDP)
|
H A D | ipft_td.c | 145 ip->ip_p = getproto(s); 147 switch (ip->ip_p) 153 if (ip->ip_p == IPPROTO_TCP) 155 else if (ip->ip_p == IPPROTO_UDP)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping_aux.c | 306 if (ip->ip_p == 0) { in check_reply() 339 ip->ip_p == IPPROTO_UDP && in check_reply() 464 Printf(" for %s from %s", pr_protocol(ip->ip_p), in check_reply() 467 if (ip->ip_p == IPPROTO_TCP || in check_reply() 468 ip->ip_p == IPPROTO_UDP) { in check_reply() 730 if ((ip->ip_p == IPPROTO_TCP || in check_reply() 731 ip->ip_p == IPPROTO_UDP) && in check_reply() 791 if ((ip->ip_p == IPPROTO_TCP || in check_reply() 792 ip->ip_p == IPPROTO_UDP) && in check_reply() 827 if ((ip->ip_p == IPPROTO_TCP || in check_reply() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/netinet/ |
H A D | ip_ipsec_pxy.c | 181 p = ip->ip_p; 182 ip->ip_p = IPPROTO_ESP; 209 ip->ip_p = p & 0xff; 241 p = ip->ip_p; 249 ip->ip_p = IPPROTO_ESP; 287 ip->ip_p = p;
|
H A D | ip_raudio_pxy.c | 293 swp = ip->ip_p; 297 ip->ip_p = IPPROTO_UDP; 351 ip->ip_p = swp;
|
H A D | ip_pptp_pxy.c | 184 p = ip->ip_p; 201 ip->ip_p = IPPROTO_GRE; 244 ip->ip_p = p;
|
H A D | ip_h323_pxy.c | 296 newip.ip_p = IPPROTO_UDP;
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_tcp.c | 142 if (iphp->ip_p == IPPROTO_TCP) { in sfxge_pkthdr_parse() 161 } else if (iphp->ip_p == IPPROTO_UDP) { in sfxge_pkthdr_parse() 180 } else if (iphp->ip_p == IPPROTO_SCTP) { in sfxge_pkthdr_parse()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | ip.c | 114 ip->ip_p = proto; /* char */ in sendip() 231 ip->ip_p != proto) { in readipv4() 235 ip->ip_v, ip->ip_p); in readipv4() 294 ipr->ip_proto == ip->ip_p) in readipv4() 308 ipr->ip_proto = ip->ip_p; in readipv4()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 122 outip->ip_p = IPPROTO_ICMP; in set_buffers() 129 outip->ip_p = IPPROTO_UDP; in set_buffers() 378 hip->ip_p == IPPROTO_ICMP && in check_reply() 392 hip->ip_p == IPPROTO_UDP && in check_reply()
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 769 if (!promiscuous && (iphp->ip_p == IPPROTO_ICMP)) { in ipv4_input() 778 index, ntohs(iphp->ip_id), iphp->ip_p, igp, igp->igm_mp, in ipv4_input() 795 if ((type == INETBOOT_DGRAM && iphp->ip_p != IPPROTO_UDP) || in ipv4_input() 796 (type == INETBOOT_STREAM && iphp->ip_p != IPPROTO_TCP)) { in ipv4_input() 799 "%d for socket type %d\n", index, iphp->ip_p, type); in ipv4_input() 847 ip_id, iplen, iphlen, iphp->ip_p); in ipv4_input() 888 ntohs(iphp->ip_id), iplen, iphlen, iphp->ip_p); in ipv4_input() 1008 iphp->ip_p = sockets[index].proto; in ipv4_output()
|
/illumos-gate/usr/src/uts/common/io/mac/plugins/ |
H A D | mac_ipv4.c | 170 iphp->ip_p = (uint8_t)sap; in mac_ipv4_header() 200 hdr_info->mhi_origsap = hdr_info->mhi_bindsap = iphp->ip_p; in mac_ipv4_header_info()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon_y.y | 520 if (ip->ip_p != IPPROTO_UDP && ip->ip_p != IPPROTO_TCP) 538 if (a->ac_proto != ip->ip_p) 569 if (ip->ip_p != IPPROTO_UDP && ip->ip_p != IPPROTO_TCP)
|
H A D | ipmon.c | 1120 p = (u_short)ip->ip_p; 1190 proto = getproto(ipc->ip_p); 1193 ((ipc->ip_p == IPPROTO_TCP) || 1194 (ipc->ip_p == IPPROTO_UDP))) { 1208 (ipc->ip_p == IPPROTO_ICMP)) {
|
H A D | ipftest.c | 780 switch (ip->ip_p) 797 *(u_short *)csump = fr_cksum(m, ip, ip->ip_p, hdr);
|
/illumos-gate/usr/src/uts/common/netinet/ |
H A D | ip_var.h | 74 uchar_t ip_p; member
|
H A D | ip.h | 54 uchar_t ip_p; /* protocol */ member
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 68 #define getip_p(bp) (((uchar_t *)bp)[offsetof(struct ip, ip_p)]) 69 #define setip_p(bp, v) (((uchar_t *)bp)[offsetof(struct ip, ip_p)] = (v)) 465 ip->ip_p = cs->cs_id; in vj_compress_tcp()
|
/illumos-gate/usr/src/boot/include/netinet/ |
H A D | ip.h | 67 u_char ip_p; /* protocol */ member
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ip.c | 132 getproto(ip->ip_p), in interpret_ip() 206 "Protocol = %d (%s)", ip->ip_p, in interpret_ip() 207 getproto(ip->ip_p)); in interpret_ip() 238 getproto(ip->ip_p), in interpret_ip() 245 switch (ip->ip_p) { in interpret_ip()
|
H A D | snoop_icmp.c | 116 icmp->icmp_ip.ip_p); in interpret_icmp() 126 switch (icmp->icmp_ip.ip_p) { in interpret_icmp()
|
/illumos-gate/usr/src/uts/common/io/rge/ |
H A D | rge_rxtx.c | 589 if (ip_hdr->ip_p == IPPROTO_TCP) in rge_send_copy() 592 else if (ip_hdr->ip_p == IPPROTO_UDP) in rge_send_copy()
|
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 148 if (ip->ip_p != IPPROTO_TCP) in myri10ge_lro_rx()
|