📄 182
字号:
Replied: Tue, 17 Mar 1998 16:25:27 -0500Replied: "Marc Brett <Marc.Brett@waii.com> "Received: from mail.eecis.udel.edu by whimsy.udel.edu id aa22594; 17 Mar 1998 13:43 ESTReceived: by diamond.waii.com id MAA07448; Tue, 17 Mar 1998 12:42:30 -0600 sender Marc.Brett@waii.com for Received: from mail.wg.waii.com(137.144.128.17) user <Marc.Brett@waii.com> by diamond.waii.com via smap (3.2) id xma007326; Tue, 17 Mar 98 12:40:32 -0600Received: from merlin.london.waii.com (merlin.london.waii.com [136.250.33.1]) by mail1.wg.waii.com (8.8.7/8.8.7) with ESMTP id MAA53954; Tue, 17 Mar 1998 12:40:22 -0600Received: from rgs0.london.waii.com (rgs0.london.waii.com [136.250.40.10]) by merlin.london.waii.com (8.8.4/8.8.4) with SMTP id SAA14728; Tue, 17 Mar 1998 18:40:20 GMTReceived: by rgs0.london.waii.com (951211.SGI.8.6.12.PATCH1502/920502.SGI) id SAA24816; Tue, 17 Mar 1998 18:40:14 GMTDate: Tue, 17 Mar 1998 18:40:14 GMTMessage-Id: <199803171840.SAA24816@rgs0.london.waii.com>From: Marc Brett <Marc.Brett@waii.com>To: stenn@whimsy.udel.eduCc: mills@udel.edu, Marc.Brett@waii.com, Frank.Vance@waii.com, Klaus.Kusche@ooe.gv.atSubject: (fwd) Fatal bug in xntpd 3-5.92c!?!Newsgroups: comp.protocols.time.ntpHarlan,This is the solution to that bug that I mentioned on Friday the 13th.It has solved the clock drift problem we were having with xntp3-5.92aand xntp3-5.92c on all of our platforms.It's probably worth a new release ASAP.Best regards,Marc-- forwarded message --Path: diamond.waii.com!uunet!in2.uu.net!newsfeed.internetmci.com!204.59.152.222!news-peer.gip.net!news-raspail.gip.net!news.gsl.net!gip.net!newscore.univie.ac.at!193.171.255.21.MISMATCH!newsfeed01.univie.ac.at!01-newsfeed.univie.ac.at!news.apanet.at!news.ooe.gv.at!rzsrv00.ooe.gv.atFrom: Klaus Kusche <Klaus.Kusche@ooe.gv.at>Newsgroups: comp.protocols.time.ntpSubject: Fatal bug in xntpd 3-5.92c!?!Date: Tue, 17 Mar 1998 16:00:52 +0100Organization: Government of Upper Austria, Computing CentreLines: 51Message-ID: <350E9024.46852A0A@ooe.gv.at>NNTP-Posting-Host: news.ooe.gv.atMime-Version: 1.0Content-Type: text/plain; charset=us-asciiContent-Transfer-Encoding: 7bitX-Mailer: Mozilla 4.04 [en] (X11; I; AIX 4.1)Xref: diamond.waii.com comp.protocols.time.ntp:4481When looking into my xntpd problems under AIX,I found a piece of code (which was changed between3-5.92 and 3-5.92c!) which looks wrong to me in 3-5.92c:Braces are missing around the body of an "if".If I understand things correctly, this bugcauses xntpd not to adjust the local clock any moreas soon as it has sync'ed to any peer!!!Below is the diff between the original 3-5.92c fileand the file with the braces I inserted.*** ntp_loopfilter.c.sav Tue Mar 17 14:57:00 1998--- ntp_loopfilter.c Tue Mar 17 14:58:02 1998****************** 586,592 **** */ if (sys_peer) { if (sys_peer->refclktype == REFCLK_LOCALCLOCK &&! sys_peer->flags & FLAG_PREFER) /* I think that sys_clock_offset might bejammed * to exactly zero now. It might have had a * small residual before things switched to the--- 586,592 ---- */ if (sys_peer) { if (sys_peer->refclktype == REFCLK_LOCALCLOCK &&! sys_peer->flags & FLAG_PREFER) { /* I think that sys_clock_offset might bejammed * to exactly zero now. It might have had a * small residual before things switched to the****************** 595,600 ****--- 595,601 ---- * when the external control jumped the time */ L_CLR(&sys_clock_offset); return;+ } } L_CLR(&offset); L_ADDF(&offset, adjustment);-- DI. Dr. Klaus KuscheOberoesterreichische Landesregierung / Government of Upper AustriaRechenzentrum / Computing CentreSmail: Kaerntnerstrasse 16, A-4020 Linz, Austria (Europe)Phone: +43 732 7720 - 3394 Fax: +43 732 7720 - 3198Email: Klaus.Kusche@ooe.gv.at-- end of forwarded message ---- Marc Brett +44 181 560 3160 Western GeophysicalMarc.Brett@waii.com 455 London Road, IsleworthFAX: +44 181 847 5711 Middlesex TW7 5AB UK
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -