| /src/sys/netinet/ |
| ip_icmp.h | 54 uint8_t icmp_type; /* type of message, see below */ member in struct:icmp 254 static const char *icmp_type[] = { variable
|
| ip_icmp.c | 282 if (!ICMP_INFOTYPE(oicp->icmp_type)) { 350 * Fill in the fields of the ICMP header: icmp_type, icmp_code 353 icp->icmp_type = type; 453 if (icp->icmp_type > ICMP_MAXTYPE) 455 ICMP_STATINC(ICMP_STAT_INHIST + icp->icmp_type); 458 switch (icp->icmp_type) { 555 icp->icmp_type = ICMP_ECHOREPLY; 568 icp->icmp_type = ICMP_TSTAMPREPLY; 603 icp->icmp_type = ICMP_MASKREPLY; 616 icps[ICMP_STAT_OUTHIST + icp->icmp_type]++ [all...] |
| /src/usr.sbin/npf/npfctl/ |
| npf_parse.y | 199 %type <num> maybe_not opt_stateful icmp_type table_type 915 : ICMPTYPE icmp_type 919 | ICMPTYPE icmp_type CODE number 923 | ICMPTYPE icmp_type CODE IDENTIFIER 928 | ICMPTYPE icmp_type CODE VAR_ID 958 icmp_type
|
| npf_data.c | 546 for (ul = 0; icmp_type[ul]; ul++) 547 if (strcmp(icmp_type[ul], type) == 0)
|
| npf_build.c | 397 int *icmp_type, *icmp_code; local 400 icmp_type = npfvar_get_data(popts, NPFVAR_ICMP, 0); 402 npfctl_bpf_icmp(ctx, *icmp_type, *icmp_code);
|
| npf_bpf_comp.c | 846 const u_int type_off = offsetof(struct icmp, icmp_type);
|
| /src/sbin/routed/ |
| rdisc.c | 52 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) {
|
| /src/usr.sbin/timed/timed/ |
| measure.c | 130 oicp.icmp_type = ICMP_TSTAMP; 210 if (icp.icmp_type != ICMP_TSTAMPREPLY
|
| /src/sys/net/npf/ |
| npf_alg_icmp.c | 217 ret = npfa_icmp4_inspect(ic->icmp_type, enpc, &hasqid); 286 ret = npfa_icmp4_inspect(ic->icmp_type, &enpc, &hasqid);
|
| /src/sys/netmpls/ |
| mpls_ttl.c | 195 !ICMP_INFOTYPE(((struct icmp *)((char *)oip + oiplen))->icmp_type)) 261 icp->icmp_type = type;
|
| /src/tests/net/icmp/ |
| t_ping.c | 165 icmp->icmp_type = ICMP_ECHO; 407 icmp->icmp_type = ICMP_ECHO;
|
| /src/dist/pf/sbin/pfctl/ |
| pfctl_parser.c | 82 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]);
|
| parse.y | 4678 LOOP_THROUGH(struct node_icmp, icmp_type, icmp_types, 4753 r->type = icmp_type->type; 4754 r->code = icmp_type->code; 4770 if (icmp_type->proto && r->proto != icmp_type->proto) {
|
| /src/sbin/ping/ |
| ping.c | 912 opack_icmp.icmp_type = ICMP_ECHOREPLY; 942 opack_icmp.icmp_type = ICMP_ECHO; 1096 if (icp->icmp_type == ICMP_ECHOREPLY 1559 switch (icp->icmp_type ) { 1750 (void)printf("Bad ICMP type: %d", icp->icmp_type); 1861 if (icp2.icmp_type == ICMP_ECHO) {
|
| /src/tests/net/bpfilter/ |
| t_bpfilter.c | 81 sizeof(struct ip) + offsetof(struct icmp, icmp_type)), 195 icmp->icmp_type = ICMP_ECHO;
|
| /src/regress/sys/net/frag/ |
| ip4_frag_1.c | 121 icmp->icmp_type = ICMP_ECHO;
|
| /src/tests/net/config/ |
| netconfig.c | 217 icmp.icmp_type = ICMP_ECHO;
|
| /src/tests/net/net/ |
| t_pktinfo_send.c | 500 icmp.icmp_type = ICMP_ECHOREPLY; /* against confuse REQ with REPLY */ 531 icmp.icmp_type = ICMP_ECHOREPLY; /* against confuse REQ with REPLY */
|
| /src/sys/kern/ |
| uipc_mbufdebug.c | 639 (*pr)("ICMP: Type = %u(", icmphdr.icmp_type); 640 switch (icmphdr.icmp_type) {
|
| /src/usr.bin/netstat/ |
| inet.c | 718 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i], 735 printf("\t\t%s: %" PRIu64 "\n", icmp_type[i],
|
| /src/usr.sbin/traceroute/ |
| traceroute.c | 696 outicmp->icmp_type = ICMP_ECHO; 1433 type = icp->icmp_type;
|
| /src/sys/external/bsd/ipf/netinet/ |
| ip_state.c | 1493 switch (ic->icmp_type) 1502 is->is_icmp.ici_type = ic->icmp_type; 1513 switch (ic->icmp_type) 1519 is->is_icmp.ici_type = ic->icmp_type; 3027 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) || 3028 (ic->icmp_type == ICMP6_ECHO_REPLY)) {
|
| ip_log.c | 423 switch (icmp->icmp_type)
|
| fil.c | 1233 switch (icmp->icmp_type) 4337 if ((!rev && (icmp->icmp_type == ictype)) || 4338 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) { 4339 if (icmp->icmp_type != ICMP_ECHOREPLY) 4347 if ((!rev && (icmp->icmp_type == ictype)) || 4348 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) { 4349 if (icmp->icmp_type != ICMP6_ECHO_REPLY)
|
| ip_fil_netbsd.c | 1030 icmp->icmp_type = type;
|