Home
last modified time | relevance | path

Searched refs:icmp6_type (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-14.2/sys/netinet/
H A Dicmp6.h72 u_int8_t icmp6_type; /* type field */ member
197 #define mld_type mld_icmp6_hdr.icmp6_type
214 #define nd_rs_type nd_rs_hdr.icmp6_type
226 #define nd_ra_type nd_ra_hdr.icmp6_type
258 #define nd_ns_type nd_ns_hdr.icmp6_type
269 #define nd_na_type nd_na_hdr.icmp6_type
292 #define nd_rd_type nd_rd_hdr.icmp6_type
402 #define ni_type icmp6_ni_hdr.icmp6_type
482 #define rr_type rr_hdr.icmp6_type
/freebsd-14.2/contrib/tcpdump/
H A Dprint-icmp6.c75 nd_uint8_t icmp6_type; /* type field */ member
180 #define mld6_type mld6_hdr.icmp6_type
198 #define nd_rs_type nd_rs_hdr.icmp6_type
210 #define nd_ra_type nd_ra_hdr.icmp6_type
239 #define nd_ns_type nd_ns_hdr.icmp6_type
250 #define nd_na_type nd_na_hdr.icmp6_type
266 #define nd_rd_type nd_rd_hdr.icmp6_type
425 #define rr_type rr_hdr.icmp6_type
1011 uint8_t icmp6_type, icmp6_code; in icmp6_print() local
1046 icmp6_type = GET_U_1(dp->icmp6_type); in icmp6_print()
[all …]
/freebsd-14.2/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c668 icmp6->icmp6_type == ND_REDIRECT) { in nat64_icmp6_reflect()
751 icmp6->icmp6_type = type; in nat64_icmp6_reflect()
881 icmp6->icmp6_type = type; in nat64_icmp_handle_echo()
1166 ICMP6(icmp)->icmp6_type = type; in nat64_icmp_translate()
1369 switch (icmp6->icmp6_type) { in nat64_handle_icmp6()
1386 " code %d", icmp6->icmp6_type, in nat64_handle_icmp6()
1398 " code %d", mtu, icmp6->icmp6_type, in nat64_handle_icmp6()
1462 icmp6->icmp6_type, icmp6->icmp6_code); in nat64_handle_icmp6()
1650 icmp6->icmp6_type != ICMP6_ECHO_REPLY) in nat64_do_handle_ip6()
1702 icmp6->icmp6_type = ICMP_ECHO; in nat64_do_handle_ip6()
[all …]
H A Dnat64clat.c164 switch (icmp6->icmp6_type) { in nat64clat_handle_icmp6()
H A Dnat64stl.c164 switch (icmp6->icmp6_type) { in nat64stl_handle_icmp6()
H A Dnat64lsn.c1516 if (icmp6->icmp6_type == ICMP6_ECHO_REQUEST || in nat64lsn_translate6()
1517 icmp6->icmp6_type == ICMP6_ECHO_REPLY) in nat64lsn_translate6()
/freebsd-14.2/sys/netinet6/
H A Dicmp6.c341 if (icp->icmp6_type < ICMP6_ECHO_REQUEST || in icmp6_error()
342 icp->icmp6_type == ND_REDIRECT) { in icmp6_error()
383 icmp6->icmp6_type = type; in icmp6_error()
405 switch (icmp6->icmp6_type) { in icmp6_errmap()
506 icmp6->icmp6_type, sum, in icmp6_input()
514 if (icmp6->icmp6_type < ICMP6_INFOMSG_MASK) in icmp6_input()
518 switch (icmp6->icmp6_type) { in icmp6_input()
614 nicmp6->icmp6_type = ICMP6_ECHO_REPLY; in icmp6_input()
744 nicmp6->icmp6_type = ICMP6_WRUREPLY; in icmp6_input()
882 if (icmp6->icmp6_type < ICMP6_ECHO_REQUEST) { in icmp6_input()
[all …]
H A Dsend.c154 switch (icmp6->icmp6_type) { in send_output()
H A Dsctp6_usrreq.c174 uint8_t icmp6_type, in sctp6_notify() argument
180 switch (icmp6_type) { in sctp6_notify()
345 ip6cp->ip6c_icmp6->icmp6_type, in sctp6_ctlinput()
H A Draw_ip6.c437 type = icmp6->icmp6_type; in rip6_send()
/freebsd-14.2/sbin/ipf/libipf/
H A Dipft_tx.c470 ic6->icmp6_type = geticmptype(AF_INET6, *cpp); in parseipv6()
474 if (ic6->icmp6_type == ICMP6_ECHO_REQUEST || in parseipv6()
475 ic6->icmp6_type == ICMP6_ECHO_REPLY) in parseipv6()
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw2.c847 is_icmp6_query(int icmp6_type) in is_icmp6_query() argument
849 if ((icmp6_type <= ICMP6_MAXTYPE) && in is_icmp6_query()
850 (icmp6_type == ICMP6_ECHO_REQUEST || in is_icmp6_query()
851 icmp6_type == ICMP6_MEMBERSHIP_QUERY || in is_icmp6_query()
852 icmp6_type == ICMP6_WRUREQUEST || in is_icmp6_query()
853 icmp6_type == ICMP6_FQDN_QUERY || in is_icmp6_query()
854 icmp6_type == ICMP6_NI_QUERY)) in is_icmp6_query()
1451 uint8_t icmp6_type = 0; in ipfw_chk() local
1565 icmp6_type = ICMP6(ulp)->icmp6_type; in ipfw_chk()
2327 ICMP6(ulp)->icmp6_type, in ipfw_chk()
[all …]
H A Dip_fw_log.c383 icmp6->icmp6_type, icmp6->icmp6_code); in ipfw_log()
/freebsd-14.2/sbin/ping/
H A Dping6.c1325 icp->icmp6_type = ICMP6_NI_QUERY; in pinger()
1342 icp->icmp6_type = ICMP6_NI_QUERY; in pinger()
1357 icp->icmp6_type = ICMP6_NI_QUERY; in pinger()
1374 icp->icmp6_type = ICMP6_NI_QUERY; in pinger()
1388 icp->icmp6_type = ICMP6_ECHO_REQUEST; in pinger()
1593 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) { in pr_pack()
1662 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) { in pr_pack()
2290 switch (icp->icmp6_type) { in pr_icmph()
2503 (void)printf("Bad ICMP type: %d", icp->icmp6_type); in pr_icmph()
/freebsd-14.2/contrib/wpa/src/ap/
H A Dndisc_snoop.c111 switch (msg->icmp6h.icmp6_type) { in handle_ndisc()
/freebsd-14.2/sbin/pfctl/
H A Dpfctl_parser.c110 static const struct icmptypeent icmp6_type[] = { variable
240 for (i=0; i < nitems(icmp6_type); i++) { in geticmptypebynumber()
241 if (type == icmp6_type[i].type) in geticmptypebynumber()
242 return (&icmp6_type[i]); in geticmptypebynumber()
259 for (i=0; i < nitems(icmp6_type); i++) { in geticmptypebyname()
260 if (!strcmp(w, icmp6_type[i].name)) in geticmptypebyname()
261 return (&icmp6_type[i]); in geticmptypebyname()
/freebsd-14.2/usr.sbin/rtsold/
H A Drtsol.c234 if (icp->icmp6_type != ND_ROUTER_ADVERT) { in rtsol_input()
240 "invalid icmp type(%d) from %s on %s", icp->icmp6_type, in rtsol_input()
/freebsd-14.2/usr.sbin/ppp/
H A Dip.c325 sport = ih6->icmp6_type; in FilterCheck()
640 "ICMP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), icmp6h->icmp6_type); in PacketCheck()
/freebsd-14.2/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c148 NPTV6_DEBUG("ICMPv6 type %d", icmp6->icmp6_type); in nptv6_translate_icmpv6()
149 switch (icmp6->icmp6_type) { in nptv6_translate_icmpv6()
/freebsd-14.2/usr.sbin/traceroute6/
H A Dtraceroute6.c1139 icp->icmp6_type = ICMP6_ECHO_REQUEST; in send_probe()
1403 *type = icp->icmp6_type; in packet_ok()
/freebsd-14.2/sys/netpfil/ipfilter/netinet/
H A Dip_log.c403 if (icmp->icmp6_type < 128) { in ipf_log_pkt()
H A Dip_nat6.c1372 type = icmp6->icmp6_type; in ipf_nat6_icmperrorlookup()
1437 if (ipf_nat6_icmpquerytype(orgicmp->icmp6_type)) { in ipf_nat6_icmperrorlookup()
2614 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY) in ipf_nat6_checkout()
3004 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY) in ipf_nat6_checkin()
H A Dip_state.c4384 type = ic6->icmp6_type; in ipf_checkicmp6matchingstate()
4436 if (!(oic->icmp6_type & ICMP6_INFOMSG_MASK)) { in ipf_checkicmp6matchingstate()
4471 (oic->icmp6_type == ICMP6_ECHO_REQUEST)) || in ipf_checkicmp6matchingstate()
4472 (ic->ici_type - 1 == oic->icmp6_type )) { in ipf_checkicmp6matchingstate()
/freebsd-14.2/usr.sbin/rtadvd/
H A Drtadvd.c798 switch (icp->icmp6_type) { in rtadvd_input()
897 syslog(LOG_ERR, "invalid icmp type(%d)", icp->icmp6_type); in rtadvd_input()
/freebsd-14.2/sys/netipsec/
H A Dipsec.c724 spidx->src.sin6.sin6_port = htons((uint16_t)ih.icmp6_type); in ipsec6_get_ulp()

12