*BSD News Article 95007


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!como.dpie.gov.au!news.gan.net.au!act.news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!out2.nntp.cais.net!in1.nntp.cais.net!newshub.sdsu.edu!newshub.csu.net!mr.net!news4.ixa.net!ixa.net!newsxfer.nether.net!newsxfer3.itd.umich.edu!europa.clark.net!ais.net!uunet!in3.uu.net!199.0.65.182!news-in.tiac.net!posterchild!seahag!not-for-mail
From: Rick Kelly <rmk@rmkhome.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: rdate for FreeBSD
Date: 8 May 1997 03:31:09 GMT
Organization: The Man With Ten Cats
Lines: 34
Message-ID: <5krhdt$j4l@news-central.tiac.net>
References: <9014106B902414DF.F2C1CE0DB63DC135.683F46B51D3A4FBF@library-proxy.airnews.net> <E9CL33.LM@sphynx.fdn.fr> <DB7ECA28AB48E25C.480A35112851C7DE.B4902F4E00C95599@library-proxy.airnews.net> <5k7561$85e@tube.news.pipex.net> <5kdo8m$6tm@netaxs.com> <336D1FDC.69DA@sapphire.alisa.org>
NNTP-Posting-Host: seahag.rmkhome.com
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970314; sun4c SunOS 4.1.4]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40564

Giselle M. Rushford <giselle@sapphire.alisa.org> wrote:

: After reading this thread, I became interested in writing an rdate.  I
: know its
: not xntpd but, it should be good enough for a LAN.  The attached source
: is 
: basically a clone of the 'rdate' found on SunOS or Solaris systems but,
: I added
: a -a option so that you can adjust your clock.  This source was written
: and
: tested on a Solaris system so use it at your own risk.  Since my wife
: hijacked
: my FreeBSD machine and loaded Windows 95, I was unable to compile and
: test it
: there.  If you find that it works on FreeBSD let me know.  Also, let me
: know
: of any hooks if any that you may have to add to compile it there.

NetBSD has been using the rdate from 4.4BSD LITE since 1.0.  I'm surprised 
this isn't included in FreeBSD.  Also, the ntpdate command included with
xntpd is a clone of rdate.

Also, there are three versions of the NTP protocol out there.  The ntpdate
command can specify version 1, 2, or 3. The server and the client have to
both be talking at the same version level or the time negotiation won't
happen.  Solaris 2.4 and 2.5.x rdate talks version 3 and ntpdate also does
this as the default.  I've run into some time servers that only talk version
1 and 2 of ntp.  The 4.4BSD rdate seems to talk version 3.

Actually, to correct myself, the server will talk to any client that is at
or less than the rev of the server.
-- 
Rick Kelly  rmk@seahag.rmkhome.com  rmk@rmkhome.com 
            <a href="http://tencats.rmkhome.com/">tencats</a>