summaryrefslogtreecommitdiff
path: root/net/libnice/patches/patch-ac
blob: 59df2db3467a0a7eb74bf1639b3b1e614186a11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ac,v 1.3 2010/08/09 09:53:30 drochner Exp $

--- agent/interfaces.c.orig	2010-07-20 21:54:40.000000000 +0000
+++ agent/interfaces.c
@@ -49,6 +49,7 @@
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
 
 #ifdef HAVE_GETIFADDRS
 
@@ -198,7 +199,7 @@ nice_interfaces_get_local_ips (gboolean 
       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,