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 795268 - udpsrc listens on Legacy IP only
udpsrc listens on Legacy IP only
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.12.4
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-04-14 19:07 UTC by David Woodhouse
Modified: 2018-11-03 15:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Woodhouse 2018-04-14 19:07:30 UTC
Using 'udpsrc port=7200' in my pipeline only listens on the Legacy IP address 0.0.0.0 by default, instead of [::].
Comment 1 Sebastian Dröge (slomo) 2018-04-15 08:26:05 UTC
That's because 0.0.0.0 is the default setting of the corresponding property on udpsrc. Switching it to anything else now would likely break existing applications that assume 0.0.0.0 is the default and that send data to 0.0.0.0 instead of [::]
Comment 2 David Woodhouse 2018-04-15 19:08:37 UTC
In most cases IPV6_V6ONLY isn't set, so listening on [::] would also accept Legacy IP connections too. The conventional trick is to bind to [::] first, then also attempt to bind to 0.0.0.0. If the latter fails, the former is accepting Legacy IP.

There should be no need for compatibility concerns.
Comment 3 Sebastian Dröge (slomo) 2018-04-16 08:03:39 UTC
While this works on Linux at least, if I remember this behaves different on Windows and also BSDs.
Comment 4 David Woodhouse 2018-04-16 17:44:54 UTC
Right. Windows and BSDs (and Linux with IPV6_V6ONLY) are why you listen on *both* [::] and 0.0.0.0 at the same time. Sometime the latter bind will fail because the first has covered it. Other times, you end up with both. And it works everywhere.
Comment 5 GStreamer system administrator 2018-11-03 15:29:03 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org'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.freedesktop.org/gstreamer/gst-plugins-good/issues/464.