/freebsd/contrib/tcpdump/ |
H A D | print-icmp.c | 49 nd_uint8_t icmp_type; /* type of message, see below */ member 249 nd_uint8_t icmp_type; member 317 uint8_t icmp_type, icmp_code; in icmp_print() local 338 icmp_type = GET_U_1(dp->icmp_type); in icmp_print() 340 switch (icmp_type) { in icmp_print() 345 icmp_type == ICMP_ECHO ? in icmp_print() 646 str = tok2str(icmp2str, "type-#%u", icmp_type); in icmp_print() 670 if (ndo->ndo_vflag >= 1 && ICMP_ERRTYPE(icmp_type)) { in icmp_print() 698 if (ndo->ndo_vflag >= 1 && plen > ICMP_EXTD_MINLEN && ICMP_MULTIPART_EXT_TYPE(icmp_type)) { in icmp_print()
|
/freebsd/sys/netinet/ |
H A D | ip_icmp.c | 249 oiphlen))->icmp_type)) { in icmp_error() 348 icp->icmp_type = type; in icmp_error() 408 switch (icp->icmp_type) { in icmp_errmap() 509 printf("icmp_input, type %d code %d\n", icp->icmp_type, in icmp_input() 516 if (icp->icmp_type > ICMP_MAXTYPE) in icmp_input() 530 ICMPSTAT_INC2(icps_inhist, icp->icmp_type); in icmp_input() 532 switch (icp->icmp_type) { in icmp_input() 606 icp->icmp_type = ICMP_ECHOREPLY; in icmp_input() 623 icp->icmp_type = ICMP_TSTAMPREPLY; in icmp_input() 647 icp->icmp_type = ICMP_MASKREPLY; in icmp_input() [all …]
|
H A D | ip_icmp.h | 52 u_char icmp_type; /* type of message, see below */ member 63 u_char icmp_type; /* type of message, see below */ member
|
/freebsd/sbin/routed/ |
H A D | rdisc.c | 38 u_int8_t icmp_type; /* type of message */ member 52 u_int8_t icmp_type; /* type of message */ member 116 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in trace_rdisc() 781 u.ad.icmp_type = ICMP_ROUTERADVERT; in send_adv() 863 u.so.icmp_type = ICMP_ROUTERSOLICIT; in rdisc_sol() 896 if (p->icmp.icmp_type == ICMP_ROUTERADVERT) { in ck_icmp() 898 } else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) { in ck_icmp() 995 switch (p->icmp.icmp_type) { in read_d()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | iptests.c | 568 icp->icmp_type = i; in ip_test3() 573 icp->icmp_type = 255; in ip_test3() 584 icp->icmp_type = 3; in ip_test3() 597 icp->icmp_type = 4; in ip_test3() 620 icp->icmp_type = 5; in ip_test3() 644 icp->icmp_type = ict1[i]; in ip_test3() 673 icp->icmp_type = 12; in ip_test3() 703 icp->icmp_type = ict1[i]; in ip_test3() 708 i * 4, icp->icmp_type); in ip_test3() 713 i * 4 + 1, icp->icmp_type); in ip_test3() [all …]
|
H A D | ipsend.c | 85 ic->icmp_type = atoi(args); in do_icmp() 87 if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ',')) in do_icmp()
|
/freebsd/sbin/ping/ |
H A D | ping.c | 169 static u_char icmp_type = ICMP_ECHO; variable 524 icmp_type = ICMP_MASKREQ; in ping() 531 icmp_type = ICMP_TSTAMP; in ping() 1014 icp.icmp_type = icmp_type; in pinger() 1147 if (icp.icmp_type == icmp_type_rsp) { in pr_pack() 1320 (oicmp.icmp_type == ICMP_ECHO) && in pr_pack() 1426 switch(icp->icmp_type) { in pr_icmph() 1541 (void)printf("Bad ICMP type: %d\n", icp->icmp_type); in pr_icmph()
|
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_tx.c | 296 ic->icmp_type = geticmptype(AF_INET, *cpp); in parseline() 301 if (ic->icmp_type == ICMP_ECHO || in parseline() 302 ic->icmp_type == ICMP_ECHOREPLY) in parseline()
|
/freebsd/sbin/ipf/ipmon/ |
H A D | ipmon.c | 61 typedef struct icmp_type { struct 1224 icmpname6(ic->icmp_type, ic->icmp_code)); in print_ipflog() 1232 icmpname(ic->icmp_type, ic->icmp_code)); in print_ipflog() 1233 if (ic->icmp_type == ICMP_UNREACH || in print_ipflog() 1234 ic->icmp_type == ICMP_SOURCEQUENCH || in print_ipflog() 1235 ic->icmp_type == ICMP_PARAMPROB || in print_ipflog() 1236 ic->icmp_type == ICMP_REDIRECT || in print_ipflog() 1237 ic->icmp_type == ICMP_TIMXCEED) { in print_ipflog() 1276 icmp->icmp_type, icmp->icmp_code); in print_ipflog()
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64_translate.c | 810 if (!ICMP_INFOTYPE(icmp->icmp_type)) { in nat64_icmp_reflect() 856 icmp->icmp_type = type; in nat64_icmp_reflect() 920 switch (icmp->icmp_type) { in nat64_icmp_translate() 958 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate() 1004 " code %d, pptr %d", icmp->icmp_type, in nat64_icmp_translate() 1011 " code %d, pptr %d", icmp->icmp_type, in nat64_icmp_translate() 1018 icmp->icmp_type, icmp->icmp_code); in nat64_icmp_translate() 1150 if (icmp->icmp_type != ICMP_ECHO) { in nat64_icmp_translate()
|
H A D | nat64lsn.c | 431 switch (icmp->icmp_type) { in inspect_icmp_mbuf() 474 if (icmp->icmp_type != ICMP_ECHO) in inspect_icmp_mbuf()
|
/freebsd/sbin/natd/ |
H A D | icmp.c | 66 icmp->icmp_type = ICMP_UNREACH; in SendNeedFragIcmp()
|
/freebsd/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/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/sys/netinet/libalias/ |
H A D | alias.c | 362 if (ic2->icmp_type == ICMP_ECHO || in IcmpAliasIn2() 363 ic2->icmp_type == ICMP_TSTAMP) { in IcmpAliasIn2() 457 switch (ic->icmp_type) { in IcmpAliasIn() 560 if (ic2->icmp_type == ICMP_ECHO || in IcmpAliasOut2() 561 ic2->icmp_type == ICMP_TSTAMP) { in IcmpAliasOut2() 650 switch (ic->icmp_type) { in IcmpAliasOut()
|
/freebsd/sbin/ping/tests/ |
H A D | test_ping.py | 133 icmp_type: sc.scapy.fields.ByteEnumField, 248 type=icmp_type,
|
/freebsd/sbin/pfctl/ |
H A D | pfctl_parser.c | 83 static const struct icmptypeent icmp_type[] = { variable 248 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebynumber() 249 if (type == icmp_type[i].type) in geticmptypebynumber() 250 return (&icmp_type[i]); in geticmptypebynumber() 267 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebyname() 268 if (!strcmp(w, icmp_type[i].name)) in geticmptypebyname() 269 return (&icmp_type[i]); in geticmptypebyname()
|
/freebsd/contrib/netbsd-tests/net/config/ |
H A D | netconfig.c | 213 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
|
/freebsd/usr.sbin/ppp/ |
H A D | ip.c | 316 sport = ih->icmp_type; in FilterCheck() 626 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type); in PacketCheck()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_state.c | 1471 switch (ic->icmp_type) in ipf_state_add() 1480 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add() 1491 switch (ic->icmp_type) in ipf_state_add() 1497 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add() 2997 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) || in ipf_state_lookup() 2998 (ic->icmp_type == ICMP6_ECHO_REPLY)) { in ipf_state_lookup()
|
H A D | ip_log.c | 376 switch (icmp->icmp_type) in ipf_log_pkt()
|
H A D | fil.c | 1196 switch (icmp->icmp_type) in ipf_pr_icmp() 4277 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply() 4278 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply() 4279 if (icmp->icmp_type != ICMP_ECHOREPLY) in ipf_matchicmpqueryreply() 4287 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply() 4288 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply() 4289 if (icmp->icmp_type != ICMP6_ECHO_REPLY) in ipf_matchicmpqueryreply()
|
/freebsd/usr.sbin/traceroute/ |
H A D | traceroute.c | 1375 type = icp->icmp_type; in packet_ok() 1420 icmpheader->icmp_type = ICMP_ECHO; in icmp_prep()
|
/freebsd/sbin/ipf/iplang/ |
H A D | iplang_y.y | 1437 icmp->icmp_type = type; in set_icmptype() 1465 icmp->icmp_type = i; in set_icmptypetok()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 400 icmp->icmp_type, icmp->icmp_code); in ipfw_log_syslog()
|