From 5f3df6134c6b637cc5dc3f25af3a761221f3141f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 17 Aug 2004 05:50:13 +0000 Subject: [PATCH] 1677. [bug] IN6_IS_ADDR_MC_NODELOCAL() addresses can also have symbolic scope id's. --- lib/bind/irs/getaddrinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bind/irs/getaddrinfo.c b/lib/bind/irs/getaddrinfo.c index 291fba1646..e08cf78424 100644 --- a/lib/bind/irs/getaddrinfo.c +++ b/lib/bind/irs/getaddrinfo.c @@ -1092,7 +1092,8 @@ ip6_str2scopeid(char *scope, struct sockaddr_in6 *sin6, return (0); #ifdef USE_IFNAMELINKID - if (IN6_IS_ADDR_LINKLOCAL(a6) || IN6_IS_ADDR_MC_LINKLOCAL(a6)) { + if (IN6_IS_ADDR_LINKLOCAL(a6) || IN6_IS_ADDR_MC_LINKLOCAL(a6) || + IN6_IS_ADDR_MC_NODELOCAL(a6)) { /* * Using interface names as link indices can be allowed * only when we can assume a one-to-one mappings between