diff options
author | ume <ume@FreeBSD.org> | 2003-12-07 11:11:26 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-12-07 11:11:26 +0000 |
commit | 58cb5ad46ce4f6d153fcb51ee3523d84a345c82f (patch) | |
tree | f7790ad91fb2a4cafbedceb0ef9132bb1233b2a0 /sbin/route/route.c | |
parent | 888f0e51c6a3f2c87ff863b9f5116e922a82dfd3 (diff) | |
download | FreeBSD-src-58cb5ad46ce4f6d153fcb51ee3523d84a345c82f.zip FreeBSD-src-58cb5ad46ce4f6d153fcb51ee3523d84a345c82f.tar.gz |
link-local multicast address must be converted to KAME specific
embeded scopeid form.
Reported by: dwmalone
MFC after: 3 days
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r-- | sbin/route/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 452cf87..44da1be 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -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); |