Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_tx.c228 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 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)
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ping/
H A Dping_aux.c306 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 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.c296 newip.ip_p = IPPROTO_UDP;
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c142 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 Dip.c114 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 Dtraceroute_aux.c122 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 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()
/illumos-gate/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()
/illumos-gate/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.c1120 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 Dipftest.c780 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 Dip_var.h74 uchar_t ip_p; member
H A Dip.h54 uchar_t ip_p; /* protocol */ member
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dvjcompress.c68 #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 Dip.h67 u_char ip_p; /* protocol */ member
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c148 if (ip->ip_p != IPPROTO_TCP) in myri10ge_lro_rx()

12