Home
last modified time | relevance | path

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

12

/freebsd/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/sys/netinet/
H A Dip_icmp.c249 oiphlen))->icmp_type)) { in icmp_error()
348 icp->icmp_type = type; in icmp_error()
409 switch (icp->icmp_type) { in icmp_errmap()
510 printf("icmp_input, type %d code %d\n", icp->icmp_type, in icmp_input()
517 if (icp->icmp_type > ICMP_MAXTYPE) in icmp_input()
531 ICMPSTAT_INC2(icps_inhist, icp->icmp_type); in icmp_input()
533 switch (icp->icmp_type) { in icmp_input()
607 icp->icmp_type = ICMP_ECHOREPLY; in icmp_input()
624 icp->icmp_type = ICMP_TSTAMPREPLY; in icmp_input()
653 icp->icmp_type = ICMP_MASKREPLY; in icmp_input()
[all …]
H A Dip_icmp.h52 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 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/sbin/ipf/ipsend/
H A Diptests.c569 icp->icmp_type = i; in ip_test3()
574 icp->icmp_type = 255; in ip_test3()
585 icp->icmp_type = 3; in ip_test3()
598 icp->icmp_type = 4; in ip_test3()
621 icp->icmp_type = 5; in ip_test3()
645 icp->icmp_type = ict1[i]; in ip_test3()
674 icp->icmp_type = 12; in ip_test3()
704 icp->icmp_type = ict1[i]; in ip_test3()
709 i * 4, icp->icmp_type); in ip_test3()
714 i * 4 + 1, icp->icmp_type); in ip_test3()
[all …]
H A Dipsend.c85 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 Dping.c169 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 Dipft_tx.c296 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 Dipmon.c61 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/sbin/natd/
H A Dicmp.c66 icmp->icmp_type = ICMP_UNREACH; in SendNeedFragIcmp()
/freebsd/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.c429 switch (icmp->icmp_type) { in inspect_icmp_mbuf()
472 if (icmp->icmp_type != ICMP_ECHO) in inspect_icmp_mbuf()
/freebsd/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/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/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/sbin/ping/tests/
H A Dtest_ping.py133 icmp_type: sc.scapy.fields.ByteEnumField,
248 type=icmp_type,
/freebsd/contrib/netbsd-tests/net/config/
H A Dnetconfig.c213 icmp.icmp_type = ICMP_ECHO; in netcfg_rump_pingtest()
/freebsd/sbin/pfctl/
H A Dpfctl_parser.c84 static const struct icmptypeent icmp_type[] = { variable
237 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebynumber()
238 if (type == icmp_type[i].type) in geticmptypebynumber()
239 return (&icmp_type[i]); in geticmptypebynumber()
256 for (i=0; i < nitems(icmp_type); i++) { in geticmptypebyname()
257 if (!strcmp(w, icmp_type[i].name)) in geticmptypebyname()
258 return (&icmp_type[i]); in geticmptypebyname()
/freebsd/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/sys/netpfil/ipfw/
H A Dip_fw_log.c371 icmp->icmp_type, icmp->icmp_code); in ipfw_log()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_state.c1472 switch (ic->icmp_type) in ipf_state_add()
1481 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add()
1492 switch (ic->icmp_type) in ipf_state_add()
1498 is->is_icmp.ici_type = ic->icmp_type; in ipf_state_add()
2637 type = ic->icmp_type; in ipf_checkicmpmatchingstate()
3013 if ((ic->icmp_type == ICMP6_ECHO_REQUEST) || in ipf_state_lookup()
3014 (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.c1198 switch (icmp->icmp_type) in ipf_pr_icmp()
4280 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply()
4281 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply()
4282 if (icmp->icmp_type != ICMP_ECHOREPLY) in ipf_matchicmpqueryreply()
4290 if ((!rev && (icmp->icmp_type == ictype)) || in ipf_matchicmpqueryreply()
4291 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) { in ipf_matchicmpqueryreply()
4292 if (icmp->icmp_type != ICMP6_ECHO_REPLY) in ipf_matchicmpqueryreply()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1375 type = icp->icmp_type; in packet_ok()
1420 icmpheader->icmp_type = ICMP_ECHO; in icmp_prep()
/freebsd/sbin/ipf/iplang/
H A Diplang_y.y1437 icmp->icmp_type = type; in set_icmptype()
1465 icmp->icmp_type = i; in set_icmptypetok()

12