Home
last modified time | relevance | path

Searched refs:icmp_type (Results 1 – 25 of 37) sorted by relevance

12

/netbsd-src/sbin/routed/
H A Drdisc.c52 u_int8_t icmp_type; /* type of message */ member
66 u_int8_t icmp_type; /* type of message */ member
129 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in trace_rdisc()
809 u.ad.icmp_type = ICMP_ROUTERADVERT; in send_adv()
891 u.so.icmp_type = ICMP_ROUTERSOLICIT; in rdisc_sol()
924 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in ck_icmp()
926 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { in ck_icmp()
1025 switch (p->icmp.icmp_type) { in read_d()
/netbsd-src/external/bsd/ipf/dist/ipsend/
H A Diptests.c612 icp->icmp_type = i;
617 icp->icmp_type = 255;
628 icp->icmp_type = 3;
641 icp->icmp_type = 4;
664 icp->icmp_type = 5;
688 icp->icmp_type = ict1[i];
717 icp->icmp_type = 12;
747 icp->icmp_type = ict1[i];
752 i * 4, icp->icmp_type);
757 i * 4 + 1, icp->icmp_type);
[all …]
H A Dipsend.c116 ic->icmp_type = atoi(args);
118 if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ','))
/netbsd-src/sys/netinet/
H A Dip_icmp.c282 if (!ICMP_INFOTYPE(oicp->icmp_type)) { in icmp_error()
353 icp->icmp_type = type; in icmp_error()
453 if (icp->icmp_type > ICMP_MAXTYPE) in _icmp_input()
455 ICMP_STATINC(ICMP_STAT_INHIST + icp->icmp_type); in _icmp_input()
458 switch (icp->icmp_type) { in _icmp_input()
555 icp->icmp_type = ICMP_ECHOREPLY; in _icmp_input()
568 icp->icmp_type = ICMP_TSTAMPREPLY; in _icmp_input()
603 icp->icmp_type = ICMP_MASKREPLY; in _icmp_input()
616 icps[ICMP_STAT_OUTHIST + icp->icmp_type]++; in _icmp_input()
H A Dip_icmp.h54 uint8_t icmp_type; /* type of message, see below */ member
254 static const char *icmp_type[] = { variable
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_parse.y189 %type <num> maybe_not opt_stateful icmp_type table_type
841 : ICMPTYPE icmp_type
845 | ICMPTYPE icmp_type CODE number
849 | ICMPTYPE icmp_type CODE IDENTIFIER
854 | ICMPTYPE icmp_type CODE VAR_ID
884 icmp_type
H A Dnpf_build.c365 int *icmp_type, *icmp_code; in npfctl_build_proto_block() local
368 icmp_type = npfvar_get_data(popts, NPFVAR_ICMP, 0); in npfctl_build_proto_block()
370 npfctl_bpf_icmp(ctx, *icmp_type, *icmp_code); in npfctl_build_proto_block()
H A Dnpf_data.c500 for (ul = 0; icmp_type[ul]; ul++) in npfctl_icmptype()
501 if (strcmp(icmp_type[ul], type) == 0) in npfctl_icmptype()
/netbsd-src/external/mpl/dhcp/dist/common/
H A Dicmp.c156 icmp.icmp_type = ICMP_ECHO;
248 if (icfrom -> icmp_type != ICMP_ECHOREPLY) {
/netbsd-src/usr.sbin/timed/timed/
H A Dmeasure.c130 oicp.icmp_type = ICMP_TSTAMP; in measure()
210 if (icp.icmp_type != ICMP_TSTAMPREPLY in measure()
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dipft_tx.c305 ic->icmp_type = geticmptype(AF_INET, *cpp);
310 if (ic->icmp_type == ICMP_ECHO ||
311 ic->icmp_type == ICMP_ECHOREPLY)
/netbsd-src/external/bsd/ipf/dist/tools/
H A Dipmon.c72 typedef struct icmp_type { struct
1261 icmpname6(ic.icmp_type, ic.icmp_code)); in print_ipflog()
1269 icmpname(ic.icmp_type, ic.icmp_code)); in print_ipflog()
1270 if (ic.icmp_type == ICMP_UNREACH || in print_ipflog()
1271 ic.icmp_type == ICMP_SOURCEQUENCH || in print_ipflog()
1272 ic.icmp_type == ICMP_PARAMPROB || in print_ipflog()
1273 ic.icmp_type == ICMP_REDIRECT || in print_ipflog()
1274 ic.icmp_type == ICMP_TIMXCEED) { in print_ipflog()
1314 icmp.icmp_type, icmp.icmp_code); in print_ipflog()
/netbsd-src/dist/pf/sbin/pfctl/
H A Dpfctl_parser.c82 static const struct icmptypeent icmp_type[] = { variable
253 for (i=0; i < (sizeof (icmp_type) / sizeof(icmp_type[0])); in geticmptypebynumber()
255 if (type == icmp_type[i].type) in geticmptypebynumber()
256 return (&icmp_type[i]); in geticmptypebynumber()
274 for (i=0; i < (sizeof (icmp_type) / sizeof(icmp_type[0])); in geticmptypebyname()
276 if (!strcmp(w, icmp_type[i].name)) in geticmptypebyname()
277 return (&icmp_type[i]); in geticmptypebyname()
/netbsd-src/sys/netmpls/
H A Dmpls_ttl.c195 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type)) in mpls_icmp_error()
261 icp->icmp_type = type; in mpls_icmp_error()
/netbsd-src/sys/net/npf/
H A Dnpf_alg_icmp.c217 ret = npfa_icmp4_inspect(ic->icmp_type, enpc, &hasqid); in npfa_icmp_inspect()
286 ret = npfa_icmp4_inspect(ic->icmp_type, &enpc, &hasqid); in npfa_icmp_conn()
/netbsd-src/tests/net/icmp/
H A Dt_ping.c165 icmp->icmp_type = ICMP_ECHO; in doping()
407 icmp->icmp_type = ICMP_ECHO; in ATF_TC_BODY()
/netbsd-src/sbin/ping/
H A Dping.c911 opack_icmp.icmp_type = ICMP_ECHOREPLY; in pinger()
941 opack_icmp.icmp_type = ICMP_ECHO; in pinger()
1095 if (icp->icmp_type == ICMP_ECHOREPLY in pr_pack()
1558 switch (icp->icmp_type ) { in pr_icmph()
1749 (void)printf("Bad ICMP type: %d", icp->icmp_type); in pr_icmph()
1860 if (icp2.icmp_type == ICMP_ECHO) { in pr_retip()
/netbsd-src/tests/net/bpfilter/
H A Dt_bpfilter.c81 sizeof(struct ip) + offsetof(struct icmp, icmp_type)),
195 icmp->icmp_type = ICMP_ECHO; in pingtest()
/netbsd-src/external/mpl/dhcp/dist/includes/netinet/
H A Dip_icmp.h54 u_int8_t icmp_type; /* type of message, see below */ member
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/
H A Dip_compat.h117 # define icmp_type type macro
/netbsd-src/tests/net/config/
H A Dnetconfig.c217 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
/netbsd-src/tests/net/net/
H A Dt_pktinfo_send.c500 icmp.icmp_type = ICMP_ECHOREPLY; /* against confuse REQ with REPLY */ in ATF_TC_BODY()
531 icmp.icmp_type = ICMP_ECHOREPLY; /* against confuse REQ with REPLY */ in ATF_TC_BODY()
/netbsd-src/regress/sys/net/frag/
H A Dip4_frag_1.c121 icmp->icmp_type = ICMP_ECHO; in create_ip_packet()
/netbsd-src/sys/kern/
H A Duipc_mbufdebug.c624 (*pr)("ICMP: Type = %u(", icmphdr.icmp_type); in m_examine_icmp()
625 switch (icmphdr.icmp_type) { in m_examine_icmp()
/netbsd-src/usr.bin/netstat/
H A Dinet.c718 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i], in icmp_stats()
735 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i], in icmp_stats()

12