public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/oidentd/files: oidentd-2.0.8-bind-to-ipv6-too.patch
@ 2010-03-21 17:42 Christoph Mende (angelos)
  0 siblings, 0 replies; only message in thread
From: Christoph Mende (angelos) @ 2010-03-21 17:42 UTC (permalink / raw
  To: gentoo-commits

angelos     10/03/21 17:42:27

  Added:                oidentd-2.0.8-bind-to-ipv6-too.patch
  Log:
  Bind to IPv6 as well as IPv4 (bug #308843)
  (Portage version: 2.1.8.3/cvs/Linux i686)

Revision  Changes    Path
1.1                  net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch?rev=1.1&content-type=text/plain

Index: oidentd-2.0.8-bind-to-ipv6-too.patch
===================================================================
Patch to bind to ipv6 socket as well
Patch supplied by Fabian Knittel <fabian.knittel@avona.com>
--- 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
 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-21 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-21 17:42 [gentoo-commits] gentoo-x86 commit in net-misc/oidentd/files: oidentd-2.0.8-bind-to-ipv6-too.patch Christoph Mende (angelos)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox