ntp: ignore zero HW timestamps

Apparently, zero HW timestamps are possible with buggy drivers/HW.
This commit is contained in:
Miroslav Lichvar 2017-01-05 15:37:34 +01:00
parent 4432f29bd2
commit c44d282f0b

View file

@ -536,7 +536,7 @@ NIO_Linux_ProcessMessage(NTP_Remote_Address *remote_addr, NTP_Local_Address *loc
if (!UTI_IsZeroTimespec(&ts3.ts[0])) {
LCL_CookTime(&ts3.ts[0], &local_ts->ts, &local_ts->err);
local_ts->source = NTP_TS_KERNEL;
} else {
} else if (!UTI_IsZeroTimespec(&ts3.ts[2])) {
iface = get_interface(if_index);
if (iface) {
process_hw_timestamp(iface, &ts3.ts[2], local_ts, !is_tx ? length : 0,