| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-icmp.c | 51 uint8_t icmp_type; /* type of message, see below */ member 286 uint8_t icmp_type; member 354 switch (dp->icmp_type) { in icmp_print() 360 dp->icmp_type == ICMP_ECHO ? in icmp_print() 555 str = tok2str(icmp2str, "type-#%d", dp->icmp_type); in icmp_print() 581 if (ndo->ndo_vflag >= 1 && ICMP_ERRTYPE(dp->icmp_type)) { in icmp_print() 595 if (ndo->ndo_vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MPLS_EXT_TYPE(dp->icmp_type)) { in icmp_print()
|
| /freebsd-13.1/sys/netinet/ |
| H A D | ip_icmp.c | 243 oiphlen))->icmp_type)) { in icmp_error() 342 icp->icmp_type = type; in icmp_error() 456 printf("icmp_input, type %d code %d\n", icp->icmp_type, in icmp_input() 463 if (icp->icmp_type > ICMP_MAXTYPE) in icmp_input() 477 ICMPSTAT_INC(icps_inhist[icp->icmp_type]); in icmp_input() 479 switch (icp->icmp_type) { in icmp_input() 587 icp->icmp_type = ICMP_ECHOREPLY; in icmp_input() 604 icp->icmp_type = ICMP_TSTAMPREPLY; in icmp_input() 633 icp->icmp_type = ICMP_MASKREPLY; in icmp_input() 646 ICMPSTAT_INC(icps_outhist[icp->icmp_type]); in icmp_input()
|
| H A D | ip_icmp.h | 55 u_char icmp_type; /* type of message, see below */ member 66 u_char icmp_type; /* type of message, see below */ member
|
| /freebsd-13.1/sbin/routed/ |
| H A D | rdisc.c | 43 u_int8_t icmp_type; /* type of message */ member 57 u_int8_t icmp_type; /* type of message */ member 121 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in trace_rdisc() 786 u.ad.icmp_type = ICMP_ROUTERADVERT; in send_adv() 868 u.so.icmp_type = ICMP_ROUTERSOLICIT; in rdisc_sol() 901 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in ck_icmp() 903 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { in ck_icmp() 1000 switch (p->icmp.icmp_type) { in read_d()
|
| /freebsd-13.1/sbin/ipf/ipsend/ |
| H A D | iptests.c | 574 icp->icmp_type = i; in ip_test3() 579 icp->icmp_type = 255; in ip_test3() 590 icp->icmp_type = 3; in ip_test3() 603 icp->icmp_type = 4; in ip_test3() 626 icp->icmp_type = 5; in ip_test3() 650 icp->icmp_type = ict1[i]; in ip_test3() 679 icp->icmp_type = 12; in ip_test3() 709 icp->icmp_type = ict1[i]; in ip_test3() 714 i * 4, icp->icmp_type); in ip_test3() 719 i * 4 + 1, icp->icmp_type); in ip_test3() [all …]
|
| H A D | ipsend.c | 90 ic->icmp_type = atoi(args); in do_icmp() 92 if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ',')) in do_icmp()
|
| /freebsd-13.1/sbin/ping/ |
| H A D | ping.c | 184 static u_char icmp_type = ICMP_ECHO; variable 553 icmp_type = ICMP_MASKREQ; in ping() 560 icmp_type = ICMP_TSTAMP; in ping() 1054 icp.icmp_type = icmp_type; in pinger() 1191 if (icp.icmp_type == icmp_type_rsp) { in pr_pack() 1358 (oicmp.icmp_type == ICMP_ECHO) && in pr_pack() 1551 switch(icp->icmp_type) { in pr_icmph() 1666 (void)printf("Bad ICMP type: %d\n", icp->icmp_type); in pr_icmph()
|
| /freebsd-13.1/sbin/ipf/libipf/ |
| H A D | ipft_tx.c | 300 ic->icmp_type = geticmptype(AF_INET, *cpp); in parseline() 305 if (ic->icmp_type == ICMP_ECHO || in parseline() 306 ic->icmp_type == ICMP_ECHOREPLY) in parseline()
|
| /freebsd-13.1/sbin/ipf/ipmon/ |
| H A D | ipmon.c | 66 typedef struct icmp_type { struct 1235 icmpname6(ic->icmp_type, ic->icmp_code)); in print_ipflog() 1243 icmpname(ic->icmp_type, ic->icmp_code)); in print_ipflog() 1244 if (ic->icmp_type == ICMP_UNREACH || in print_ipflog() 1245 ic->icmp_type == ICMP_SOURCEQUENCH || in print_ipflog() 1246 ic->icmp_type == ICMP_PARAMPROB || in print_ipflog() 1247 ic->icmp_type == ICMP_REDIRECT || in print_ipflog() 1248 ic->icmp_type == ICMP_TIMXCEED) { in print_ipflog() 1287 icmp->icmp_type, icmp->icmp_code); in print_ipflog()
|
| /freebsd-13.1/sbin/natd/ |
| H A D | icmp.c | 68 icmp->icmp_type = ICMP_UNREACH; in SendNeedFragIcmp()
|
| /freebsd-13.1/sys/netpfil/ipfw/nat64/ |
| H A D | nat64_translate.c | 811 if (!ICMP_INFOTYPE(icmp->icmp_type)) { in nat64_icmp_reflect() 857 icmp->icmp_type = type; in nat64_icmp_reflect() 921 switch (icmp->icmp_type) { in nat64_icmp_translate() 959 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate() 1005 " code %d, pptr %d", icmp->icmp_type, in nat64_icmp_translate() 1012 " code %d, pptr %d", icmp->icmp_type, in nat64_icmp_translate() 1019 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate() 1151 if (icmp->icmp_type != ICMP_ECHO) { in nat64_icmp_translate()
|
| H A D | nat64lsn.c | 432 switch (icmp->icmp_type) { in inspect_icmp_mbuf() 475 if (icmp->icmp_type != ICMP_ECHO) in inspect_icmp_mbuf()
|
| /freebsd-13.1/contrib/netbsd-tests/net/icmp/ |
| H A D | t_ping.c | 165 icmp->icmp_type = ICMP_ECHO; in doping() 394 icmp->icmp_type = ICMP_ECHO; in ATF_TC_BODY()
|
| /freebsd-13.1/contrib/netbsd-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()
|
| /freebsd-13.1/sys/netinet/libalias/ |
| H A D | alias.c | 360 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) in IcmpAliasIn2() 451 switch (ic->icmp_type) { in IcmpAliasIn() 549 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) in IcmpAliasOut2() 635 switch (ic->icmp_type) { in IcmpAliasOut()
|
| /freebsd-13.1/sbin/pfctl/ |
| H A D | pfctl_parser.c | 84 static const struct icmptypeent icmp_type[] = { variable 232 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebynumber() 233 if (type == icmp_type[i].type) in geticmptypebynumber() 234 return (&icmp_type[i]); in geticmptypebynumber() 251 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebyname() 252 if (!strcmp(w, icmp_type[i].name)) in geticmptypebyname() 253 return (&icmp_type[i]); in geticmptypebyname()
|
| H A D | parse.y | 5419 LOOP_THROUGH(struct node_icmp, icmp_type, icmp_types, in expand_rule() 5485 r->type = icmp_type->type; in expand_rule() 5486 r->code = icmp_type->code; in expand_rule() 5502 if (icmp_type->proto && r->proto != icmp_type->proto) { in expand_rule()
|
| /freebsd-13.1/contrib/netbsd-tests/net/config/ |
| H A D | netconfig.c | 213 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
|
| /freebsd-13.1/usr.sbin/ppp/ |
| H A D | ip.c | 318 sport = ih->icmp_type; in FilterCheck() 628 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type); in PacketCheck()
|
| /freebsd-13.1/sys/netpfil/ipfw/ |
| H A D | ip_fw_log.c | 361 icmp->icmp_type, icmp->icmp_code); in ipfw_log()
|
| /freebsd-13.1/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_state.c | 1489 switch (ic->icmp_type) in ipf_state_add() 1498 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add() 1509 switch (ic->icmp_type) in ipf_state_add() 1515 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add() 2654 type = ic->icmp_type; in ipf_checkicmpmatchingstate() 3030 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) || in ipf_state_lookup() 3031 (ic->icmp_type == ICMP6_ECHO_REPLY)) { in ipf_state_lookup()
|
| H A D | ip_log.c | 389 switch (icmp->icmp_type) in ipf_log_pkt()
|
| H A D | fil.c | 1201 switch (icmp->icmp_type) in ipf_pr_icmp() 4275 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply() 4276 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply() 4277 if (icmp->icmp_type != ICMP_ECHOREPLY) in ipf_matchicmpqueryreply() 4285 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply() 4286 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply() 4287 if (icmp->icmp_type != ICMP6_ECHO_REPLY) in ipf_matchicmpqueryreply()
|
| /freebsd-13.1/contrib/traceroute/ |
| H A D | traceroute.c | 1423 type = icp->icmp_type; in packet_ok() 1472 icmpheader->icmp_type = ICMP_ECHO; in icmp_prep()
|
| /freebsd-13.1/sbin/ipf/iplang/ |
| H A D | iplang_y.y | 1438 icmp->icmp_type = type; in set_icmptype() 1466 icmp->icmp_type = i; in set_icmptypetok()
|