diff options
author | wollman <wollman@FreeBSD.org> | 1994-04-21 00:33:33 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-04-21 00:33:33 +0000 |
commit | 1185c9048d38483a3f99f3065590713d8bcda610 (patch) | |
tree | 5b64f04197cf59cf404d915ac4a06650399db240 /usr.sbin/xntpd/patches/patch.39 | |
parent | d9768fd9dbb9ffb082896c373f5e78f968079f68 (diff) | |
download | FreeBSD-src-1185c9048d38483a3f99f3065590713d8bcda610.zip FreeBSD-src-1185c9048d38483a3f99f3065590713d8bcda610.tar.gz |
xntp3.3s from UDel
Diffstat (limited to 'usr.sbin/xntpd/patches/patch.39')
-rw-r--r-- | usr.sbin/xntpd/patches/patch.39 | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/patches/patch.39 b/usr.sbin/xntpd/patches/patch.39 new file mode 100644 index 0000000..12e09fe --- /dev/null +++ b/usr.sbin/xntpd/patches/patch.39 @@ -0,0 +1,78 @@ + +Received: from louie.udel.edu by huey.udel.edu id aa21593; 13 Apr 94 8:23 EDT +Received: from jagubox.gsfc.nasa.gov by louie.udel.edu id aa20245; + 13 Apr 94 8:15 EDT +Received: by jagubox.gsfc.nasa.gov (Smail3.1.28.1 #2) + id m0pr3rH-0005s0C; Wed, 13 Apr 94 08:15 EDT +Message-Id: <m0pr3rH-0005s0C@jagubox.gsfc.nasa.gov> +From: Jim Jagielski <jim@jagubox.gsfc.nasa.gov> +Subject: Minor change for ntp_loopfilter (and loop.c) in 3.3q +To: Mills@udel.edu +Date: Wed, 13 Apr 1994 08:15:55 -0400 (EDT) +Reply-To: Jim Jagielski <jim@jagubox.gsfc.nasa.gov> +In-Reply-To: <9308051324.aa24396@huey.udel.edu> from "Mills@udel.edu" at Aug 5, 93 01:24:24 pm +X-Mailer: ELM [version 2.4 PL23] +Content-Type: text +Content-Length: 1738 + +One of the changes between 3.3p and 3.3q was the format change of the syslog +message when the clock is reset when xntpd sees a "large" offset. This change +is nice, but it would be "better" is the notice also made mention of whether +the reset was a step or slew (as defined by SLEWALWAYS). + +This patch adds that: +*** xntpd/Oloop.c Wed Apr 13 08:05:09 1994 +--- xntpd/loop.c Wed Apr 13 08:06:32 1994 +*************** +*** 458,464 **** + lfptoa(fp_offset, 6)); + return (0); + } +! syslog(LOG_NOTICE, "clock reset %s\n", + lfptoa(fp_offset, 6)); + step_systime(fp_offset); + clock_adjust = 0; +--- 458,469 ---- + lfptoa(fp_offset, 6)); + return (0); + } +! syslog(LOG_NOTICE, "clock reset (%s) %s\n", +! #ifdef SLEWALWAYS +! "slew", +! #else +! "step", +! #endif + lfptoa(fp_offset, 6)); + step_systime(fp_offset); + clock_adjust = 0; +*** xntpd/Ontp_loopfilter.c Wed Apr 13 08:05:23 1994 +--- xntpd/ntp_loopfilter.c Wed Apr 13 08:07:03 1994 +*************** +*** 458,464 **** + lfptoa(fp_offset, 6)); + return (0); + } +! syslog(LOG_NOTICE, "clock reset %s\n", + lfptoa(fp_offset, 6)); + step_systime(fp_offset); + clock_adjust = 0; +--- 458,469 ---- + lfptoa(fp_offset, 6)); + return (0); + } +! syslog(LOG_NOTICE, "clock reset (%s) %s\n", +! #ifdef SLEWALWAYS +! "slew", +! #else +! "step", +! #endif + lfptoa(fp_offset, 6)); + step_systime(fp_offset); + clock_adjust = 0; +-- +#include <std/disclaimer.h> + Jim Jagielski | "Is this something you can share with + jim@jagubox.gsfc.nasa.gov | the rest of us Amazing Larry!!??" + NASA/GSFC, Code 734.4 | Pee Wee + Greenbelt, MD 20771 | + |