After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775873 - iOS: UDP multicast group joining incompatibilities
iOS: UDP multicast group joining incompatibilities
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2016-12-09 10:27 UTC by Sebastian Dröge (slomo)
Modified: 2018-05-24 19:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2016-12-09 10:27:13 UTC
https://lists.freedesktop.org/archives/gstreamer-devel/2016-December/061928.html

It seems like on iOS, IP_ADD_SOURCE_MEMBERSHIP and MCAST_JOIN_GROUP do slightly different things. GIO does the former, the latter actually seems to work in all cases.

To me this seems like a bug in Apple's code, but we should probably work around this by always doing the latter on iOS (and possibly macOS? It's the same kernel and system libraries after all). Any opinions on this, are you aware of any other differences between these two sockopts?

I would prepare a patch if this is considered like a sensible approach.
Comment 1 dries.langsweirdt 2016-12-09 10:45:49 UTC
From the Linux kernel mailing list, I seem to understand that the difference between IP_ADD_SOURCE_MEMBERSHIP and MCAST_JOIN_GROUP is that the former is IPv4 only, while MCAST_JOIN_GROUP supports both IPv4 and IPv6, so MCAST_JOIN_GROUP looks like a safe choice. Apple has been pushing hard lately for IPv4/IPv6 agnostic apps, so this change, (as in not supporting IP_ADD_SOURCE_MEMBERSHIP any longer) could be part of this effort.

My 2 cents.
Comment 2 Sebastian Dröge (slomo) 2016-12-09 10:55:20 UTC
So maybe we should just use MCAST_JOIN_GROUP always when available, and otherwise fall back to the other?
Comment 3 GNOME Infrastructure Team 2018-05-24 19:18:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1229.