Package: atftpd Version: 0.8.0-3 Severity: normal Tags: ipv6 patch upstream X-Debbugs-Cc: kaspa...@fit.vutbr.cz
Dear Maintainer, * What led up to the situation? default instalation * What exactly did you do (or not do) that was effective (or ineffective)? with current source code tftpd.c if I do not specify exact address to listen on, line 275 applies: if (strlen(tftpd_addr) == 0) { memset(&sa, 0, sizeof(sa)); fprintf(stderr, "len 0\n"); sa.ss_family = AF_INET; } this forces the server to listen on all interfaces, but IPv4 only. Changin the last line to sa.ss_family = AF_INET6; causes the server to listen on IPv6 (allowing IPv4 as well). Could you please consider to apply this change to enable support for both IPv6 and IPv4. Currently to my knowled, only IPv4 OR IPv6 can be used and for IPv6 only exact address set to listen on is possible (combination of --bind-address IPv6_ADDRSS and --port 0 have to be used, which is somewhat strange). -- System Information: Debian Release: 12.0 merged-usr: no Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-20-amd64 (SMP w/24 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) LSM: AppArmor: enabled Versions of packages atftpd depends on: ii debconf [debconf-2.0] 1.5.82 ii init-system-helpers 1.65.2devuan1 ii libc6 2.36-9+deb12u7 ii libpcre2-8-0 10.42-1 ii libwrap0 7.6.q-32 atftpd recommends no packages. Versions of packages atftpd suggests: ii logrotate 3.21.0-1 -- debconf information: atftpd/verbosity: 5 (LOG_NOTICE) atftpd/mcast_addr: 239.239.239.0-255 atftpd/retry-timeout: 5 atftpd/timeout: true atftpd/maxthread: 100 atftpd/multicast: true atftpd/logtofile: false atftpd/blksize: true atftpd/logfile: /var/log/atftpd.log atftpd/port: 69 atftpd/tftpd-timeout: 300 atftpd/windowsize: true atftpd/tsize: true atftpd/basedir: /srv/tftp atftpd/ttl: 1 atftpd/mcast_port: 1758