/trunk/debian/patches/ipv6_v6only.patch |
---|
0,0 → 1,18 |
--- a/lib/os.c |
+++ b/lib/os.c |
@@ -217,6 +217,15 @@ int *os_bind_inet_socket(unsigned long p |
close(sockfd); |
return(NIL); |
} |
+#if defined(IPV6_V6ONLY) && defined(AF_INET6) |
+ if (ai->ai_family == AF_INET6) { |
+ if (setsockopt |
+ (sockfd, IPPROTO_IPV6, IPV6_V6ONLY, (void *) &optval, sizeof(int))) |
+ log_misc(("[os_bind_inet_socket()] setsockopt() failed: " |
+ "couldn't set IPV6_V6ONLY: %s"), strerror(errno)); |
+ } |
+#endif |
+ |
/* bind() as Internet domain socket */ |
memcpy(&serv_addr, ai->ai_addr, ai->ai_addrlen); |
/trunk/debian/patches/series |
---|
4,3 → 4,4 |
unbrand_cam_template.patch |
template_sdk.patch |
no_db_version_check.patch |
ipv6_v6only.patch |
/trunk/debian/changelog |
---|
1,3 → 1,12 |
prayer (1.3.3-dfsg1-3) unstable; urgency=high |
* ipv6_v6only.patch (new): Set the IPV6_V6ONLY socket option on |
AF_INET6 sockets; since Prayer by default enumerates available address |
families and calls bind() once for each, conflicts will occur |
otherwise (Closes: #607261). |
-- Magnus Holmgren <holmgren@debian.org> Thu, 16 Dec 2010 20:16:41 +0100 |
prayer (1.3.3-dfsg1-2) unstable; urgency=high |
* Convert (trivially, since CDBS with quilt was already used) to source |