---
+ * [Bug 3859] Use NotifyIpInterfaceChange on Windows ntpd. <hart@ntp.org>
+* [Bug 3856] Enable Edit & Continue debugging with Visual Studio.
+ <hart@ntp.org>
+* [Bug 3854] ntpd 4.2.8p17 corrupts rawstats file with space in refid.
+ <hart@ntp.org>
+* [Bug 3853] Clean up warnings with modern compilers. <hart@ntp.org>
+* [Bug 3852] check-libntp.mf and friends are not triggering rebuilds as
+ intended. <hart@ntp.org>
* [Bug 3851] Drop pool server when no local address can reach it.
<hart@ntp.org>
* [Bug 3850] ntpq -c apeers breaks column formatting s2 w/refclock refid.
void
timer(void)
{
- struct peer * p;
- struct peer * next_peer;
+ struct peer* p;
+ struct peer* next_peer;
l_fp now;
- time_t tnow;
+ time_t tnow;
/*
* The basic timerevent is one second. This is used to adjust the
}
sys_stratum = STRATUM_UNSPEC;
}
- if (sys_stratum > 1) {
+ if (sys_stratum > 1)
sys_refid = htonl(LOOPBACKADR);
- }
- else {
- memcpy(&sys_refid, "ORPH", min(4, sizeof(sys_refid)));
- }
+ else
- memcpy(&sys_refid, "LOOP", 4);
++ memcpy(&sys_refid, "ORPH", 4);
sys_offset = 0;
sys_rootdelay = 0;
sys_rootdisp = 0;
* is imminent or every 8th second.
*/
if (leapsec > LSPROX_NOWARN || 0 == (current_time & 7))
-- check_leapsec(now.l_ui, &tnow,
- (sys_leap == LEAP_NOTINSYNC));
- (sys_leap == LEAP_NOTINSYNC));
++ check_leapsec( now.l_ui
++ , &tnow
++ , (sys_leap == LEAP_NOTINSYNC));
if (sys_leap != LEAP_NOTINSYNC) {
if (leapsec >= LSPROX_ANNOUNCE && leapdif) {
- if (leapdif > 0)
+ if (leapdif > 0) {
set_sys_leap(LEAP_ADDSECOND);
- }
- else {
- else
++ } else {
set_sys_leap(LEAP_DELSECOND);
- }
- else {
+ }
+ } else {
set_sys_leap(LEAP_NOWARNING);
}
}
#endif /* AUTOKEY */
/*
- * Interface update timer
+ * Network interface rescan timer
*/
- if (interface_interval && interface_timer <= current_time) {
- timer_interfacetimeout(current_time +
- interface_interval);
- DPRINTF(2, ("timer: interface update\n"));
+ if (endpt_scan_timer && endpt_scan_timer <= current_time) {
+ if (no_periodic_scan) {
+ endpt_scan_timer = 0;
++ DPRINTF(2, ("timer: network interface rescan disabled\n"));
+ } else {
+ endpt_scan_timer = current_time
+ + endpt_scan_period;
++ DPRINTF(2, ("timer: network interface rescan in %d seconds\n", endpt_scan_period));
+ }
interface_update(NULL, NULL);
}