[Nice] [PATCH 4/4] Use IN6_IS_ADDR_LINKLOCAL in a more portable way

Timothy Redaelli timothy at redaelli.eu
Thu Mar 31 06:27:40 PDT 2011


---
 agent/interfaces.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/agent/interfaces.c b/agent/interfaces.c
index 443f4ab..9061884 100644
--- a/agent/interfaces.c
+++ b/agent/interfaces.c
@@ -197,7 +197,7 @@ nice_interfaces_get_local_ips (gboolean include_loopback)
       struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
 
       /* Skip link-local addresses, they require a scope */
-      if (IN6_IS_ADDR_LINKLOCAL (sa6->sin6_addr.s6_addr))
+      if (IN6_IS_ADDR_LINKLOCAL (&sa6->sin6_addr))
         continue;
 
       if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
-- 
1.7.4.2



More information about the Nice mailing list