1677. [bug] IN6_IS_ADDR_MC_NODELOCAL() addresses can also have

symbolic scope id's.
This commit is contained in:
Mark Andrews 2004-08-17 05:50:13 +00:00
parent aee5e9cbac
commit 5f3df6134c

View file

@ -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