/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | ipft_tx.c | 230 ip->ip_p = IPPROTO_TCP; 234 ip->ip_p = IPPROTO_UDP; 238 ip->ip_p = IPPROTO_ICMP; 244 ip->ip_p = atoi(*cpp); 247 ip->ip_p = IPPROTO_IP; 251 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 261 if (ip->ip_p == IPPROTO_TCP) { 271 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { 284 if (*cpp && ip->ip_p == IPPROTO_TCP) { 297 } else if (*cpp && ip->ip_p == IPPROTO_ICMP) { [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)
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ping/ |
H A D | ping_aux.c | 303 if (ip->ip_p == 0) { in check_reply() 336 ip->ip_p == IPPROTO_UDP && in check_reply() 461 Printf(" for %s from %s", pr_protocol(ip->ip_p), in check_reply() 464 if (ip->ip_p == IPPROTO_TCP || in check_reply() 465 ip->ip_p == IPPROTO_UDP) { in check_reply() 719 Printf(" for %s from %s", pr_protocol(ip->ip_p), in check_reply() 727 if ((ip->ip_p == IPPROTO_TCP || in check_reply() 728 ip->ip_p == IPPROTO_UDP) && in check_reply() 780 Printf(" for %s from %s", pr_protocol(ip->ip_p), in check_reply() 788 if ((ip->ip_p == IPPROTO_TCP || in check_reply() [all …]
|
/titanic_41/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 | 298 newip.ip_p = IPPROTO_UDP;
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute_aux.c | 124 outip->ip_p = IPPROTO_ICMP; in set_buffers() 131 outip->ip_p = IPPROTO_UDP; in set_buffers() 380 hip->ip_p == IPPROTO_ICMP && in check_reply() 394 hip->ip_p == IPPROTO_UDP && in check_reply()
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/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 | 1116 p = (u_short)ip->ip_p; 1186 proto = getproto(ipc->ip_p); 1189 ((ipc->ip_p == IPPROTO_TCP) || 1190 (ipc->ip_p == IPPROTO_UDP))) { 1204 (ipc->ip_p == IPPROTO_ICMP)) {
|
H A D | ipftest.c | 785 switch (ip->ip_p) 802 *(u_short *)csump = fr_cksum(m, ip, ip->ip_p, hdr);
|
/titanic_41/usr/src/uts/common/netinet/ |
H A D | ip_var.h | 75 uchar_t ip_p; member
|
H A D | ip.h | 55 uchar_t ip_p; /* protocol */ member
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | vjcompress.c | 70 #define getip_p(bp) (((uchar_t *)bp)[offsetof(struct ip, ip_p)]) 71 #define setip_p(bp, v) (((uchar_t *)bp)[offsetof(struct ip, ip_p)] = (v)) 467 ip->ip_p = cs->cs_id; in vj_compress_tcp()
|
H A D | spppcomp.c | 451 MSG_BYTE(mp, PPP_HDRLEN+offsetof(struct ip, ip_p)) == in spppcomp_outpkt() 525 offsetof(struct ip, ip_p); in spppcomp_outpkt() 530 ((struct ip *)srcp)->ip_p; in spppcomp_outpkt()
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/io/myri10ge/drv/ |
H A D | myri10ge_lro.c | 153 if (ip->ip_p != IPPROTO_TCP) in myri10ge_lro_rx()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/ |
H A D | ilb_probe.c | 386 if (iph->ip_p != IPPROTO_UDP) in check_icmp_unreach_v4()
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | ip_fil_solaris.c | 1167 ip->ip_p = IPPROTO_TCP; 1387 ip->ip_p = IPPROTO_ICMP; 2585 fin->fin_ip->ip_p = IPPROTO_ICMP;
|