Lines Matching defs:icmp6len
375 int icmp6len = m->m_pkthdr.len - *offp;
389 if (icmp6len < sizeof(struct icmp6_hdr)) {
408 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
602 if (icmp6len < sizeof(struct mld6_hdr))
627 if (icmp6len < sizeof(struct mld6_hdr)) /* necessary? */
645 if (icmp6len < sizeof(struct icmp6_nodeinfo))
678 if (icmp6len < sizeof(struct nd_router_solicit))
688 nd6_rs_input(m, off, icmp6len);
692 nd6_rs_input(n, off, icmp6len);
701 if (icmp6len < sizeof(struct nd_router_advert))
711 nd6_ra_input(m, off, icmp6len);
715 nd6_ra_input(n, off, icmp6len);
724 if (icmp6len < sizeof(struct nd_neighbor_solicit))
734 nd6_ns_input(m, off, icmp6len);
738 nd6_ns_input(n, off, icmp6len);
747 if (icmp6len < sizeof(struct nd_neighbor_advert))
757 nd6_na_input(m, off, icmp6len);
761 nd6_na_input(n, off, icmp6len);
770 if (icmp6len < sizeof(struct nd_redirect))
793 if (icmp6len < sizeof(struct icmp6_router_renum))
823 if (icmp6_notify_error(m, off, icmp6len, code)) {
854 icmp6_notify_error(m, off, icmp6len, code)
856 int off, icmp6len, code;
863 if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
2231 int icmp6len = ntohs(ip6->ip6_plen);
2254 IP6_EXTHDR_CHECK(m, off, icmp6len, return);
2257 IP6_EXTHDR_GET(nd_rd, struct nd_redirect *, m, off, icmp6len);
2349 icmp6len -= sizeof(*nd_rd);
2350 nd6_option_init(nd_rd + 1, icmp6len, &ndopts);