version 1.56, 2020/09/15 20:28:27 |
version 1.57, 2021/01/16 17:42:52 |
|
|
* XXX: This is a special workaround for KAME kernels. |
* XXX: This is a special workaround for KAME kernels. |
* sin6_scope_id field of SA should be set in the future. |
* sin6_scope_id field of SA should be set in the future. |
*/ |
*/ |
if (IN6_IS_ADDR_LINKLOCAL(in6) || |
if ((IN6_IS_ADDR_LINKLOCAL(in6) || |
IN6_IS_ADDR_MC_LINKLOCAL(in6) || |
IN6_IS_ADDR_MC_LINKLOCAL(in6) || |
IN6_IS_ADDR_MC_INTFACELOCAL(in6)) { |
IN6_IS_ADDR_MC_INTFACELOCAL(in6)) && |
|
sa6->sin6_scope_id == 0) { |
/* XXX: override is ok? */ |
/* XXX: override is ok? */ |
sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *) |
sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *) |
&in6->s6_addr[2]); |
&in6->s6_addr[2]); |