Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 10 Nov 2004 00:37:05 +0000 (00:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 10 Nov 2004 00:37:05 +0000 (00:37 +0000)
2004-11-09  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
value correctly.

ChangeLog
sysdeps/unix/sysv/linux/ifaddrs.c

index 0cc3aba..4c3d561 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-09  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/ifaddrs.c: Determine sin6_scope_id field
+       value correctly.
+
 2004-11-04  Jakub Jelinek  <jakub@redhat.com>
 
        * libio/fileops.c (_IO_new_file_seekoff): If mode is 0 and
index f4dce4c..77f6159 100644 (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;