Lines Matching refs:icmp6len
407 int icmp6len = m->m_pkthdr.len - *offp;
426 if (icmp6len < sizeof(struct icmp6_hdr)) {
460 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
620 if (mld_input(m, off, icmp6len) != 0)
633 if (icmp6len == sizeof(struct icmp6_hdr) + 4)
635 else if (icmp6len >= sizeof(struct icmp6_nodeinfo))
734 if (icmp6len < sizeof(struct nd_router_solicit))
737 IP6_EXTHDR_CHECK(m, off, icmp6len, IPPROTO_DONE);
745 nd6_rs_input(m, off, icmp6len);
755 if (icmp6len < sizeof(struct nd_router_advert))
765 nd6_ra_input(m, off, icmp6len);
775 if (icmp6len < sizeof(struct nd_neighbor_solicit))
785 nd6_ns_input(m, off, icmp6len);
795 if (icmp6len < sizeof(struct nd_neighbor_advert))
805 nd6_na_input(m, off, icmp6len);
815 if (icmp6len < sizeof(struct nd_redirect))
835 if (icmp6len < sizeof(struct icmp6_router_renum))
854 if (icmp6_notify_error(&m, off, icmp6len, code) != 0) {
881 icmp6_notify_error(struct mbuf **mp, int off, int icmp6len, int code)
889 if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
2222 int icmp6len = ntohs(ip6->ip6_plen);
2249 IP6_EXTHDR_CHECK(m, off, icmp6len,);
2252 IP6_EXTHDR_GET(nd_rd, struct nd_redirect *, m, off, icmp6len);
2343 icmp6len -= sizeof(*nd_rd);
2344 nd6_option_init(nd_rd + 1, icmp6len, &ndopts);