openbsd-ports/net/libnice/patches/patch-agent_interfaces_c
jasper 1ab3df167a - update libnice to 0.1.0
- various cleanups

from tom murphy (MAINTAINER) with tweaks by me.
2011-03-02 07:32:04 +00:00

21 lines
749 B
Plaintext

$OpenBSD: patch-agent_interfaces_c,v 1.3 2011/03/02 07:32:04 jasper Exp $
--- agent/interfaces.c.orig Wed Dec 15 01:53:05 2010
+++ agent/interfaces.c Sat Feb 19 09:45:19 2011
@@ -49,6 +49,7 @@
#include <net/if.h>
#include <net/if_arp.h>
#include <arpa/inet.h>
+#include <netinet/in.h>
#ifdef HAVE_GETIFADDRS
@@ -197,7 +198,7 @@ nice_interfaces_get_local_ips (gboolean include_loopba
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 ((struct in6_addr *)sa6->sin6_addr.s6_addr))
continue;
if (inet_ntop (AF_INET6, &sa6->sin6_addr, addr_as_string,