diff options
author | 2010-03-21 17:42:28 +0000 | |
---|---|---|
committer | 2010-03-21 17:42:28 +0000 | |
commit | 58e706a19550a4b16f3bc8058425447a3526f9e5 (patch) | |
tree | 91fba3b2177c05ae56453c00cc3afe22518915fe /net-misc/oidentd/files | |
parent | Version bump to 0.9.1 Bug #3104830 (diff) | |
download | gentoo-2-58e706a19550a4b16f3bc8058425447a3526f9e5.tar.gz gentoo-2-58e706a19550a4b16f3bc8058425447a3526f9e5.tar.bz2 gentoo-2-58e706a19550a4b16f3bc8058425447a3526f9e5.zip |
Bind to IPv6 as well as IPv4 (bug #308843)
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'net-misc/oidentd/files')
-rw-r--r-- | net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch b/net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch new file mode 100644 index 000000000000..b3b0e5100337 --- /dev/null +++ b/net-misc/oidentd/files/oidentd-2.0.8-bind-to-ipv6-too.patch @@ -0,0 +1,17 @@ +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 + |