summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Redaelli <timothy@redaelli.eu>2011-03-31 13:27:40 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-03-31 19:39:27 (GMT)
commit17f2117b49aecf015f54d4443617da89f7d684d6 (patch)
tree28c336abd8d4f3e1a1a922a52668c05255c3e8b1
parent4eac91beb3084c4db83932b0ac16e975104d4d5a (diff)
downloadlibnice-17f2117b49aecf015f54d4443617da89f7d684d6.tar.gz
libnice-17f2117b49aecf015f54d4443617da89f7d684d6.tar.xz
Use IN6_IS_ADDR_LINKLOCAL in a more portable way
-rw-r--r--agent/interfaces.c2
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,