| /freebsd-12-stable/sbin/ipf/ipsend/ |
| D | ipsend.c | 80 ip->ip_p = IPPROTO_ICMP; in do_icmp() 194 if (ip->ip_p) in main() 197 ip->ip_p); in main() 222 if (ip->ip_p) in main() 225 ip->ip_p); in main() 229 ip->ip_p = p->p_proto; in main() 237 if (ip->ip_p) in main() 240 ip->ip_p); in main() 243 ip->ip_p = IPPROTO_TCP; in main() 248 if (ip->ip_p) in main() [all …]
|
| D | resend.c | 48 printf("ttl %d p %d src %s", ip->ip_ttl, ip->ip_p, in dumppacket() 50 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 53 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in dumppacket() 55 if (ip->ip_p == IPPROTO_TCP) { in dumppacket()
|
| D | ip.c | 257 ip->ip_p = IPPROTO_TCP; in send_tcp() 258 ip2->ip_p = ip->ip_p; in send_tcp() 300 ti->ti_pr = ip->ip_p; in send_udp() 340 switch (ip->ip_p)
|
| D | iptests.c | 114 ip->ip_p = IPPROTO_UDP; in ip_test1() 304 ip->ip_p = IPPROTO_ICMP; in ip_test1() 335 ip->ip_p = IPPROTO_ICMP; in ip_test1() 375 ip->ip_p = IPPROTO_ICMP; in ip_test1() 478 ip->ip_p = IPPROTO_IP; 559 ip->ip_p = IPPROTO_ICMP; in ip_test3() 755 ip->ip_p = IPPROTO_UDP; in ip_test4() 1258 ip->ip_p = IPPROTO_UDP; in ip_test6()
|
| /freebsd-12-stable/sbin/ipf/libipf/ |
| D | ipft_tx.c | 215 ip->ip_p = IPPROTO_TCP; in parseline() 219 ip->ip_p = IPPROTO_UDP; in parseline() 223 ip->ip_p = IPPROTO_ICMP; in parseline() 229 ip->ip_p = atoi(*cpp); in parseline() 232 ip->ip_p = IPPROTO_IP; in parseline() 236 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 246 if (ip->ip_p == IPPROTO_TCP) { in parseline() 256 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) { in parseline() 269 if (ip->ip_p == IPPROTO_TCP) { in parseline() 293 } else if (*cpp && ip->ip_p == IPPROTO_ICMP) { in parseline() [all …]
|
| D | printpacket.c | 74 IP_HL(ip) << 2, ip->ip_p); in printpacket() 79 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 84 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) in printpacket() 86 if ((ip->ip_p == IPPROTO_TCP) && (tcp->th_flags != 0)) { in printpacket()
|
| /freebsd-12-stable/sys/netinet/libalias/ |
| D | alias.c | 274 struct ip *pip, u_char ip_p, u_short *ip_sum); 276 struct in_addr ip_dst, u_char ip_p, u_short *ip_sum, 350 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2() 354 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasIn2() 358 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasIn2() 367 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2() 396 } else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasIn2() 539 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2() 543 else if (ip->ip_p == IPPROTO_TCP) in IcmpAliasOut2() 547 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasOut2() [all …]
|
| /freebsd-12-stable/sbin/ipf/iplang/ |
| D | iplang_y.y | 844 ip->ip_p = pr->p_proto; 846 if (!(ip->ip_p = atoi(*arg))) 946 if ((ip->ip_p) && (ip->ip_p != IPPROTO_TCP)) { in new_tcpheader() 947 fprintf(stderr, "protocol %d specified with TCP!\n", ip->ip_p); in new_tcpheader() 950 ip->ip_p = IPPROTO_TCP; in new_tcpheader() 963 if (ip->ip_p == IPPROTO_UDP) { in set_tcpsport() 982 if (ip->ip_p == IPPROTO_UDP) { in set_tcpdport() 1182 if ((ip->ip_p) && (ip->ip_p != IPPROTO_UDP)) { in new_udpheader() 1183 fprintf(stderr, "protocol %d specified with UDP!\n", ip->ip_p); in new_udpheader() 1186 ip->ip_p = IPPROTO_UDP; in new_udpheader() [all …]
|
| /freebsd-12-stable/sys/netpfil/ipfilter/netinet/ |
| D | ip_ipsec_pxy.c | 217 p = ip->ip_p; in ipf_p_ipsec_new() 218 ip->ip_p = IPPROTO_ESP; in ipf_p_ipsec_new() 248 ip->ip_p = p & 0xff; in ipf_p_ipsec_new() 277 p = ip->ip_p; in ipf_p_ipsec_inout() 285 ip->ip_p = IPPROTO_ESP; in ipf_p_ipsec_inout() 331 ip->ip_p = p; in ipf_p_ipsec_inout()
|
| D | ip_raudio_pxy.c | 261 swp = ip->ip_p; in ipf_p_raudio_in() 265 ip->ip_p = IPPROTO_UDP; in ipf_p_raudio_in() 328 ip->ip_p = swp; in ipf_p_raudio_in()
|
| D | ip_pptp_pxy.c | 200 p = ip->ip_p; in ipf_p_pptp_donatstate() 217 ip->ip_p = IPPROTO_GRE; in ipf_p_pptp_donatstate() 264 ip->ip_p = p; in ipf_p_pptp_donatstate()
|
| /freebsd-12-stable/stand/libsa/ |
| D | ip.c | 115 ip->ip_p = proto; /* char */ in sendip() 232 ip->ip_p != proto) { in readipv4() 236 ip->ip_v, ip->ip_p); in readipv4() 295 ipr->ip_proto == ip->ip_p) in readipv4() 309 ipr->ip_proto = ip->ip_p; in readipv4()
|
| /freebsd-12-stable/sbin/natd/ |
| D | icmp.c | 59 if (failedDgram->ip_p == IPPROTO_ICMP) in SendNeedFragIcmp() 99 ip->ip_p = IPPROTO_ICMP; in SendNeedFragIcmp()
|
| D | natd.c | 560 switch (ip->ip_p) { in DoGlobal() 574 printf ("[%d] ", ip->ip_p); in DoGlobal() 699 switch (ip->ip_p) { in DoAliasing() 713 printf ("[%d] ", ip->ip_p); in DoAliasing() 853 switch (ip->ip_p) { in FormatPacket() 882 sprintf (buf, "[%d] %s -> %s ", ip->ip_p, src, dst); in FormatPacket()
|
| /freebsd-12-stable/tests/sys/netinet/libalias/ |
| D | util.c | 104 p->ip_p = protocol; in ip_packet() 117 p->ip_p = IPPROTO_UDP; in set_udp()
|
| D | 3_natin.c | 272 p->ip_p = 253; /* new flows */ 276 p->ip_p = 252; /* new flows */ 282 p->ip_p = 251; /* new flows */ 289 p->ip_p = 250; /* new flows */ 292 p->ip_p = 249; /* new flows */
|
| /freebsd-12-stable/sys/netipsec/ |
| D | udpencap.c | 149 ip->ip_p = IPPROTO_ESP; in udp_ipsec_input() 150 off = offsetof(struct ip, ip_p); in udp_ipsec_input() 241 ip->ip_p = IPPROTO_UDP; in udp_ipsec_output()
|
| /freebsd-12-stable/contrib/tcpdump/ |
| D | print-icmp.c | 371 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print() 375 dp->icmp_ip.ip_p); in icmp_print() 379 ND_TCHECK(dp->icmp_ip.ip_p); in icmp_print() 385 switch (oip->ip_p) { in icmp_print() 405 oip->ip_p, dport); in icmp_print()
|
| D | print-ip.c | 640 tok2str(ipproto_values,"unknown",ipds->ip->ip_p), in ip_print() 641 ipds->ip->ip_p)); in ip_print() 671 ipds->nh = ipds->ip->ip_p; in ip_print() 695 if (!ndo->ndo_nflag && (p_name = netdb_protoname(ipds->ip->ip_p)) != NULL) in ip_print() 698 ND_PRINT((ndo, " ip-proto-%d", ipds->ip->ip_p)); in ip_print()
|
| D | ip.h | 64 nd_uint8_t ip_p; /* protocol */ member
|
| /freebsd-12-stable/sys/netinet/ |
| D | ip_input.c | 437 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_direct_input() 442 (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p); in ip_direct_input() 650 if (V_rsvp_on && ip->ip_p==IPPROTO_RSVP) in ip_input() 766 if (ip->ip_p == IPPROTO_IGMP) in ip_input() 826 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_input() 836 (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p); in ip_input()
|
| D | ip_icmp.c | 240 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && in icmp_error() 253 if (oip->ip_p == IPPROTO_TCP) { in icmp_error() 277 } else if (oip->ip_p == IPPROTO_SCTP) { in icmp_error() 384 nip->ip_p = IPPROTO_ICMP; in icmp_error() 544 printf("deliver to protocol %d\n", icp->icmp_ip.ip_p); in icmp_input() 569 ctlfunc = inetsw[ip_protox[icp->icmp_ip.ip_p]].pr_ctlinput; in icmp_input()
|
| /freebsd-12-stable/sys/net/ |
| D | slcompress.c | 405 ip->ip_p = cs->cs_id; in sl_compress_tcp() 471 if (ip->ip_p >= MAX_STATES) in sl_uncompress_tcp_core() 473 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp_core() 475 ip->ip_p = IPPROTO_TCP; in sl_uncompress_tcp_core()
|
| /freebsd-12-stable/usr.sbin/ppp/ |
| D | slcompress.c | 425 ip->ip_p = cs->cs_id; in sl_compress_tcp() 446 if (ip->ip_p > max_state) in sl_uncompress_tcp() 448 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp() 450 ip->ip_p = IPPROTO_TCP; in sl_uncompress_tcp()
|
| /freebsd-12-stable/sbin/ipf/ipmon/ |
| D | ipmon_y.y | 514 if (ip->ip_p != IPPROTO_UDP && in check_action() 515 ip->ip_p != IPPROTO_TCP) { in check_action() 541 if (a->ac_proto != ip->ip_p) { in check_action() 586 if (ip->ip_p != IPPROTO_UDP && in check_action() 587 ip->ip_p != IPPROTO_TCP) { in check_action()
|