diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-12-08 06:43:39 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2005-12-08 06:43:39 +0000 |
| commit | 4a3df7fe7bd7ef2675111bfe56a2ab7ae4a6ab5e (patch) | |
| tree | 401206be239c50f1623c0b776d5bfa71e03d7344 /sys/netinet6/nd6_nbr.c | |
| parent | d5989f64cfd386eb1c9c3483b361dc3c86cfb589 (diff) | |
the response NS to a DAD NS was not sent correctly due to the
invalid destination address.
Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp>
MFC after: 1 day
Notes
svn path=/head/; revision=153227
Diffstat (limited to 'sys/netinet6/nd6_nbr.c')
| -rw-r--r-- | sys/netinet6/nd6_nbr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 94c00ee8660f..f762315a6739 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; |
