mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
ntp: add support for HW timestamping on Linux
Add a new directive to specify interfaces which should be used for HW timestamping. Extend the Linux ntp_io initialization to enable HW timestamping, configure the RX filter using the SIOCSHWTSTAMP ioctl, open their PHC devices, and track them as hwclock instances. When messages with HW timestamps are received, use the PTP_SYS_OFFSET ioctl to make PHC samples for hwclock.
This commit is contained in:
3
conf.h
3
conf.h
@@ -29,6 +29,7 @@
|
||||
#define GOT_CONF_H
|
||||
|
||||
#include "addressing.h"
|
||||
#include "array.h"
|
||||
#include "reference.h"
|
||||
|
||||
extern void CNF_Initialise(int restarted);
|
||||
@@ -118,4 +119,6 @@ extern char *CNF_GetHwclockFile(void);
|
||||
extern int CNF_GetInitSources(void);
|
||||
extern double CNF_GetInitStepThreshold(void);
|
||||
|
||||
extern ARR_Instance CNF_GetHwTsInterfaces(void);
|
||||
|
||||
#endif /* GOT_CONF_H */
|
||||
|
||||
Reference in New Issue
Block a user