[ntp:hackers] order of parsing config file vs processing it (refclock: server vs fudge)

Hal Murray hmurray at megapathdsl.net
Fri Jan 14 03:39:06 UTC 2011


In the old days, the processing code for each line in the config file was 
processed as soon as it was parsed.  In particular, if you wanted options for 
opening the serial port (say baud rate), you had to put them in the mode 
parameter on the server line rather than using a flag in the fudge command 
because the open was done before the fudge line was parsed.

A while ago, the config file parser was cleaned up.  Does the current code 
parse the fudge line before it calls the refclock init subroutine?  If nobody 
knows, I'll add some hack printout to a handy test case.

Alternatively, how hard would it be to allow the flags stuff (and maybe 
others) from the fudge line to be put on the server line?


-- 
These are my opinions, not necessarily my employer's.  I hate spam.





More information about the hackers mailing list