Your message dated Thu, 19 Jul 2012 16:17:44 +0000
with message-id <[email protected]>
and subject line Bug#544089: fixed in tftp-hpa 5.2-4
has caused the Debian Bug report #544089,
regarding does not start without ipv6 kernel support
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.)


-- 
544089: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544089
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: tftpd-hpa
Version: 5.0-5
Severity: normal

Hi,

I've recently upgraded tftpd-hpa, which stopped working. In my
daemon.log, I see:

        cannot open IPv6 socket, disable IPv6: Address family not supported
        by protocol
        Cannot set nonblock flag on socket: Bad file descriptor

suspecting that these are related, I had a look at the source. It turns
out that the code has support of continuing without ipv6 if the ipv6
fails but ipv4 is opened succesfully, but it even does some stuff with
the ipv6 socket, even when it failed to open, resulting in this error
and the daemon quitting.

In tftpd.c, around line 536, I see:

        if (ai_fam != AF_INET) {
            fd6 = socket(AF_INET6, SOCK_DGRAM, 0);
            if (fd6 < 0) {
                if (fd4 < 0) {
                    syslog(LOG_ERR, "cannot open IPv6 socket: %m");
                    exit(EX_OSERR);
                } else {
                    syslog(LOG_ERR,
                           "cannot open IPv6 socket, disable IPv6: %m");
                }
            }
#ifndef __CYGWIN__
            set_socket_nonblock(fd6, 1);
#endif
            memset(&bindaddr6, 0, sizeof bindaddr6);
            bindaddr6.sin6_family = AF_INET6;
            bindaddr6.sin6_port = htons(IPPORT_TFTP);
        }

It would make sense to move the last four lines into an else of the second if
(fd6 < 0). Perhaps other changes are required as well, I did not test this.

The reason that the ipv6 socket fails to open is that I'm running a custom
kernel with ipv6 disabled, I expect this issue will not bite users that
run a stock Debian kernel, so I'm not giving this bug increased
severity.

Gr.

Matthijs

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-rc4 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages tftpd-hpa depends on:
ii  adduser                       3.110      add and remove users and groups
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  libc6                         2.9-25     GNU C Library: Shared libraries
ii  libwrap0                      7.6.q-18   Wietse Venema's TCP wrappers libra

tftpd-hpa recommends no packages.

Versions of packages tftpd-hpa suggests:
pn  syslinux-common               <none>     (no description available)

-- debconf information excluded



--- End Message ---
--- Begin Message ---
Source: tftp-hpa
Source-Version: 5.2-4

We believe that the bug you reported is fixed in the latest version of
tftp-hpa, 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.
Daniel Baumann <[email protected]> (supplier of updated 
tftp-hpa 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: SHA1

Format: 1.8
Date: Thu, 19 Jul 2012 16:33:37 +0200
Source: tftp-hpa
Binary: tftp-hpa tftpd-hpa
Architecture: source i386
Version: 5.2-4
Distribution: unstable
Urgency: low
Maintainer: Daniel Baumann <[email protected]>
Changed-By: Daniel Baumann <[email protected]>
Description: 
 tftp-hpa   - HPA's tftp client
 tftpd-hpa  - HPA's tftp server
Closes: 544089
Changes: 
 tftp-hpa (5.2-4) unstable; urgency=low
 .
   * Adding note to readme about ipv6 kernel support (Closes: #544089).
Checksums-Sha1: 
 5da4c0ee5e81df0e239b4025fcf26e97118a36d1 1206 tftp-hpa_5.2-4.dsc
 434954f644f7660eae4779f3207a3398c2991dc1 21652 tftp-hpa_5.2-4.debian.tar.xz
 97272bba94f1c0b2d42a757a3737331b754ff59e 26732 tftp-hpa_5.2-4_i386.deb
 429d3640f524fa2fa1fbfee771044cac4e6272d8 47090 tftpd-hpa_5.2-4_i386.deb
Checksums-Sha256: 
 e28f3a6345496d0b9d8f4985e1f4290a760ab46419e4eccd621adfb16f4245f2 1206 
tftp-hpa_5.2-4.dsc
 a3cb5eb07e89d3db8ebdf47690908e3e1ba6a91277619087ac70476bb8195a48 21652 
tftp-hpa_5.2-4.debian.tar.xz
 7569cfc21684276624d9a94a1d0aef6fa2f37f8aaa1b5d60c81cfae49b717289 26732 
tftp-hpa_5.2-4_i386.deb
 1f9ea26c47a311e686eb330e081e9ad4bf1fa026daf2b629e1adfd156258f880 47090 
tftpd-hpa_5.2-4_i386.deb
Files: 
 54c4fac48f397cb42e9daaee4d4129e9 1206 net extra tftp-hpa_5.2-4.dsc
 a40ae996d9f9e5d636f3bc3328b126bd 21652 net extra tftp-hpa_5.2-4.debian.tar.xz
 45742dfb53472ee5c3eecdf684c424ae 26732 net extra tftp-hpa_5.2-4_i386.deb
 a4409a07230b54113c8459aa71347aad 47090 net extra tftpd-hpa_5.2-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAlAIMQEACgkQ+C5cwEsrK57GEQCdHoZar84QLuPBWFOAosjVASYk
sggAn1PYkL23ahMBhEWa6uNu5mwz7il3
=8k+J
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to