Previous  Top  Next

Windows Time Server

3.4.8 Clear Procedure

The clear procedure is called when some event occurs that results in a significant change in reachability state or potential disruption of the local clock.

begin clear procedure
       peer.org <-- 0 (undefined);                                  /* mark timestamps undefined */
       peer.rec <-- 0 (undefined);
       peer.xmt <-- 0 (undefined);
       peer.reach <-- 0;                                            /* reset state variables */
       peer.filter <-- [0, ,0,NTP.MAXDISPERSE];          /* all stages */
       peer.valid <-- 0;
       peer.dispersion <-- NTP.MAXDISPERSE;
       peer.hostpoll <-- NTP.MINPOLL;                     /* reset poll interval */
       call poll-update;
       call clock-select;                                             /* select clock source */
end clear procedure;