/netbsd-src/sbin/routed/ |
H A D | rdisc.c | 52 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 D | iptests.c | 612 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 D | ipsend.c | 116 ic->icmp_type = atoi(args); 118 if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ','))
|
/netbsd-src/sys/netinet/ |
H A D | ip_icmp.c | 282 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 D | ip_icmp.h | 54 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 D | npf_parse.y | 189 %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 D | npf_build.c | 365 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 D | npf_data.c | 500 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 D | icmp.c | 156 icmp.icmp_type = ICMP_ECHO; 248 if (icfrom -> icmp_type != ICMP_ECHOREPLY) {
|
/netbsd-src/usr.sbin/timed/timed/ |
H A D | measure.c | 130 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 D | ipft_tx.c | 305 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 D | ipmon.c | 72 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 D | pfctl_parser.c | 82 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 D | mpls_ttl.c | 195 !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 D | npf_alg_icmp.c | 217 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 D | t_ping.c | 165 icmp->icmp_type = ICMP_ECHO; in doping() 407 icmp->icmp_type = ICMP_ECHO; in ATF_TC_BODY()
|
/netbsd-src/sbin/ping/ |
H A D | ping.c | 911 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 D | t_bpfilter.c | 81 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 D | ip_icmp.h | 54 u_int8_t icmp_type; /* type of message, see below */ member
|
/netbsd-src/external/bsd/ipf/dist/ipsd/Celler/ |
H A D | ip_compat.h | 117 # define icmp_type type macro
|
/netbsd-src/tests/net/config/ |
H A D | netconfig.c | 217 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
|
/netbsd-src/tests/net/net/ |
H A D | t_pktinfo_send.c | 500 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 D | ip4_frag_1.c | 121 icmp->icmp_type = ICMP_ECHO; in create_ip_packet()
|
/netbsd-src/sys/kern/ |
H A D | uipc_mbufdebug.c | 624 (*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 D | inet.c | 718 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()
|