[Bug 771530] Multicast interface not used for group join setsockopt call

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Sep 17 11:43:03 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=771530

--- Comment #2 from Arkver <ian.arkver.dev at gmail.com> ---
Further digging shows this in Glib/Gio's gsocket.c

#ifdef HAVE_IP_MREQN
      if (iface)
        mc_req.imr_ifindex = if_nametoindex (iface);
      else
        mc_req.imr_ifindex = 0; /* Pick any.  */

The imr_interface field is not used, and if_nametoindex looks up the interface
name, not the interface's ip addr.

I changed my rtsp server code to have this instead:

gst_rtsp_media_factory_set_multicast_iface(factory, "eth0");

And now the multicast join works without a default route.

So, this bug isn't really a bug at all, except maybe to note that some
documentation for gst_rtsp_media_factory_set_multicast_iface with info on what
was expected for the parameters would be nice.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list