Author: baggins                      Date: Fri Aug 20 09:36:35 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- properly bind on ipv6 address, see 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520134
  for details

---- Files affected:
packages/oidentd:
   oidentd-bind-to-ipv6-too.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/oidentd/oidentd-bind-to-ipv6-too.patch
diff -u /dev/null packages/oidentd/oidentd-bind-to-ipv6-too.patch:1.1
--- /dev/null   Fri Aug 20 11:36:35 2010
+++ packages/oidentd/oidentd-bind-to-ipv6-too.patch     Fri Aug 20 11:36:30 2010
@@ -0,0 +1,17 @@
+Patch to bind to ipv6 socket as well
+Patch supplied by Fabian Knittel <[email protected]>
+--- oidentd-2.0.8//src/oidentd_inet_util.c     2006-05-22 02:31:19.000000000 
+0200
++++ oidentd-2.0.8.new//src/oidentd_inet_util.c 2010-03-01 20:26:11.000000000 
+0100
+@@ -60,6 +60,12 @@
+ #ifdef WANT_IPV6
+               case AF_INET6:
+                       SIN6(ai->ai_addr)->sin6_port = listen_port;
++
++                      if (setsockopt(listenfd, IPPROTO_IPV6, IPV6_V6ONLY, 
&one,
++                                                      sizeof(one)) != 0) {
++                              debug("setsockopt IPV6_V6ONLY: %s", 
strerror(errno));
++                              return (-1);
++                      }
+                       break;
+ #endif
+ 
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to