mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
refclock_phc: support ethernet ifname as specifier
This commit allows the user to select a PHC refclock associated with an Ethernet interface by specifying the interface name. This allows the user to handle situations where multiple NICs are exposing PHC devices (or non-NIC PHC device files exist in the system) in a more streamline manner.
This commit is contained in:
committed by
Miroslav Lichvar
parent
81362fa201
commit
6e541afbe9
@@ -74,7 +74,7 @@ static int phc_initialise(RCL_Instance instance)
|
||||
|
||||
path = RCL_GetDriverParameter(instance);
|
||||
|
||||
phc_fd = SYS_Linux_OpenPHC(path, 0);
|
||||
phc_fd = SYS_Linux_OpenPHC(path);
|
||||
if (phc_fd < 0)
|
||||
LOG_FATAL("Could not open PHC");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user