link-local multicast address must be converted to KAME specific
embeded scopeid form. Reported by: dwmalone MFC after: 3 days
This commit is contained in:
parent
d0265773dc
commit
711eaadb3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123234
@ -982,7 +982,7 @@ getaddr(which, s, hpp)
|
||||
memcpy(&su->sin6, res->ai_addr, sizeof(su->sin6));
|
||||
#ifdef __KAME__
|
||||
if ((IN6_IS_ADDR_LINKLOCAL(&su->sin6.sin6_addr) ||
|
||||
IN6_IS_ADDR_LINKLOCAL(&su->sin6.sin6_addr)) &&
|
||||
IN6_IS_ADDR_MC_LINKLOCAL(&su->sin6.sin6_addr)) &&
|
||||
su->sin6.sin6_scope_id) {
|
||||
*(u_int16_t *)&su->sin6.sin6_addr.s6_addr[2] =
|
||||
htons(su->sin6.sin6_scope_id);
|
||||
|
Loading…
Reference in New Issue
Block a user