Commit 17f2117b authored by Timothy Redaelli's avatar Timothy Redaelli Committed by Youness Alaoui

Use IN6_IS_ADDR_LINKLOCAL in a more portable way

parent 4eac91be
...@@ -197,7 +197,7 @@ nice_interfaces_get_local_ips (gboolean include_loopback) ...@@ -197,7 +197,7 @@ nice_interfaces_get_local_ips (gboolean include_loopback)
struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr; struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)ifa->ifa_addr;
/* Skip link-local addresses, they require a scope */ /* 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; continue;
if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string, if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment