Lines Matching defs:nd_ns
102 struct nd_neighbor_solicit *nd_ns;
117 nd_ns = (struct nd_neighbor_solicit *)((caddr_t)ip6 + off);
119 IP6_EXTHDR_GET(nd_ns, struct nd_neighbor_solicit *, m, off, icmp6len);
120 if (nd_ns == NULL) {
126 taddr6 = nd_ns->nd_ns_target;
159 icmp6len -= sizeof(*nd_ns);
160 nd6_option_init(nd_ns + 1, icmp6len, &ndopts);
348 struct nd_neighbor_solicit *nd_ns;
360 maxlen = sizeof(*ip6) + sizeof(*nd_ns);
389 icmp6len = sizeof(*nd_ns);
474 nd_ns = (struct nd_neighbor_solicit *)(ip6 + 1);
475 nd_ns->nd_ns_type = ND_NEIGHBOR_SOLICIT;
476 nd_ns->nd_ns_code = 0;
477 nd_ns->nd_ns_reserved = 0;
478 nd_ns->nd_ns_target = *taddr6;
480 if (IN6_IS_SCOPE_LINKLOCAL(&nd_ns->nd_ns_target))
481 nd_ns->nd_ns_target.s6_addr16[1] = 0;
497 struct nd_opt_hdr *nd_opt = (struct nd_opt_hdr *)(nd_ns + 1);
511 nd_ns->nd_ns_cksum = 0;
512 nd_ns->nd_ns_cksum