Your message dated Tue, 04 Sep 2012 17:47:46 +0000
with message-id <[email protected]>
and subject line Bug#686242: fixed in gnutls28 3.1.1-1
has caused the Debian Bug report #686242,
regarding gnutls-serv does not listen on ipv6
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
686242: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686242
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gnutls-bin
Version: 3.0.22-2
Severity: normal
Tags: ipv6 patch
On Linux with /proc/sys/net/ipv6/bindv6only == 0 (which is now the
default), gnutls-serv cannot listen on ipv6:
$ gnutls-serv -p 5544
Set static Diffie-Hellman parameters, consider --dhparams.
HTTP Server listening on IPv4 0.0.0.0 port 5544...done
HTTP Server listening on IPv6 :: port 5544...bind() failed: Address already in
use
Attached patch fixes that:
$ ./gnutls-serv -p 5555
Set static Diffie-Hellman parameters, consider --dhparams.
HTTP Server listening on IPv4 0.0.0.0 port 5555...done
HTTP Server listening on IPv6 :: port 5555...done
The patch works both against 3.0.20-3 and 3.0.22-2.
-- System Information:
Debian Release: wheezy/sid
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages gnutls-bin depends on:
ii libc6 2.13-35
ii libgmp10 2:5.0.5+dfsg-2
ii libgnutls28 3.0.22-2
ii libhogweed2 2.4-2
ii libidn11 1.25-2
ii libnettle4 2.4-2
ii libopts25 1:5.12-0.1
ii libp11-kit0 0.12-3
ii libtasn1-3 2.13-2
ii zlib1g 1:1.2.7.dfsg-13
gnutls-bin recommends no packages.
gnutls-bin suggests no packages.
-- no debconf information
Author: Bernhard R. Link <[email protected]>
Description: fix failure to listen on ipv6 addresses on Linux
With /proc/sys/net/ipv6/bindv6only being 0 by default on Linux,
gnutls-serv fails to listen on ipv6 as is first listens on ipv4.
This patch sets the socket option to limit the ipv6 listening
to ipv6 so it is no longer failing.
--- gnutls28-3.0.20.orig/src/serv.c
+++ gnutls28-3.0.20/src/serv.c
@@ -730,6 +730,17 @@ listen_socket (const char *name, int lis
continue;
}
+#ifdef HAVE_IPV6
+ if (ptr->ai_family == AF_INET6)
+ {
+ yes = 1;
+ /* avoid listen on ipv6 addresses failing
+ * because already listening on ipv4 addresses: */
+ setsockopt (s, IPPROTO_IPV6, IPV6_V6ONLY,
+ (const void *) &yes, sizeof (yes));
+ }
+#endif
+
if (socktype == SOCK_STREAM)
{
yes = 1;
--- End Message ---
--- Begin Message ---
Source: gnutls28
Source-Version: 3.1.1-1
We believe that the bug you reported is fixed in the latest version of
gnutls28, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Metzler <[email protected]> (supplier of updated gnutls28 package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Format: 1.8
Date: Tue, 04 Sep 2012 19:28:08 +0200
Source: gnutls28
Binary: libgnutls28-dev libgnutls28 libgnutls28-dbg gnutls-bin gnutls-doc
guile-gnutls libgnutlsxx28
Architecture: source all i386
Version: 3.1.1-1
Distribution: experimental
Urgency: low
Maintainer: Debian GnuTLS Maintainers <[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Description:
gnutls-bin - GNU TLS library - commandline utilities
gnutls-doc - GNU TLS library - documentation and examples
guile-gnutls - GNU TLS library - GNU Guile bindings
libgnutls28 - GNU TLS library - main runtime library
libgnutls28-dbg - GNU TLS library - debugger symbols
libgnutls28-dev - GNU TLS library - development files
libgnutlsxx28 - GNU TLS library - C++ runtime library
Closes: 686242
Changes:
gnutls28 (3.1.1-1) experimental; urgency=low
.
* New upstream release.
+ Includes patch by Bernhard R. Link for gnutls-serv listening on ipv6.
Closes: #686242
+ Drop superfluous patches. (40_debugtestsuite 41_use-errno.diff
42_dump-the-errno.diff 43_possiblefix.diff)
+ Bump shlibs.
* Sync version of libgnutls-dev dependency on nettle-dev with the
build-dependency.
Checksums-Sha1:
28a391cfb28eff8e71bb68e9482f2bffbcb88e91 1953 gnutls28_3.1.1-1.dsc
4badef78839de0d2606cb1767f44232fb606d941 4781012 gnutls28_3.1.1.orig.tar.xz
4564f5b7353bd624de307f7dcc558b6457f4f851 28325 gnutls28_3.1.1-1.debian.tar.gz
f302ce0f5655c5705d9ffc81cedeaf419725a2e3 3371950 gnutls-doc_3.1.1-1_all.deb
80f747b6e731d5d3345faa303593c424356441c9 853234
libgnutls28-dev_3.1.1-1_i386.deb
430904e6ba8ca27e63c556909d46dbda4515fe98 737946 libgnutls28_3.1.1-1_i386.deb
4f706b49204d65c61d30666e4ce9013579ebf9c3 2217438
libgnutls28-dbg_3.1.1-1_i386.deb
6a52ac4d17cdbeb5df8b52d3f35e117691612fda 449360 gnutls-bin_3.1.1-1_i386.deb
1df23e36a638c811e6fc398821e5d91f3273864d 286572 guile-gnutls_3.1.1-1_i386.deb
e7c45a88154379e3ab3345a1e28a1463ba5a5b37 21516 libgnutlsxx28_3.1.1-1_i386.deb
Checksums-Sha256:
c96eae2e82428bd302b5c14a82776916588281118480f5eb4e311e6f8495d816 1953
gnutls28_3.1.1-1.dsc
303947288cc5663a0d44c6653d0e5986e4075d13824f84c644bc740b928067bb 4781012
gnutls28_3.1.1.orig.tar.xz
79b9e57d589faf148fead16a6ee344dead14ab7385803f557d05af45f3ee448b 28325
gnutls28_3.1.1-1.debian.tar.gz
b6b75e0ce03c0c99582f710a1986ea93b3a26ead191c73556e9e273c80d02554 3371950
gnutls-doc_3.1.1-1_all.deb
223dc6a9eb2e8cd631e3a0ed2dd0007ee7654d0fe1f74411ceb37b2741456123 853234
libgnutls28-dev_3.1.1-1_i386.deb
3a43d88cd642b429e12f51c27b6aab987bdb2ec6cb861ac15cd79f686e11ca2e 737946
libgnutls28_3.1.1-1_i386.deb
26dea3a68c994acfff4641b1dc209d6cf76bd6c7a63a542a8ee9908359496038 2217438
libgnutls28-dbg_3.1.1-1_i386.deb
22b93a512fc9339d770170b4fe8141a42b3fc3c4bcefbf508fd2f4357a7d7030 449360
gnutls-bin_3.1.1-1_i386.deb
b862266ba357c2dea76ecbdfb88a517fa46355424492fde8de58e7a680132309 286572
guile-gnutls_3.1.1-1_i386.deb
c1b6810bd8a7891adbdc4c897bd4fb194abb5bde6a1af9c107108ace386c00d5 21516
libgnutlsxx28_3.1.1-1_i386.deb
Files:
69b87823df89796d809170a83ad4a126 1953 libs optional gnutls28_3.1.1-1.dsc
59c432df79108c74c34a4582c7d7e7e7 4781012 libs optional
gnutls28_3.1.1.orig.tar.xz
c0890c97f1876e0122eae7004679b59a 28325 libs optional
gnutls28_3.1.1-1.debian.tar.gz
54006575007e7671a61fdd334a93f1ae 3371950 doc optional
gnutls-doc_3.1.1-1_all.deb
0d7ce8a8fb6ffa3c6df48b70e86adec8 853234 libdevel optional
libgnutls28-dev_3.1.1-1_i386.deb
10a0e20d09c3ef2bc0dc1eaf959f6056 737946 libs standard
libgnutls28_3.1.1-1_i386.deb
a6ad6e6a3448fbeaa33136d2d32e7207 2217438 debug extra
libgnutls28-dbg_3.1.1-1_i386.deb
1c600d3e238592108824f41843765603 449360 net optional
gnutls-bin_3.1.1-1_i386.deb
83d9914c55ba847a0f01760a06896646 286572 lisp optional
guile-gnutls_3.1.1-1_i386.deb
52d4543329ac2db7584466477b1dccf0 21516 libs extra
libgnutlsxx28_3.1.1-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEAREDAAYFAlBGPBoACgkQHTOcZYuNdmPtjACfXGcTdWm76Gly3/xZe9efYHQm
3bkAnjjwr5IfRs3yPO0kWD2opgQPbbhq
=qkJo
-----END PGP SIGNATURE-----
--- End Message ---