aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2015-03-29 02:50:47 +0800
committersunpoet <sunpoet@FreeBSD.org>2015-03-29 02:50:47 +0800
commit74e3ff629111833f61d6ad3a6bd3ee9c8f31e44b (patch)
tree2db705e7d45579f37bed3e82da7c822c9d838a8f /net
parent490436d507d351bebe8555c73799ead77e9fa5bd (diff)
downloadfreebsd-ports-gnome-74e3ff629111833f61d6ad3a6bd3ee9c8f31e44b.tar.gz
freebsd-ports-gnome-74e3ff629111833f61d6ad3a6bd3ee9c8f31e44b.tar.zst
freebsd-ports-gnome-74e3ff629111833f61d6ad3a6bd3ee9c8f31e44b.zip
- Fix incorrect address family for IPv6 netmasks
PR: 198931 Submitted by: dim
Diffstat (limited to 'net')
-rw-r--r--net/mDNSResponder/files/patch-mDNSPosix-mDNSUNP.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mDNSResponder/files/patch-mDNSPosix-mDNSUNP.c b/net/mDNSResponder/files/patch-mDNSPosix-mDNSUNP.c
new file mode 100644
index 000000000000..b7862be80bae
--- /dev/null
+++ b/net/mDNSResponder/files/patch-mDNSPosix-mDNSUNP.c
@@ -0,0 +1,11 @@
+--- mDNSPosix/mDNSUNP.c.orig 2011-12-02 01:39:45.000000000 +0100
++++ mDNSPosix/mDNSUNP.c 2015-03-26 17:08:45.334715000 +0100
+@@ -449,6 +449,8 @@ struct ifi_info *get_ifi_info(int family
+ ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in6));
+ if (ifi->ifi_netmask == NULL) goto gotError;
+ sinptr6 = (struct sockaddr_in6 *) &ifr6.ifr_ifru.ifru_addr;
++ /* SIOCGIFNETMASK_IN6 does not always set sin6_family */
++ sinptr6->sin6_family = AF_INET6;
+ memcpy(ifi->ifi_netmask, sinptr6, sizeof(struct sockaddr_in6));
+ }
+ #endif