Bug 226884 - net/minidlna setsockopt with interface index breaks sending of IGMP membership report
Summary: net/minidlna setsockopt with interface index breaks sending of IGMP membershi...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Gleb Smirnoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 22:50 UTC by ascherrer+fbdb
Modified: 2019-01-09 05:33 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (glebius)


Attachments
very crude patch (497 bytes, patch)
2018-03-23 22:50 UTC, ascherrer+fbdb
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ascherrer+fbdb 2018-03-23 22:50:03 UTC
Created attachment 191763 [details]
very crude patch

Overview:

When MiniDLNA receives a "M-SEARCH" message an IGMP membership report message is triggered. This message follows the default route instead of being sent out on the interface MiniDLNA is listening on.

Steps to Reproduce:

1) Configure MiniDLNA to listen on an interface that does not have the default route (and no route for 224.0.0.22) and start it.

2) After MiniDLNA is running, fire up a DLNA client (e.g. VLC)

Actual Results:

The client (VLC) does not discover the MiniDLNA server (immediately)

Expected Results: 

The client (VLC) should discover the MiniDLNA server (immediately)

Build Date & Hardware:

MiniDLNA 1.2.1, FreeBSD 11.1-RELEASE

Additional Information:

"Prior to FreeBSD 7.0, if the imr_interface member is within the network range 0.0.0.0/8, it is treated as an interface index in the system interface MIB, as per the RIP Version 2 MIB Extension (RFC-1724). In versions of FreeBSD since 7.0, this behavior is no longer supported."
https://www.freebsd.org/cgi/man.cgi?query=ip&apropos=0&sektion=4&manpath=FreeBSD+11.1-RELEASE&arch=default&format=html

https://forums.freebsd.org/threads/minidlna-not-discovered-multicast-issue.64947/
http://docs.freebsd.org/cgi/mid.cgi?f85a4da6-a06f-e045-36e0-2d82c67e8239
Comment 1 Gleb Smirnoff freebsd_committer freebsd_triage 2019-01-09 05:33:03 UTC
I think this should be fixed by this:

https://github.com/glebius/minidlna/commit/43573257e45728e070a5f30bd74648c86537e625