Lines Matching refs:nd_rd
2209 struct nd_redirect *nd_rd;
2239 nd_rd = (struct nd_redirect *)((caddr_t)ip6 + off);
2242 redtgt6 = nd_rd->nd_rd_target;
2243 reddst6 = nd_rd->nd_rd_dst;
2330 icmp6len -= sizeof(*nd_rd);
2331 nd6_option_init(nd_rd + 1, icmp6len, &ndopts);
2425 struct nd_redirect *nd_rd;
2517 nd_rd = (struct nd_redirect *)(ip6 + 1);
2518 nd_rd->nd_rd_type = ND_REDIRECT;
2519 nd_rd->nd_rd_code = 0;
2520 nd_rd->nd_rd_reserved = 0;
2523 * nd_rd->nd_rd_target must be a link-local address in
2528 bcopy(router_ll6, &nd_rd->nd_rd_target,
2529 sizeof(nd_rd->nd_rd_target));
2530 bcopy(&sip6->ip6_dst, &nd_rd->nd_rd_dst,
2531 sizeof(nd_rd->nd_rd_dst));
2534 bcopy(&sip6->ip6_dst, &nd_rd->nd_rd_target,
2535 sizeof(nd_rd->nd_rd_target));
2536 bcopy(&sip6->ip6_dst, &nd_rd->nd_rd_dst,
2537 sizeof(nd_rd->nd_rd_dst));
2540 p = (u_char *)(nd_rd + 1);
2669 in6_clearscope(&nd_rd->nd_rd_target);
2670 in6_clearscope(&nd_rd->nd_rd_dst);
2674 nd_rd->nd_rd_cksum = 0;
2675 nd_rd->nd_rd_cksum = in6_cksum(m, IPPROTO_ICMPV6,
2683 *(unsigned short *)(mtag + 1) = nd_rd->nd_rd_type;