1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2004-11-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
	value correctly.
This commit is contained in:
Ulrich Drepper
2004-11-10 00:37:05 +00:00
parent 948603eeb0
commit 5d79df57b9
2 changed files with 8 additions and 3 deletions

View File

@ -566,7 +566,7 @@ getifaddrs (struct ifaddrs **ifap)
if (IN6_IS_ADDR_LINKLOCAL (rta_data)
|| IN6_IS_ADDR_MC_LINKLOCAL (rta_data))
((struct sockaddr_in6 *) sa)->sin6_scope_id
= ifam->ifa_scope;
= ifam->ifa_index;
}
break;
@ -613,7 +613,7 @@ getifaddrs (struct ifaddrs **ifap)
if (IN6_IS_ADDR_LINKLOCAL (rta_data) ||
IN6_IS_ADDR_MC_LINKLOCAL (rta_data))
ifas[ifa_index].addr.s6.sin6_scope_id =
ifam->ifa_scope;
ifam->ifa_index;
}
break;
@ -654,7 +654,7 @@ getifaddrs (struct ifaddrs **ifap)
if (IN6_IS_ADDR_LINKLOCAL (rta_data)
|| IN6_IS_ADDR_MC_LINKLOCAL (rta_data))
ifas[ifa_index].broadaddr.s6.sin6_scope_id
= ifam->ifa_scope;
= ifam->ifa_index;
}
break;