Lines Matching defs:icmp6len
407 int code, error, icmp6len, ip6len, noff, off, sum;
428 icmp6len = m->m_pkthdr.len - off;
429 if (icmp6len < sizeof(struct icmp6_hdr)) {
454 if ((sum = in6_cksum(m, IPPROTO_ICMPV6, off, icmp6len)) != 0) {
621 if (mld_input(&m, off, icmp6len) != 0) {
636 if (icmp6len == sizeof(struct icmp6_hdr) + 4)
638 else if (icmp6len >= sizeof(struct icmp6_nodeinfo))
742 if (icmp6len < sizeof(struct nd_router_solicit))
745 if (m->m_len < off + icmp6len) {
746 m = m_pullup(m, off + icmp6len);
760 nd6_rs_input(m, off, icmp6len);
770 if (icmp6len < sizeof(struct nd_router_advert))
780 nd6_ra_input(m, off, icmp6len);
790 if (icmp6len < sizeof(struct nd_neighbor_solicit))
800 nd6_ns_input(m, off, icmp6len);
810 if (icmp6len < sizeof(struct nd_neighbor_advert))
820 nd6_na_input(m, off, icmp6len);
830 if (icmp6len < sizeof(struct nd_redirect))
850 if (icmp6len < sizeof(struct icmp6_router_renum))
869 if (icmp6_notify_error(&m, off, icmp6len, code) != 0) {
898 icmp6_notify_error(struct mbuf **mp, int off, int icmp6len, int code)
908 if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
2214 int icmp6len, is_onlink, is_router, lladdrlen;
2230 icmp6len = ntohs(ip6->ip6_plen);
2231 if (m->m_len < off + icmp6len) {
2232 m = m_pullup(m, off + icmp6len);
2330 icmp6len -= sizeof(*nd_rd);
2331 nd6_option_init(nd_rd + 1, icmp6len, &ndopts);