Home
last modified time | relevance | path

Searched refs:IPPROTO_ICMP (Results 1 – 25 of 64) sorted by relevance

123

/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip/
H A Dtst.ipv4localicmp.ksh52 args[4]->ipv4_protocol == IPPROTO_ICMP/
63 args[4]->ipv4_protocol == IPPROTO_ICMP/
H A Dtst.ipv4remoteicmp.ksh62 args[4]->ipv4_protocol == IPPROTO_ICMP/
73 args[4]->ipv4_protocol == IPPROTO_ICMP/
/freebsd-12.1/contrib/tcpdump/
H A Dipproto.h47 #ifndef IPPROTO_ICMP
48 #define IPPROTO_ICMP 1 /* control message protocol */ macro
H A Dprint-pfsync.c366 } else if (proto != IPPROTO_ICMP && src->state < PFOTHERS_NSTATES && in print_src_dst()
389 if (s->proto == IPPROTO_ICMP || s->proto == IPPROTO_ICMPV6) in print_state()
396 if (s->proto == IPPROTO_ICMP || s->proto == IPPROTO_ICMPV6) in print_state()
H A Dipproto.c27 { IPPROTO_ICMP, "ICMP" },
/freebsd-12.1/usr.bin/systat/
H A Dicmp.c228 name[2] = IPPROTO_ICMP; in initicmp()
256 name[2] = IPPROTO_ICMP; in reseticmp()
275 name[2] = IPPROTO_ICMP; in fetchicmp()
/freebsd-12.1/sbin/natd/
H A Dicmp.c59 if (failedDgram->ip_p == IPPROTO_ICMP) in SendNeedFragIcmp()
99 ip->ip_p = IPPROTO_ICMP; in SendNeedFragIcmp()
H A Dnatd.c343 icmpSock = socket (AF_INET, SOCK_RAW, IPPROTO_ICMP); in main()
569 case IPPROTO_ICMP: in DoGlobal()
708 case IPPROTO_ICMP: in DoAliasing()
872 case IPPROTO_ICMP: in FormatPacket()
/freebsd-12.1/sbin/pfctl/
H A Dpf_print_state.c230 if (s->proto == IPPROTO_ICMP || s->proto == IPPROTO_ICMPV6) in print_state()
237 if (s->proto == IPPROTO_ICMP || s->proto == IPPROTO_ICMPV6) in print_state()
299 } else if (s->proto != IPPROTO_ICMP && src->state < PFOTHERS_NSTATES && in print_state()
302 } else if (s->proto != IPPROTO_ICMP && s->proto != IPPROTO_ICMPV6 && in print_state()
/freebsd-12.1/cddl/lib/libdtrace/
H A Dip.d130 #pragma D binding "1.5" IPPROTO_ICMP
131 inline short IPPROTO_ICMP = 1; variable
179 proto == IPPROTO_ICMP ? "ICMP" :
/freebsd-12.1/sys/netinet/
H A Din_proto.c197 .pr_protocol = IPPROTO_ICMP,
327 SYSCTL_NODE(_net_inet, IPPROTO_ICMP, icmp, CTLFLAG_RW, 0, "ICMP");
/freebsd-12.1/contrib/ipfilter/lib/
H A Dipft_tx.c230 ip->ip_p = IPPROTO_ICMP;
300 } else if (*cpp && ip->ip_p == IPPROTO_ICMP) {
333 else if (ip->ip_p == IPPROTO_ICMP)
H A Dprintstate.c81 } else if (sp->is_p == IPPROTO_ICMP in printstate()
/freebsd-12.1/sys/netinet/libalias/
H A Dalias.c369 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasIn2()
406 } else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasIn2()
559 else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasOut2()
596 } else if (ip->ip_p == IPPROTO_ICMP) { in IcmpAliasOut2()
1370 case IPPROTO_ICMP: in LibAliasInLocked()
1520 case IPPROTO_ICMP: in LibAliasOutLocked()
1601 else if (pip->ip_p == IPPROTO_ICMP) in LibAliasUnaliasOut()
1643 } else if (pip->ip_p == IPPROTO_ICMP) { in LibAliasUnaliasOut()
/freebsd-12.1/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c493 ip->ip_p = (proto == IPPROTO_ICMPV6) ? IPPROTO_ICMP: proto; in nat64_init_ip4hdr()
750 if (ip->ip_p == IPPROTO_ICMP) { in nat64_icmp_reflect()
793 oip->ip_p = IPPROTO_ICMP; in nat64_icmp_reflect()
1058 eip6->ip6_nxt = (ip.ip_p == IPPROTO_ICMP) ? IPPROTO_ICMPV6: ip.ip_p; in nat64_icmp_translate()
1089 case IPPROTO_ICMP: in nat64_icmp_translate()
1209 if (proto == IPPROTO_ICMP && ip_off != 0) { in nat64_do_handle_ip4()
1236 ip6.ip6_nxt = (proto == IPPROTO_ICMP) ? IPPROTO_ICMPV6: proto; in nat64_do_handle_ip4()
1257 case IPPROTO_ICMP: in nat64_do_handle_ip4()
H A Dnat64lsn_control.c625 case IPPROTO_ICMP: in nat64lsn_next_pgidx()
632 idx->proto = IPPROTO_ICMP; in nat64lsn_next_pgidx()
654 case IPPROTO_ICMP: in nat64lsn_get_pg_byidx()
724 if (idx.index != 0 && idx.proto != IPPROTO_ICMP && in nat64lsn_states_v1()
738 idx.proto = IPPROTO_ICMP; in nat64lsn_states_v1()
H A Dnat64lsn.c348 case IPPROTO_ICMP: in nat64lsn_get_state6to4()
470 case IPPROTO_ICMP: in inspect_icmp_mbuf()
528 case IPPROTO_ICMP: in nat64lsn_get_state4to6()
574 case IPPROTO_ICMP: in nat64lsn_translate4()
680 case IPPROTO_ICMP: in nat64lsn_check_state()
792 case IPPROTO_ICMP: in nat64lsn_expire_portgroups()
1165 case IPPROTO_ICMP: in nat64lsn_alloc_pg()
1464 proto = IPPROTO_ICMP; in nat64lsn_translate6()
/freebsd-12.1/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c105 int mib[4] = { CTL_NET, PF_INET, IPPROTO_ICMP, in router()
H A Dt_ping.c154 RL(s = rump_sys_socket(PF_INET, SOCK_RAW, IPPROTO_ICMP)); in doping()
388 ip->ip_p = IPPROTO_ICMP; in ATF_TC_BODY()
/freebsd-12.1/tools/tools/netmap/
H A Dpkt_hash.c185 case IPPROTO_ICMP: in decode_ip_n_hash()
260 case IPPROTO_ICMP: in decode_ipv6_n_hash()
/freebsd-12.1/contrib/netbsd-tests/net/config/
H A Dnetconfig.c198 s = rump_sys_socket(PF_INET, SOCK_RAW, IPPROTO_ICMP); in netcfg_rump_pingtest()
/freebsd-12.1/contrib/ipfilter/iplang/
H A Diplang_y.y692 else if (type == IPPROTO_ICMP)
1497 if ((ip->ip_p) && (ip->ip_p != IPPROTO_ICMP)) { in new_icmpheader()
1502 ip->ip_p = IPPROTO_ICMP; in new_icmpheader()
1503 icmp = (icmphdr_t *)new_header(IPPROTO_ICMP); in new_icmpheader()
1767 if (aip->ah_p == IPPROTO_ICMP) in end_icmp()
/freebsd-12.1/sbin/ping/
H A Dping.c279 ssend = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in main()
281 srecv = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in main()
713 ip.ip_p = IPPROTO_ICMP; in main()
1295 (oip.ip_p == IPPROTO_ICMP) && in pr_pack()
/freebsd-12.1/contrib/ipfilter/ipsend/
H A Diptests.c315 ip->ip_p = IPPROTO_ICMP;
346 ip->ip_p = IPPROTO_ICMP;
386 ip->ip_p = IPPROTO_ICMP;
574 ip->ip_p = IPPROTO_ICMP;
/freebsd-12.1/usr.sbin/timed/timed/
H A Dmeasure.c90 sock_raw = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); in measure()

123