about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-11-10 00:37:05 +0000
committerUlrich Drepper <drepper@redhat.com>2004-11-10 00:37:05 +0000
commit5d79df57b913d8b4e367953f3391427c4adac76e (patch)
tree25d68d18aab37be42252e156ad5c2e78baef048e /sysdeps/unix/sysv
parent948603eeb00a10fd301ece8267e1ac4c088126ff (diff)
downloadglibc-5d79df57b913d8b4e367953f3391427c4adac76e.tar.gz
glibc-5d79df57b913d8b4e367953f3391427c4adac76e.tar.xz
glibc-5d79df57b913d8b4e367953f3391427c4adac76e.zip
Update.
2004-11-09  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
	value correctly.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/ifaddrs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/ifaddrs.c b/sysdeps/unix/sysv/linux/ifaddrs.c
index f4dce4cd61..77f6159bf6 100644
--- a/sysdeps/unix/sysv/linux/ifaddrs.c
+++ b/sysdeps/unix/sysv/linux/ifaddrs.c
@@ -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;