Subject: Re: ntp port request
To: Jan-Hinrich Fessel <oskar@zappa.unna.ping.de>
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
List: current-users
Date: 02/06/1996 19:19:49
On Mon, 5 Feb 1996, Jan-Hinrich Fessel wrote:

> > xntpd 3.4y compiles on NetBSD 1.0 and later "out of the box".  I've used 
> > it on the i386, hp300, and mac68k ports without trouble.
> 
> Anyone successfully using a parse refclock with that release?

I'm running the raw DCF77 variant under NetBSD/i386 1.1A almost right
out of the box with no problems.  I use the clk_rawdcf.c PARSE driver
to read the PPS signal from a cheap DCF77 receiver, level converted
onto a serial port, and the only change needed was to the section for
NetBSD in the file include/ntp_machine.h, which needs to do:

	#define USE_FSETOWNCTTY

The bit of code that uses it is in xntpd/ntp_io.c, and this #define
will cause it to set the serial port to be the controlling terminal
before doing a fcntl(fd, F_SETOWN, pid) on it.

I would assume that this is a "wrong" solution -- it seems to me that
this makes it impossible to run more than one PARSE clock at a time
with the xntpd, and that's a silly limitation.  I just haven't found
the time to look into it yet...  Meanwhile, I'm doing just fine with a
single refclock, thank you!  :-)

-tih
-- 
Tom Ivar Helbekkmo
tih@Hamartun.Priv.NO