[ntp:questions] Re: sntp: rejects packets from ntpd when "disable ntp" is used
Daniel Kabs
daniel.kabs at gmx.de
Mon Mar 20 11:39:44 UTC 2006
Harlan,
thanks for pointing out that sntp does not work with an undisciplined clock.
In this case, one has to resort to ntpdate or patch sntp::main.c:
--- /tmp/ntp-4.2.0b-rc1/sntp/main.c 2005-12-21 00:33:36.000000000 +0100
+++ main.c 2006-03-20 13:31:12.378670736 +0100
@@ -457,7 +457,7 @@
failed = (data->mode != NTP_SERVER && data->mode != NTP_PASSIVE);
response = 1;
}
- if (failed || data->status == 3 || data->version < 1 ||
+ if (failed || data->version < 1 ||
data->version > NTP_VERSION_MAX ||
data->stratum > NTP_STRATUM_MAX) {
if (verbose)
I will update
http://ntp.isc.org/bin/view/Dev/DeprecatingNtpdate
accordingly
Cheers
Daniel
More information about the questions
mailing list