Lines Matching defs:icmp6len

415 	int icmp6len = m->m_pkthdr.len - *offp;
434 if (icmp6len < sizeof(struct icmp6_hdr)) {
468 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
654 if (mld_input(m, off, icmp6len) != 0)
666 if (icmp6len == sizeof(struct icmp6_hdr) + 4)
668 else if (icmp6len >= sizeof(struct icmp6_nodeinfo))
768 if (icmp6len < sizeof(struct nd_router_solicit))
776 icmp6len, IPPROTO_DONE);
782 nd6_rs_input(m, off, icmp6len);
784 nd6_rs_input(m, off, icmp6len);
790 icmp6len, IPPROTO_DONE);
796 nd6_rs_input(n, off, icmp6len);
798 nd6_rs_input(n, off, icmp6len);
806 if (icmp6len < sizeof(struct nd_router_advert))
816 nd6_ra_input(m, off, icmp6len);
818 nd6_ra_input(m, off, icmp6len);
827 nd6_ra_input(n, off, icmp6len);
829 nd6_ra_input(n, off, icmp6len);
837 if (icmp6len < sizeof(struct nd_neighbor_solicit))
845 nd6_ns_input(m, off, icmp6len);
847 nd6_ns_input(m, off, icmp6len);
856 nd6_ns_input(n, off, icmp6len);
858 nd6_ns_input(n, off, icmp6len);
866 if (icmp6len < sizeof(struct nd_neighbor_advert))
876 nd6_na_input(m, off, icmp6len);
878 nd6_na_input(m, off, icmp6len);
887 nd6_na_input(n, off, icmp6len);
889 nd6_na_input(n, off, icmp6len);
897 if (icmp6len < sizeof(struct nd_redirect))
926 if (icmp6len < sizeof(struct icmp6_router_renum))
945 if (icmp6_notify_error(&m, off, icmp6len, code) != 0) {
971 icmp6_notify_error(struct mbuf **mp, int off, int icmp6len, int code)
979 if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
2353 int icmp6len = ntohs(ip6->ip6_plen);
2377 IP6_EXTHDR_CHECK(m, off, icmp6len,);
2380 IP6_EXTHDR_GET(nd_rd, struct nd_redirect *, m, off, icmp6len);
2473 icmp6len -= sizeof(*nd_rd);
2474 nd6_option_init(nd_rd + 1, icmp6len, &ndopts);