From 4a3df7fe7bd7ef2675111bfe56a2ab7ae4a6ab5e Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Thu, 8 Dec 2005 06:43:39 +0000 Subject: [PATCH] the response NS to a DAD NS was not sent correctly due to the invalid destination address. Submitted by: JINMEI Tatuya MFC after: 1 day --- sys/netinet6/nd6_nbr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 94c00ee8660..f762315a673 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -916,11 +916,11 @@ nd6_na_output(ifp, daddr6_0, taddr6, flags, tlladdr, sdl0) ip6->ip6_hlim = 255; if (IN6_IS_ADDR_UNSPECIFIED(&daddr6)) { /* reply to DAD */ - ip6->ip6_dst.s6_addr16[0] = IPV6_ADDR_INT16_MLL; - ip6->ip6_dst.s6_addr16[1] = 0; - ip6->ip6_dst.s6_addr32[1] = 0; - ip6->ip6_dst.s6_addr32[2] = 0; - ip6->ip6_dst.s6_addr32[3] = IPV6_ADDR_INT32_ONE; + daddr6.s6_addr16[0] = IPV6_ADDR_INT16_MLL; + daddr6.s6_addr16[1] = 0; + daddr6.s6_addr32[1] = 0; + daddr6.s6_addr32[2] = 0; + daddr6.s6_addr32[3] = IPV6_ADDR_INT32_ONE; if (in6_setscope(&daddr6, ifp, NULL)) goto bad;