Searched refs:icmp_type (Results 1 - 25 of 36) sorted by relevance

12

/netbsd-6-1-5-RELEASE/external/bsd/tcpdump/dist/
H A Dprint-icmp.c59 u_int8_t icmp_type; /* type of message, see below */ member in struct:icmp
296 u_int8_t icmp_type; member in struct:icmp_ext_t
361 switch (dp->icmp_type) {
367 dp->icmp_type == ICMP_ECHO ?
562 str = tok2str(icmp2str, "type-#%d", dp->icmp_type);
583 if (vflag >= 1 && !ICMP_INFOTYPE(dp->icmp_type)) {
596 if (vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MPLS_EXT_TYPE(dp->icmp_type)) {
/netbsd-6-1-5-RELEASE/sys/netinet/
H A Dip_icmp.h55 u_int8_t icmp_type; /* type of message, see below */ member in struct:icmp
194 static const char *icmp_type[] = { variable
H A Dip_icmp.c253 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type)) {
318 icp->icmp_type = type;
449 printf("icmp_input(type:%d, code:%d)\n", icp->icmp_type,
452 if (icp->icmp_type > ICMP_MAXTYPE)
454 ICMP_STATINC(ICMP_STAT_INHIST + icp->icmp_type);
456 switch (icp->icmp_type) {
549 icp->icmp_type = ICMP_ECHOREPLY;
562 icp->icmp_type = ICMP_TSTAMPREPLY;
587 icp->icmp_type = ICMP_MASKREPLY;
599 icps[ICMP_STAT_OUTHIST + icp->icmp_type]
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/npf/npfctl/
H A Dnpf_parse.y160 %type <num> opt_stateful, icmp_type, table_type, map_sd, map_type
684 : ICMPTYPE icmp_type
688 | ICMPTYPE icmp_type CODE NUM
692 | ICMPTYPE icmp_type CODE IDENTIFIER
697 | ICMPTYPE icmp_type CODE VAR_ID
728 icmp_type
H A Dnpf_build.c279 int *icmp_type, *icmp_code; local
280 icmp_type = npfvar_get_data(popts, NPFVAR_ICMP, 0);
282 npfctl_gennc_icmp(nc, *icmp_type, *icmp_code);
H A Dnpf_data.c457 for (ul = 0; icmp_type[ul]; ul++)
458 if (strcmp(icmp_type[ul], type) == 0)
/netbsd-6-1-5-RELEASE/dist/ipf/ipsend/
H A Diptests.c613 icp->icmp_type = i;
618 icp->icmp_type = 255;
629 icp->icmp_type = 3;
642 icp->icmp_type = 4;
665 icp->icmp_type = 5;
689 icp->icmp_type = ict1[i];
718 icp->icmp_type = 12;
748 icp->icmp_type = ict1[i];
753 i * 4, icp->icmp_type);
758 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-6-1-5-RELEASE/dist/dhcp/includes/netinet/
H A Dip_icmp.h52 u_int8_t icmp_type; /* type of message, see below */ member in struct:icmp
/netbsd-6-1-5-RELEASE/dist/dhcp/common/
H A Dicmp.c162 icmp.icmp_type = ICMP_ECHO;
254 if (icfrom -> icmp_type != ICMP_ECHOREPLY) {
/netbsd-6-1-5-RELEASE/sbin/routed/
H A Drdisc.c52 u_int8_t icmp_type; /* type of message */ member in struct:icmp_ad
66 u_int8_t icmp_type; /* type of message */ member in struct:icmp_so
129 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
809 u.ad.icmp_type = ICMP_ROUTERADVERT;
891 u.so.icmp_type = ICMP_ROUTERSOLICIT;
924 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
926 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) {
1025 switch (p->icmp.icmp_type) {
/netbsd-6-1-5-RELEASE/usr.sbin/timed/timed/
H A Dmeasure.c127 oicp.icmp_type = ICMP_TSTAMP;
207 if (icp.icmp_type != ICMP_TSTAMPREPLY
/netbsd-6-1-5-RELEASE/dist/ipf/ipsd/Celler/
H A Dip_compat.h117 # define icmp_type type macro
/netbsd-6-1-5-RELEASE/sys/net/npf/
H A Dnpf_instr.c188 if (type != ic->icmp_type) {
H A Dnpf_alg_icmp.c268 ret = npfa_icmp4_inspect(ic->icmp_type, enpc, nbuf);
326 ret = npfa_icmp4_inspect(ic->icmp_type, &enpc, nbuf);
/netbsd-6-1-5-RELEASE/tests/net/icmp/
H A Dt_ping.c156 icmp->icmp_type = ICMP_ECHO;
385 icmp->icmp_type = ICMP_ECHO;
/netbsd-6-1-5-RELEASE/sys/netmpls/
H A Dmpls_ttl.c213 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type))
276 icp->icmp_type = type;
/netbsd-6-1-5-RELEASE/dist/ipf/tools/
H A Dipmon.c104 typedef struct icmp_type { struct
1177 icmpname6(ic.icmp_type, ic.icmp_code));
1184 icmpname(ic.icmp_type, ic.icmp_code));
1185 if (ic.icmp_type == ICMP_UNREACH ||
1186 ic.icmp_type == ICMP_SOURCEQUENCH ||
1187 ic.icmp_type == ICMP_PARAMPROB ||
1188 ic.icmp_type == ICMP_REDIRECT ||
1189 ic.icmp_type == ICMP_TIMXCEED) {
1229 icmp.icmp_type, icmp.icmp_code);
/netbsd-6-1-5-RELEASE/dist/pf/sbin/pfctl/
H A Dpfctl_parser.c82 static const struct icmptypeent icmp_type[] = { variable in typeref:struct:icmptypeent
253 for (i=0; i < (sizeof (icmp_type) / sizeof(icmp_type[0]));
255 if (type == icmp_type[i].type)
256 return (&icmp_type[i]);
274 for (i=0; i < (sizeof (icmp_type) / sizeof(icmp_type[0]));
276 if (!strcmp(w, icmp_type[i].name))
277 return (&icmp_type[i]);
/netbsd-6-1-5-RELEASE/sbin/ping/
H A Dping.c850 opack_icmp.icmp_type = ICMP_ECHOREPLY;
880 opack_icmp.icmp_type = ICMP_ECHO;
1009 if (icp->icmp_type == ICMP_ECHOREPLY
1465 switch (icp->icmp_type ) {
1656 (void)printf("Bad ICMP type: %d", icp->icmp_type);
1766 if (icp2.icmp_type == ICMP_ECHO) {
/netbsd-6-1-5-RELEASE/regress/sys/net/frag/
H A Dip4_frag_1.c121 icmp->icmp_type = ICMP_ECHO;
/netbsd-6-1-5-RELEASE/tests/net/config/
H A Dnetconfig.c227 icmp.icmp_type = ICMP_ECHO;
/netbsd-6-1-5-RELEASE/dist/ipf/lib/
H A Dipft_tx.c298 ic->icmp_type = i;
/netbsd-6-1-5-RELEASE/usr.bin/netstat/
H A Dinet.c664 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i],
679 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i],
/netbsd-6-1-5-RELEASE/sys/dist/ipf/netinet/
H A Dip_state.c1265 switch (ic->icmp_type)
1268 is->is_icmp.ici_type = ic->icmp_type;
1275 is->is_icmp.ici_type = ic->icmp_type;
1286 switch (ic->icmp_type)
1292 is->is_icmp.ici_type = ic->icmp_type;
2335 type = ic->icmp_type;
2657 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) ||
2658 (ic->icmp_type == ICMP6_ECHO_REPLY)) {

Completed in 305 milliseconds

12