ptp: Work around bug in ptpd in default configuration
authorSebastian Dröge <sebastian@centricular.com>
Wed, 17 May 2023 07:01:30 +0000 (10:01 +0300)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 19 May 2023 16:32:44 +0000 (17:32 +0100)
commit324f4792aefb716eceedabd3572ed843224fa943
tree905400d68991e99aab6c2d33a9ee3ed3c9e1d9dc
parent9994bbbd4ce8ccd4b6c8963199799fc8855b5056
ptp: Work around bug in ptpd in default configuration

ptpd is defaulting to the hybrid mode, and was sending invalid multicast
PTP messages in that configuration until ce96c742a88792a8d92deebaf03927e1b367f4a9.
While this commit was made in 2015 there was no release in the meantime.

Work around this by detecting this case and defaulting to the default
values for the given intervals as given by the PTP standard.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4683>
subprojects/gstreamer/libs/gst/net/gstptpclock.c