mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 05:55:07 -05:00
ntp: ignore zero HW timestamps
Apparently, zero HW timestamps are possible with buggy drivers/HW.
This commit is contained in:
@@ -536,7 +536,7 @@ NIO_Linux_ProcessMessage(NTP_Remote_Address *remote_addr, NTP_Local_Address *loc
|
|||||||
if (!UTI_IsZeroTimespec(&ts3.ts[0])) {
|
if (!UTI_IsZeroTimespec(&ts3.ts[0])) {
|
||||||
LCL_CookTime(&ts3.ts[0], &local_ts->ts, &local_ts->err);
|
LCL_CookTime(&ts3.ts[0], &local_ts->ts, &local_ts->err);
|
||||||
local_ts->source = NTP_TS_KERNEL;
|
local_ts->source = NTP_TS_KERNEL;
|
||||||
} else {
|
} else if (!UTI_IsZeroTimespec(&ts3.ts[2])) {
|
||||||
iface = get_interface(if_index);
|
iface = get_interface(if_index);
|
||||||
if (iface) {
|
if (iface) {
|
||||||
process_hw_timestamp(iface, &ts3.ts[2], local_ts, !is_tx ? length : 0,
|
process_hw_timestamp(iface, &ts3.ts[2], local_ts, !is_tx ? length : 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user