Home
last modified time | relevance | path

Searched refs:icmp_type (Results 1 – 25 of 35) sorted by relevance

12

/freebsd-14.2/contrib/tcpdump/
H A Dprint-icmp.c49 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-14.2/sys/netinet/
H A Dip_icmp.c251 oiphlen))->icmp_type)) { in icmp_error()
350 icp->icmp_type = type; in icmp_error()
411 switch (icp->icmp_type) { in icmp_errmap()
512 printf("icmp_input, type %d code %d\n", icp->icmp_type, in icmp_input()
519 if (icp->icmp_type > ICMP_MAXTYPE) in icmp_input()
533 ICMPSTAT_INC(icps_inhist[icp->icmp_type]); in icmp_input()
535 switch (icp->icmp_type) { in icmp_input()
609 icp->icmp_type = ICMP_ECHOREPLY; in icmp_input()
626 icp->icmp_type = ICMP_TSTAMPREPLY; in icmp_input()
655 icp->icmp_type = ICMP_MASKREPLY; in icmp_input()
[all …]
H A Dip_icmp.h54 u_char icmp_type; /* type of message, see below */ member
65 u_char icmp_type; /* type of message, see below */ member
/freebsd-14.2/sbin/routed/
H A Drdisc.c38 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-14.2/sbin/ipf/ipsend/
H A Diptests.c573 icp->icmp_type = i; in ip_test3()
578 icp->icmp_type = 255; in ip_test3()
589 icp->icmp_type = 3; in ip_test3()
602 icp->icmp_type = 4; in ip_test3()
625 icp->icmp_type = 5; in ip_test3()
649 icp->icmp_type = ict1[i]; in ip_test3()
678 icp->icmp_type = 12; in ip_test3()
708 icp->icmp_type = ict1[i]; in ip_test3()
713 i * 4, icp->icmp_type); in ip_test3()
718 i * 4 + 1, icp->icmp_type); in ip_test3()
[all …]
H A Dipsend.c89 ic->icmp_type = atoi(args); in do_icmp()
91 if (ic->icmp_type == ICMP_REDIRECT && strchr(s, ',')) in do_icmp()
/freebsd-14.2/sbin/ping/
H A Dping.c181 static u_char icmp_type = ICMP_ECHO; variable
536 icmp_type = ICMP_MASKREQ; in ping()
543 icmp_type = ICMP_TSTAMP; in ping()
1026 icp.icmp_type = icmp_type; in pinger()
1159 if (icp.icmp_type == icmp_type_rsp) { in pr_pack()
1332 (oicmp.icmp_type == ICMP_ECHO) && in pr_pack()
1438 switch(icp->icmp_type) { in pr_icmph()
1553 (void)printf("Bad ICMP type: %d\n", icp->icmp_type); in pr_icmph()
/freebsd-14.2/sbin/ipf/libipf/
H A Dipft_tx.c299 ic->icmp_type = geticmptype(AF_INET, *cpp); in parseline()
304 if (ic->icmp_type == ICMP_ECHO || in parseline()
305 ic->icmp_type == ICMP_ECHOREPLY) in parseline()
/freebsd-14.2/sbin/ipf/ipmon/
H A Dipmon.c65 typedef struct icmp_type { struct
1227 icmpname6(ic->icmp_type, ic->icmp_code)); in print_ipflog()
1235 icmpname(ic->icmp_type, ic->icmp_code)); in print_ipflog()
1236 if (ic->icmp_type == ICMP_UNREACH || in print_ipflog()
1237 ic->icmp_type == ICMP_SOURCEQUENCH || in print_ipflog()
1238 ic->icmp_type == ICMP_PARAMPROB || in print_ipflog()
1239 ic->icmp_type == ICMP_REDIRECT || in print_ipflog()
1240 ic->icmp_type == ICMP_TIMXCEED) { in print_ipflog()
1279 icmp->icmp_type, icmp->icmp_code); in print_ipflog()
/freebsd-14.2/sbin/natd/
H A Dicmp.c66 icmp->icmp_type = ICMP_UNREACH; in SendNeedFragIcmp()
/freebsd-14.2/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c810 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 Dnat64lsn.c430 switch (icmp->icmp_type) { in inspect_icmp_mbuf()
473 if (icmp->icmp_type != ICMP_ECHO) in inspect_icmp_mbuf()
/freebsd-14.2/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c165 icmp->icmp_type = ICMP_ECHO; in doping()
394 icmp->icmp_type = ICMP_ECHO; in ATF_TC_BODY()
/freebsd-14.2/contrib/netbsd-tests/net/bpfilter/
H A Dt_bpfilter.c81 sizeof(struct ip) + offsetof(struct icmp, icmp_type)),
195 icmp->icmp_type = ICMP_ECHO; in pingtest()
/freebsd-14.2/sys/netinet/libalias/
H A Dalias.c358 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) in IcmpAliasIn2()
449 switch (ic->icmp_type) { in IcmpAliasIn()
547 if (ic2->icmp_type == ICMP_ECHO || ic2->icmp_type == ICMP_TSTAMP) in IcmpAliasOut2()
633 switch (ic->icmp_type) { in IcmpAliasOut()
/freebsd-14.2/sbin/ping/tests/
H A Dtest_ping.py133 icmp_type: sc.scapy.fields.ByteEnumField,
248 type=icmp_type,
/freebsd-14.2/contrib/netbsd-tests/net/config/
H A Dnetconfig.c213 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
/freebsd-14.2/sbin/pfctl/
H A Dpfctl_parser.c82 static const struct icmptypeent icmp_type[] = { variable
235 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebynumber()
236 if (type == icmp_type[i].type) in geticmptypebynumber()
237 return (&icmp_type[i]); in geticmptypebynumber()
254 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebyname()
255 if (!strcmp(w, icmp_type[i].name)) in geticmptypebyname()
256 return (&icmp_type[i]); in geticmptypebyname()
/freebsd-14.2/usr.sbin/ppp/
H A Dip.c316 sport = ih->icmp_type; in FilterCheck()
626 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmph->icmp_type); in PacketCheck()
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw_log.c371 icmp->icmp_type, icmp->icmp_code); in ipfw_log()
/freebsd-14.2/sys/netpfil/ipfilter/netinet/
H A Dip_state.c1476 switch (ic->icmp_type) in ipf_state_add()
1485 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add()
1496 switch (ic->icmp_type) in ipf_state_add()
1502 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add()
2641 type = ic->icmp_type; in ipf_checkicmpmatchingstate()
3017 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) || in ipf_state_lookup()
3018 (ic->icmp_type == ICMP6_ECHO_REPLY)) { in ipf_state_lookup()
H A Dip_log.c376 switch (icmp->icmp_type) in ipf_log_pkt()
H A Dfil.c1202 switch (icmp->icmp_type) in ipf_pr_icmp()
4284 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply()
4285 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply()
4286 if (icmp->icmp_type != ICMP_ECHOREPLY) in ipf_matchicmpqueryreply()
4294 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply()
4295 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply()
4296 if (icmp->icmp_type != ICMP6_ECHO_REPLY) in ipf_matchicmpqueryreply()
/freebsd-14.2/contrib/traceroute/
H A Dtraceroute.c1448 type = icp->icmp_type; in packet_ok()
1497 icmpheader->icmp_type = ICMP_ECHO; in icmp_prep()
/freebsd-14.2/sbin/ipf/iplang/
H A Diplang_y.y1436 icmp->icmp_type = type; in set_icmptype()
1464 icmp->icmp_type = i; in set_icmptypetok()

12