Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/cmd/ipf/lib/common/
H A Dipft_tx.c230 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 Dprintpacket.c53 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 Dipft_ef.c95 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 Dipft_td.c145 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 Dping_aux.c303 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 Dip_ipsec_pxy.c181 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 Dip_raudio_pxy.c293 swp = ip->ip_p;
297 ip->ip_p = IPPROTO_UDP;
351 ip->ip_p = swp;
H A Dip_pptp_pxy.c184 p = ip->ip_p;
201 ip->ip_p = IPPROTO_GRE;
244 ip->ip_p = p;
H A Dip_h323_pxy.c298 newip.ip_p = IPPROTO_UDP;
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/traceroute/
H A Dtraceroute_aux.c124 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 Dmac_ipv4.c170 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 Dipv4.c769 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 Dipmon_y.y520 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 Dipmon.c1116 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 Dipftest.c785 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 Dip_var.h75 uchar_t ip_p; member
H A Dip.h55 uchar_t ip_p; /* protocol */ member
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c70 #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 Dspppcomp.c451 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 Dsnoop_ip.c132 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 Dsnoop_icmp.c116 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 Drge_rxtx.c589 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 Dmyri10ge_lro.c153 if (ip->ip_p != IPPROTO_TCP) in myri10ge_lro_rx()
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/ilbd/ilb/
H A Dilb_probe.c386 if (iph->ip_p != IPPROTO_UDP) in check_icmp_unreach_v4()
/titanic_41/usr/src/uts/common/inet/ipf/
H A Dip_fil_solaris.c1167 ip->ip_p = IPPROTO_TCP;
1387 ip->ip_p = IPPROTO_ICMP;
2585 fin->fin_ip->ip_p = IPPROTO_ICMP;

12