Home
last modified time | relevance | path

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

/netbsd-src/sys/netinet6/
H A Dnd6_rtr.c57 nd6_rtr_cache(struct mbuf *m, int off, int icmp6len, int icmp6_type) in nd6_rtr_cache() argument
82 switch (icmp6_type) { in nd6_rtr_cache()
138 icmp6_type == ND_ROUTER_SOLICIT ? "RS" : "RA", in nd6_rtr_cache()
143 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, icmp6_type, 0); in nd6_rtr_cache()
151 ICMP6_STATINC(icmp6_type == ND_ROUTER_SOLICIT ? in nd6_rtr_cache()
H A Dicmp6.c416 if (icp->icmp6_type < ICMP6_ECHO_REQUEST || in icmp6_error()
417 icp->icmp6_type == ND_REDIRECT) { in icmp6_error()
464 icmp6->icmp6_type = type; in icmp6_error()
563 icmp6->icmp6_type, sum, IN6_PRINT(ip6buf, &ip6->ip6_src)); in _icmp6_input()
576 switch (icmp6->icmp6_type) { in _icmp6_input()
588 ICMP6_STATINC(ICMP6_STAT_INHIST + icmp6->icmp6_type); in _icmp6_input()
590 switch (icmp6->icmp6_type) { in _icmp6_input()
694 nicmp6->icmp6_type = ICMP6_ECHO_REPLY; in _icmp6_input()
718 if (icmp6->icmp6_type == MLD_LISTENER_QUERY) /* XXX: ugly... */ in _icmp6_input()
807 nicmp6->icmp6_type = ICMP6_WRUREPLY; in _icmp6_input()
[all …]
H A Draw_ip6.c418 type = icmp6->icmp6_type; in rip6_output()
H A Dsctp6_usrreq.c330 if (icmp6->icmp6_type != ICMP6_PACKET_TOO_BIG) { in sctp6_notify_mbuf()
/netbsd-src/sys/netinet/
H A Dicmp6.h76 u_int8_t icmp6_type; /* type field */
203 #define mld_type mld_icmp6_hdr.icmp6_type
220 #define nd_rs_type nd_rs_hdr.icmp6_type
232 #define nd_ra_type nd_ra_hdr.icmp6_type
260 #define nd_ns_type nd_ns_hdr.icmp6_type
271 #define nd_na_type nd_na_hdr.icmp6_type
294 #define nd_rd_type nd_rd_hdr.icmp6_type
410 #define ni_type icmp6_ni_hdr.icmp6_type
490 #define rr_type rr_hdr.icmp6_type
72 u_int8_t icmp6_type; /* type field */ global() member
/netbsd-src/external/bsd/ipf/dist/lib/
H A Dipft_tx.c479 ic6->icmp6_type = geticmptype(AF_INET6, *cpp);
483 if (ic6->icmp6_type == ICMP6_ECHO_REQUEST ||
484 ic6->icmp6_type == ICMP6_ECHO_REPLY)
/netbsd-src/dist/pf/sbin/pfctl/
H A Dpfctl_parser.c130 static const struct icmptypeent icmp6_type[] = { variable
259 for (i=0; i < (sizeof (icmp6_type) / in geticmptypebynumber()
260 sizeof(icmp6_type[0])); i++) { in geticmptypebynumber()
261 if (type == icmp6_type[i].type) in geticmptypebynumber()
262 return (&icmp6_type[i]); in geticmptypebynumber()
280 for (i=0; i < (sizeof (icmp6_type) / in geticmptypebyname()
281 sizeof(icmp6_type[0])); i++) { in geticmptypebyname()
282 if (!strcmp(w, icmp6_type[i].name)) in geticmptypebyname()
283 return (&icmp6_type[i]); in geticmptypebyname()
/netbsd-src/sys/net/npf/
H A Dnpf_alg_icmp.c221 ret = npfa_icmp6_inspect(ic6->icmp6_type, enpc, &hasqid); in npfa_icmp_inspect()
294 ret = npfa_icmp6_inspect(ic6->icmp6_type, &enpc, &hasqid); in npfa_icmp_conn()
/netbsd-src/sbin/ping6/
H A Dping6.c1137 icp->icmp6_type = ICMP6_NI_QUERY; in pinger()
1143 icp->icmp6_type = ICMP6_ECHO_REQUEST; in pinger()
1339 if (icp->icmp6_type == ICMP6_ECHO_REPLY && myechoreply(icp)) { in pr_pack()
1408 } else if (icp->icmp6_type == ICMP6_NI_REPLY && mynireply(ni)) { in pr_pack()
2056 switch (icp->icmp6_type) { in pr_icmph()
2271 printf("Bad ICMP type: %d", icp->icmp6_type); in pr_icmph()
/netbsd-src/usr.sbin/traceroute6/
H A Dtraceroute6.c826 icp->icmp6_type = ICMP6_ECHO_REQUEST; in send_probe()
971 type = icp->icmp6_type; in packet_ok()
/netbsd-src/sys/kern/
H A Duipc_mbufdebug.c737 (*pr)("ICMP6: Type = %u(", icmp6.icmp6_type); in m_examine_icmp6()
738 switch (icmp6.icmp6_type) { in m_examine_icmp6()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dprivsep-inet.c250 switch(icmp6.icmp6_type) { in ps_inet_validnd()
H A Dipv6nd.c2102 switch(icp->icmp6_type) { in ipv6nd_recvmsg()
2111 icp->icmp6_type, icp->icmp6_code, sfrom); in ipv6nd_recvmsg()
/netbsd-src/usr.sbin/npf/npfctl/
H A Dnpf_bpf_comp.c762 assert(offsetof(struct icmp6_hdr, icmp6_type) == type_off);
/netbsd-src/usr.sbin/rtadvd/
H A Drtadvd.c805 switch (icp->icmp6_type) { in rtadvd_input()
889 __func__, icp->icmp6_type); in rtadvd_input()
/netbsd-src/sys/external/bsd/ipf/netinet/
H A Dip_log.c450 if (icmp->icmp6_type < 128) { in ipf_log_pkt()
H A Dip_nat6.c1442 if (ipf_nat6_icmpquerytype(orgicmp->icmp6_type)) { in ipf_nat6_icmperrorlookup()
2607 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY) in ipf_nat6_checkout()
3005 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY) in ipf_nat6_checkin()
H A Dip_state.c4444 if (!(oic->icmp6_type & ICMP6_INFOMSG_MASK)) { in ipf_checkicmp6matchingstate()
4479 (oic->icmp6_type == ICMP6_ECHO_REQUEST)) || in ipf_checkicmp6matchingstate()
4480 (ic->ici_type - 1 == oic->icmp6_type )) { in ipf_checkicmp6matchingstate()
H A Dfil.c924 if ((icmp6->icmp6_type & ICMP6_INFOMSG_MASK) != 0) in ipf_pr_icmp6()
927 switch (icmp6->icmp6_type) in ipf_pr_icmp6()
/netbsd-src/external/bsd/ipf/dist/
H A Dip_nat6.c1410 type = icmp6->icmp6_type;
1475 if (ipf_nat6_icmpquerytype(orgicmp->icmp6_type)) {
2662 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY)
3060 if (icmp6->icmp6_type > ICMP6_ECHO_REPLY)
/netbsd-src/sys/netipsec/
H A Dipsec.c1031 htons((uint16_t)icmph.icmp6_type); in ipsec6_get_ulp()
/netbsd-src/sys/dist/pf/net/
H A Dpf.c3134 icmptype = pd->hdr.icmp6->icmp6_type;
4368 icmptype = pd->hdr.icmp6->icmp6_type;