lfpinit() signed or unsigned?

Hal Murray hmurray at megapathdsl.net
Fri Mar 10 03:46:46 UTC 2017


gem at rellim.com said:
> Yeah, I see that now.  But as you pointed out, NTP time is already modulo,
> so it only fails immediately after the rollover.

> But that rollover is gonna be rough... 

I think it should be clean if/after we get the code right.

Assume we have 64 bit Unix/POSIX time_t.  The only interesting case is 
converting NTP time to Unix time.  That should work the same way that GPS 
week rollover does.  You need to figure out via some out-of-band source what 
the time is within 68 years.  The build time of of ntpd is one source.  The 
file system is another, but that can go crazy if you somehow get the time set 
way in the future.  The operator is another option.  Maybe ntpv5 will provide 
a way.  Maybe one of the sec options.

Does the current code have the right variable?  Have you found it?  Is there 
more than one place that does NTP to Unix conversion?


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list