mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
d5989f64cf
commit
4a3df7fe7b
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue