[ntp:questions] Using ntpd with custom clock

gabs gsricalde at gmail.com
Tue Oct 16 14:31:09 UTC 2012


On Tuesday, October 16, 2012 1:51:00 AM UTC+8, Felipe Blauth wrote:
> Hello.
> 
> I'd like to build a custom version of ntpd with a single change: instead
> of synchronizing with operating system clock, it would synchronize with a
> custom clock.
>
> I can mimic operating system calls (like gettimeofday and settimeofday).
> I'm just starting out and would appreciate some directions on doing this.
> If someone could point me a file or a function, it would be of great help.
> 
> Thank you
> 
> 
> -- 
> Felipe Menegola Blauth

LD_PRELOAD maybe your answer, it allows you to replace functions from
shared libraries loaded by ntpd with your own.



More information about the questions mailing list