pendulum-project / timestamped-socket

An asynchronous UDP socket that supports timestamping
Other
6 stars 5 forks source link

linux: add support for bind_phc #30

Closed cmeissl closed 6 months ago

cmeissl commented 6 months ago

On linux it is possible to create multiple PTP virtual clocks using the sysfs. In this case we need to specify the phc index (virtual clock) we want to use for receiving hardware timestamps.

davidv1992 commented 6 months ago

Failed to notice this during review, but the configure_timestamping function is specialized for the various platforms. Can you modify your pull request to also edit the freebsd version to just ignore the additional parameter?