Package: minidlna
Version: 1.1.6+dfsg-1
Severity: normal

Dear Maintainer,

I have a Soekris net6501 box having 4 ethernet ports plus an additional network 
card with 2 ports
and a USB wireless stick providing one more interface.
Initially I configured minidlna.conf's network_interface option to all 
interfaces
except the uplink port (5 ethernet and 1 wireless interfaces in total).
Then I wondered, why minidlna wasn't accessible via the wireless interface.

After playing around with the config and reducing the number of 
network_interface options to 4 in total
(3 ethernet and 1 wireless), the wireless access was working fine. Also the 
debug log showed
that it now binds to the wireless address.

After taking a short look into the source code, I found the "culprit" in 
minidlnatypes.h:
#define MAX_LAN_ADDR 4

In total I see two bugs here:

1.)
In minidlna.c there's a log for "Too many interfaces (max: %d), ignoring %s\n" 
in case the maximum is reached.
However, when more than 4 interfaces are defined in the config file, I don't 
see this error in the log file.

2.)
I admit that my setup and the amount of network interfaces is quite "unusal" 
for a typical home network.
But nevertheless, a MAX_LAN_ADDR of 4 is an "artificial" restriction for my 
case and therefore this is a bug for me.

Thanks.


-- System Information:
Debian Release: 9.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_CTYPE to 
default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968), LANGUAGE=C (charmap=locale: Cannot set LC_CTYPE to default 
locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages minidlna depends on:
ii  adduser          3.115
ii  libavformat57    7:3.2.9-1~deb9u1
ii  libavutil55      7:3.2.9-1~deb9u1
ii  libc6            2.24-11+deb9u1
ii  libexif12        0.6.21-2+b2
ii  libflac8         1.3.2-1
ii  libid3tag0       0.15.1b-12
ii  libjpeg62-turbo  1:1.5.1-2
ii  libogg0          1.3.2-1
ii  libsqlite3-0     3.16.2-5+deb9u1
ii  libvorbis0a      1.3.5-4
ii  lsb-base         9.20161125

minidlna recommends no packages.

minidlna suggests no packages.

-- Configuration Files:
/etc/minidlna.conf changed:
media_dir=A,/var/lib/minidlna/music
media_dir=V,/var/lib/minidlna/videos
media_dir=P,/var/lib/minidlna/pictures
log_level=debug
network_interface=enp6s0
network_interface=enp10s0
network_interface=enp11s0
network_interface=wlx7cdd9087c558
port=8200
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg
album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg
album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg


-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "en_US.UTF-8",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Reply via email to