diff options
author | wollman <wollman@FreeBSD.org> | 1993-12-21 18:36:48 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1993-12-21 18:36:48 +0000 |
commit | 8e51e9f1429efc498f923bce8b25b20f47d7c075 (patch) | |
tree | 9db10264d45dc397a38276190303093a450d769e /usr.sbin/xntpd/conf | |
download | FreeBSD-src-8e51e9f1429efc498f923bce8b25b20f47d7c075.zip FreeBSD-src-8e51e9f1429efc498f923bce8b25b20f47d7c075.tar.gz |
xntpd 3.3b from UDel
Diffstat (limited to 'usr.sbin/xntpd/conf')
-rw-r--r-- | usr.sbin/xntpd/conf/Config.CHATHAM | 214 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.MONOMOY | 189 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.TIGER | 185 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.TRURO | 205 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.dartnet | 187 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.local | 190 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/Config.svr4 | 167 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/README | 8 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/dewey.conf | 38 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/grundoon.conf | 58 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/malarky.conf | 40 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/ntp.conf.gw | 34 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/ntp.conf.ipl | 32 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/ntp.conf.nsf | 156 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/ntp.conf.shiningtree | 32 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/ntp.conf.suzuki | 43 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/pogo.conf | 50 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/rackety.conf | 75 | ||||
-rw-r--r-- | usr.sbin/xntpd/conf/snow-white.conf | 33 |
19 files changed, 1936 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/conf/Config.CHATHAM b/usr.sbin/xntpd/conf/Config.CHATHAM new file mode 100644 index 0000000..41e6fc2 --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.CHATHAM @@ -0,0 +1,214 @@ +# Edit this file to reflect information specific to your installation. +# Then run 'make makeconfig' to propagate the information to all the makefiles, +# Config.CHATHAM,v 3.1 1993/07/06 01:03:42 jbj Exp + +# +# Definitions for the library: +# +# You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN +# or -DXNTP_AUTO_ENDIAN depending on which way your machine's +# bytes go for the benefit of the DES routine. Most things +# sold by DEC, the NS32x32 and the 80386 deserve a +# -DXNTP_LITTLE_ENDIAN. Most of the rest of the world does +# it the other way. If in doubt, pick one, compile +# everything and run authstuff/authcert < authstuff/certdata. +# If everything fails, do it the other way. +# +# Under BSD, you may define -DXNTP_NETINET_ENDIAN to use +# netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and +# XNTP_LITTLE_ENDIAN should be used. +# +LIBDEFS= -DWORDS_BIGENDIAN + +# +# Library loading: +# +# If you don't want your library ranlib'ed, chose the second line +# +RANLIB= ranlib +#RANLIB= : # ar does the work of ranlib under System V + +# +# Definitions for programs: +# +# If your compiler doesn't understand the declaration `signed char', +# add -DNO_SIGNED_CHAR_DECL. Your `char' data type had better be +# signed. If you don't know what the compiler knows, try it +# without the flag. If you get a syntax error on line 13 of +# ntp.h, add it. Note that `signed char' is an ANSIism. Most +# older, pcc-derived compilers will need this flag. +# +# If your library already has 's_char' defined, add -DS_CHAR_DEFINED. +# +# For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain +# about broadaddr and will hang if you run without a -d flag +# on the command line. I actually can't believe the latter +# bug. If it hangs on your system with the flag defined, peruse +# xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it +# the other way). This flag affects xntpd only. +# +# For Ultrix 2.0, add -DULT_2_0_SUCKS. This OS has the same hanging +# bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition +# has some strangeness concerning signal masks. Ultrix 2.3 doesn't +# have these problems. If you're running something in between +# you're on your own. This flag affects xntpd only. +# +# For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c +# that sets the battery clock at the same time that it updates +# the driftfile. It does this by revving up the niceness, then +# sets the time of day to the current time of day. Ordinarily, +# you would need this only on non-networked machines. +# +# For some machines, settimeofday does not set the sub-second component +# of the time correctly. For these machines add -DSETTIMEOFDAY_BROKEN. +# If xntpd keeps STEPPING the clock by small amounts, then it is +# possible that you are suffering from this problem. +# +# There are three ways to pry loose the kernel variables tick and tickadj +# needed by ntp_unixclock.c. One reads kmem and and is enabled +# with -DREADKMEM. One uses Sun's libkvm and is enabled with +# -DUSELIBKVM. The last one uses builtin defaults and is enabled +# with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or +# -DNOKMEM must be defined. Suns and recent BSD should use +# -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use +# the DAEMONLIBS below to get the kernel routines. +# +# If your gethostbyname() routine isn't based on the DNS resolver (and, +# in particular, h_errno doesn't exist) add a -DNODNS. There +# doesn't seem to be a good way to detect this automatically which +# works in all cases. This flag affects xntpres only. +# +# Adding -DLOCK_PROCESS to the compilation flags will prevent +# xntpd from being swapped out on systems where the plock(3) call +# is available. +# +# The flag -DDEBUG includes some debugging code. +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you will also want +# to configure the particular clock drivers you want in the +# CLOCKDEFS= line below. This flag affects xntpd only. +# +# There is an occurance of a call to rindex() in the daemon. You may +# have to include a -Drindex=strrchr to get this to load right. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as, +# well as -DNOKMEM +# +# If your library doesn't include the vsprintf() routine, define +# NEED_VSPRINTF. +# +# There are three ways to utilize external 1-pps signals. Define -DPPS to +# include just the pps routine, such as used by the DCF77 reference clock +# driver. Define -DPPSDEV ito include a serial device driver. This +# requires a serial port and either a line discipline or STREAMS module. +# Define -DPPSCD to include the driver and a special kernal hack +# (for SunOS 4.1.1) that intercepts carrier-detect transitions +# generated by the pps signal. Only one of these flags should be defined. +# +DEFS= -DUSELIBKVM -DDEBUG -DSTREAM -DREFCLOCK -DNO_SIGNED_CHAR_DECL -DPPS -DPPSDEV -DXNTP_RETROFIT_STDLIB -DHAVE_UNISTD_H + +# +# Authentication types supported. Choose from DES and MD5. If you +# have a 680x0 type CPU and GNU-C, also choose -DFASTMD5 +# +AUTHDEFS=-DDES -DMD5 + +# +# Clock support definitions (these only make sense if -DREFCLOCK used): +# +# Define -DLOCAL_CLOCK to include local pseudo-clock support +# +# Define -DPST to include support for the PST 1020 WWV/H receiver. +# +# Define -DWWVB to include support for the Spectracom 8170 WWVB receiver. +# Define -DWWVBPPS for PPS support via the WWVB receiver; also, +# define -DPPSCD in the DEFS above. This requires the ppsclock +# streams module under SunOS 4.2. +# +# Define -DCHU to include support for a driver to receive the CHU +# timecode. Note that to compile in CHU support you must +# previously have installed the CHU serial line discipline in +# the kernel of the machine you are doing the compile on. +# +# Define -DDCF to include support for the DCF77 receiver. This code +# requires a special STREAMS module found in the kernel directory. +# Define -DDCFPPS for PPS support via the DCF77 receiver; also, +# devine -DPPS in the DEFS above. +# +# Define -DMX4200 to support a Magnavox 4200 GPS receiver. Define -DPPSCD +# in the DEFS above for PPS support via this receiver. This requires +# the ppsclock streams module under SunOS 4.2. +# +# Define -DAS2201 to include support for the Austron 2201 GPS Timing +# Receiver. Define -DPPSCD in the DEFS above for PPS support via this +# receiver. This requires the ppsclock streams module under SunOS 4.2. +# +# Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver. This +# driver may work with other True-Time products as well. +# +# Define -DOMEGA to support a Kinemetrics TrueTime OM-DC OMEGA receiver. +# +# Define -DTPRO to support a KSI/Odetics TPRO-S IRIG-B timecode reader. This +# requires the Sun interface driver available from KSI. +# +# Define -DLEITCH to support a Leitch CSD 5300 Master Clock System Driver +# for the HP 5061B Cesium Clock. +# +CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DWWVBPPS -DCHU -DDCF -DMX4200 -DAS2201 -DGOES -DOMEGA -DTPRO -DLEITCH -DIRIG + +# +# For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine. +# If USELIBKVM is defined above, include a -lkvm to get the kernel +# routines. +# +#DAEMONLIBS= -lmld +DAEMONLIBS= -lkvm +#DAEMONLIBS= + +# +# Name resolver library. Included when loading xntpres, which calls +# gethostbyname(). Define this if you would rather use a different +# version of the routine than the one in libc.a +# +#RESLIB= -lresolv +RESLIB= + +# +# Option flags for the C compiler. A -g if you are uncomfortable +# +COPTS= -O + +# +# C compiler to use. gcc will work, but avoid the -fstrength-reduce option +# if the version is 1.35 or earlier (using this option caused incorrect +# code to be generated in the DES key permutation code, and perhaps +# elsewhere). +# +COMPILER= gcc -pipe -Wall -g -O2 -finline-functions -fdelayed-branch -fomit-frame-pointer +#COMPILER= cc -pipe + +# +# Directory into which binaries should be installed +# +BINDIR= /usr/local/bin + +# +# Special library for adjtime emulation. Used under HP-UX +# (remember to run make in the adjtime directory) +# +#ADJLIB= ../adjtime/libadjtime.a +ADJLIB= + +# +# BSD emulation library. In theory, this fixes signal semantics under +# HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now +# a work-around in the code (compiled when hpux80 is defined). In other +# words, use this for HP-UX prior to 8.0. +# +#COMPAT= -lBSD +COMPAT= + diff --git a/usr.sbin/xntpd/conf/Config.MONOMOY b/usr.sbin/xntpd/conf/Config.MONOMOY new file mode 100644 index 0000000..b9e075f --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.MONOMOY @@ -0,0 +1,189 @@ +# Edit this file to reflect information specific to your installation. +# Then run 'make makeconfig' to propagate the information to all the makefiles, +# Config.MONOMOY,v 3.1 1993/07/06 01:03:43 jbj Exp + +# Config.bsdi by Bdale Garbee, N3EUA, bdale@gag.com +# +# Tested with the BSDI BSD/386 0.9.3 "gamma 4" revision. It should +# work fine with this or later revs of BSD/386. +# +# Definitions for the library: +# +# You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN +# or -DXNTP_AUTO_ENDIAN depending on which way your machine's +# bytes go for the benefit of the DES routine. Most things +# sold by DEC, the NS32x32 and the 80386 deserve a +# -DXNTP_LITTLE_ENDIAN. Most of the rest of the world does +# it the other way. If in doubt, pick one, compile +# everything and run authstuff/authcert < authstuff/certdata. +# If everything fails, do it the other way. +# +# Under BSD, you may define -DXNTP_NETINET_ENDIAN to use +# netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and +# XNTP_LITTLE_ENDIAN should be used. +# +LIBDEFS= -DXNTP_LITTLE_ENDIAN + +# +# Library loading: +# +# If you don't want your library ranlib'ed, chose the second line +# +RANLIB= ranlib +#RANLIB= : # ar does the work of ranlib under System V + +# +# Definitions for programs: +# +# If your compiler doesn't understand the declaration `signed char', +# add -DNO_SIGNED_CHAR_DECL. Your `char' data type had better be +# signed. If you don't know what the compiler knows, try it +# without the flag. If you get a syntax error on line 13 of +# ntp.h, add it. Note that `signed char' is an ANSIism. Most +# older, pcc-derived compilers will need this flag. +# +# If your library already has 's_char' defined, add -DS_CHAR_DEFINED. +# +# For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain +# about broadaddr and will hang if you run without a -d flag +# on the command line. I actually can't believe the latter +# bug. If it hangs on your system with the flag defined, peruse +# xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it +# the other way). This flag affects xntpd only. +# +# For Ultrix 2.0, add -DULT_2_0_SUCKS. This OS has the same hanging +# bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition +# has some strangeness concerning signal masks. Ultrix 2.3 doesn't +# have these problems. If you're running something in between +# you're on your own. This flag affects xntpd only. +# +# For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c +# that sets the battery clock at the same time that it updates +# the driftfile. It does this by revving up the niceness, then +# sets the time of day to the current time of day. Ordinarily, +# you would need this only on non-networked machines. +# +# There are three ways to pry loose the kernel variables tick and tickadj +# needed by ntp_unixclock.c. One reads kmem and and is enabled +# with -DREADKMEM. One uses Sun's libkvm and is enabled with +# -DUSELIBKVM. The last one uses builtin defaults and is enabled +# with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or +# -DNOKMEM must be defined. Suns and recent BSD should use +# -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use +# the DAEMONLIBS below to get the kernel routines. +# +# If your gethostbyname() routine isn't based on the DNS resolver (and, +# in particular, h_errno doesn't exist) add a -DNODNS. There +# doesn't seem to be a good way to detect this automatically which +# works in all cases. This flag affects xntpres only. +# +# The flag -DDEBUG includes some debugging code. +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you will also want +# to configure the particular clock drivers you want in the +# CLOCKDEFS= line below. This flag affects xntpd only. +# +# There is an occurance of a call to rindex() in the daemon. You may +# have to include a -Drindex=strrchr to get this to load right. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as, +# well as -DNOKMEM +# +# If your library doesn't include the vsprintf() routine, define +# NEED_VSPRINTF. +# +# Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV +# to include a device driver for it. The latter requires a +# serial port and either a line discipline or STREAMS module. +# The PPS signal may also be generated via a reference clock +# module like DCF77. In that case a special define is required for +# the reference clock module (only one source of PPS signal should +# be used) +# +DEFS= -DBSDI -DUSELIBKVM -DDEBUG -DREFCLOCK -DPPS -DCONFIG_FILE=\\"/usr/local/etc/xntp.conf\\" -DHAVE_UNISTD_H + +# +# Authentication types supported. Choose from DES and MD5. If you +# have a 680x0 type CPU and GNU-C, also choose -DFASTMD5 +# +AUTHDEFS=-DDES -DMD5 + +# +# Clock support definitions (these only make sense if -DREFCLOCK used): +# +# Define -DLOCAL_CLOCK to include local pseudo-clock support +# +# Define -DPST to include support for the PST 1020 WWV/H receiver. +# +# Define -DWWVB to include support for the Spectracom 8170 WWVB receiver. +# +# Define -DCHU to include support for a driver to receive the CHU +# timecode. Note that to compile in CHU support you must +# previously have installed the CHU serial line discipline in +# the kernel of the machine you are doing the compile on. +# +# Define -DDCF to include support for the DCF77 receiver. This code +# requires a special STREAMS module found in the kernel directory. +# Define -DDCFPPS for PPS support via the DCF77 receiver +# (see also: -DPPS) +# +# Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver. +# +CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DCHU -DGOES # -DMX4200 -DAS2201 + +# +# For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine. +# If USELIBKVM is defined above, include a -lkvm to get the kernel +# routines. +# +#DAEMONLIBS= -lmld +DAEMONLIBS= -lkvm +#DAEMONLIBS= + +# +# Name resolver library. Included when loading xntpres, which calls +# gethostbyname(). Define this if you would rather use a different +# version of the routine than the one in libc.a +# +#RESLIB= -lresolv +RESLIB= + +# +# Option flags for the C compiler. A -g if you are uncomfortable +# +COPTS= -O + +# +# C compiler to use. gcc will work, but avoid the -fstrength-reduce option +# if the version is 1.35 or earlier (using this option caused incorrect +# code to be generated in the DES key permutation code, and perhaps +# elsewhere). +# +COMPILER= gcc -pipe -Wall -g -O -finline-functions -fdelayed-branch -fomit-frame-pointer +#COMPILER= cc -pipe -g + +# +# Directory into which binaries should be installed +# +BINDIR= /usr/local/bin + +# +# Special library for adjtime emulation. Used under HP-UX +# (remember to run make in the adjtime directory) +# +#ADJLIB= ../adjtime/libadjtime.a +ADJLIB= + +# +# BSD emulation library. In theory, this fixes signal semantics under +# HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now +# a work-around in the code (compiled when hpux80 is defined). In other +# words, use this for HP-UX prior to 8.0. +# +#COMPAT= -lBSD +COMPAT= + diff --git a/usr.sbin/xntpd/conf/Config.TIGER b/usr.sbin/xntpd/conf/Config.TIGER new file mode 100644 index 0000000..c757ad9 --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.TIGER @@ -0,0 +1,185 @@ +# Edit this file to reflect information specific to your installation. +# Then run 'make makeconfig' to propagate the information to all the makefiles, +# Config.TIGER,v 3.1 1993/07/06 01:03:45 jbj Exp + +# +# Definitions for the library: +# +# You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN +# or -DXNTP_AUTO_ENDIAN depending on which way your machine's +# bytes go for the benefit of the DES routine. Most things +# sold by DEC, the NS32x32 and the 80386 deserve a +# -DXNTP_LITTLE_ENDIAN. Most of the rest of the world does +# it the other way. If in doubt, pick one, compile +# everything and run authstuff/authcert < authstuff/certdata. +# If everything fails, do it the other way. +# +# Under BSD, you may define -DXNTP_NETINET_ENDIAN to use +# netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and +# XNTP_LITTLE_ENDIAN should be used. +# +LIBDEFS= -DXNTP_LITTLE_ENDIAN + +# +# Library loading: +# +# If you don't want your library ranlib'ed, chose the second line +# +RANLIB= ranlib +#RANLIB= : # ar does the work of ranlib under System V + +# +# Definitions for programs: +# +# If your compiler doesn't understand the declaration `signed char', +# add -DNO_SIGNED_CHAR_DECL. Your `char' data type had better be +# signed. If you don't know what the compiler knows, try it +# without the flag. If you get a syntax error on line 13 of +# ntp.h, add it. Note that `signed char' is an ANSIism. Most +# older, pcc-derived compilers will need this flag. +# +# If your library already has 's_char' defined, add -DS_CHAR_DEFINED. +# +# For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain +# about broadaddr and will hang if you run without a -d flag +# on the command line. I actually can't believe the latter +# bug. If it hangs on your system with the flag defined, peruse +# xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it +# the other way). This flag affects xntpd only. +# +# For Ultrix 2.0, add -DULT_2_0_SUCKS. This OS has the same hanging +# bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition +# has some strangeness concerning signal masks. Ultrix 2.3 doesn't +# have these problems. If you're running something in between +# you're on your own. This flag affects xntpd only. +# +# For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c +# that sets the battery clock at the same time that it updates +# the driftfile. It does this by revving up the niceness, then +# sets the time of day to the current time of day. Ordinarily, +# you would need this only on non-networked machines. +# +# There are three ways to pry loose the kernel variables tick and tickadj +# needed by ntp_unixclock.c. One reads kmem and and is enabled +# with -DREADKMEM. One uses Sun's libkvm and is enabled with +# -DUSELIBKVM. The last one uses builtin defaults and is enabled +# with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or +# -DNOKMEM must be defined. Suns and recent BSD should use +# -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use +# the DAEMONLIBS below to get the kernel routines. +# +# If your gethostbyname() routine isn't based on the DNS resolver (and, +# in particular, h_errno doesn't exist) add a -DNODNS. There +# doesn't seem to be a good way to detect this automatically which +# works in all cases. This flag affects xntpres only. +# +# The flag -DDEBUG includes some debugging code. +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you will also want +# to configure the particular clock drivers you want in the +# CLOCKDEFS= line below. This flag affects xntpd only. +# +# There is an occurance of a call to rindex() in the daemon. You may +# have to include a -Drindex=strrchr to get this to load right. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as, +# well as -DNOKMEM +# +# If your library doesn't include the vsprintf() routine, define +# NEED_VSPRINTF. +# +# Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV +# to include a device driver for it. The latter requires a +# serial port and either a line discipline or STREAMS module. +# The PPS signal may also be generated via a reference clock +# module like DCF77. In that case a special define is required for +# the reference clock module (only one source of PPS signal should +# be used) +# +DEFS= -DREFCLOCK -DS_CHAR_DEFINED -DREADKMEM -DDEBUG -DPLL -DXNTP_RETROFIT_STDLIB -DHAVE_UNISTD_H + +# +# Authentication types supported. Choose from DES and MD5. If you +# have a 680x0 type CPU and GNU-C, also choose -DFASTMD5 +# +AUTHDEFS=-DDES -DMD5 + +# +# Clock support definitions (these only make sense if -DREFCLOCK used): +# +# Define -DLOCAL_CLOCK to include local pseudo-clock support +# +# Define -DPST to include support for the PST 1020 WWV/H receiver. +# +# Define -DWWVB to include support for the Spectracom 8170 WWVB receiver. +# +# Define -DCHU to include support for a driver to receive the CHU +# timecode. Note that to compile in CHU support you must +# previously have installed the CHU serial line discipline in +# the kernel of the machine you are doing the compile on. +# +# Define -DDCF to include support for the DCF77 receiver. This code +# requires a special STREAMS module found in the kernel directory. +# Define -DDCFPPS for PPS support via the DCF77 receiver +# (see also: -DPPS) +# +# Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver. +# +CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DGOES -DCHU + +# +# For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine. +# If USELIBKVM is defined above, include a -lkvm to get the kernel +# routines. +# +#DAEMONLIBS= -lmld +#DAEMONLIBS= -lkvm +DAEMONLIBS= + +# +# Name resolver library. Included when loading xntpres, which calls +# gethostbyname(). Define this if you would rather use a different +# version of the routine than the one in libc.a +# +#RESLIB= -lresolv +RESLIB= + +# +# Option flags for the C compiler. A -g if you are uncomfortable +# +COPTS= -O + +# +# C compiler to use. gcc will work, but avoid the -fstrength-reduce option +# if the version is 1.35 or earlier (using this option caused incorrect +# code to be generated in the DES key permutation code, and perhaps +# elsewhere). +# +COMPILER= gcc -Wall -g -O2 -finline-functions -fdelayed-branch -fomit-frame-pointer +#COMPILER= cc + +# +# Directory into which binaries should be installed +# +BINDIR= /usr/local/bin + +# +# Special library for adjtime emulation. Used under HP-UX +# (remember to run make in the adjtime directory) +# +#ADJLIB= ../adjtime/libadjtime.a +ADJLIB= + +# +# BSD emulation library. In theory, this fixes signal semantics under +# HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now +# a work-around in the code (compiled when hpux80 is defined). In other +# words, use this for HP-UX prior to 8.0. +# +#COMPAT= -lBSD +COMPAT= + diff --git a/usr.sbin/xntpd/conf/Config.TRURO b/usr.sbin/xntpd/conf/Config.TRURO new file mode 100644 index 0000000..6caa2b8 --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.TRURO @@ -0,0 +1,205 @@ +# Edit this file to reflect information specific to your installation. +# Then run 'make makeconfig' to propagate the information to all the makefiles, +# Config.TRURO,v 3.1 1993/07/06 01:03:46 jbj Exp + +# +# Definitions for the library: +# +# You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN +# or -DXNTP_AUTO_ENDIAN depending on which way your machine's +# bytes go for the benefit of the DES routine. Most things +# sold by DEC, the NS32x32 and the 80386 deserve a +# -DXNTP_LITTLE_ENDIAN. Most of the rest of the world does +# it the other way. If in doubt, pick one, compile +# everything and run authstuff/authcert < authstuff/certdata. +# If everything fails, do it the other way. +# +# Under BSD, you may define -DXNTP_NETINET_ENDIAN to use +# netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and +# XNTP_LITTLE_ENDIAN should be used. +# +LIBDEFS= -DWORDS_BIGENDIAN + +# +# Library loading: +# +# If you don't want your library ranlib'ed, chose the second line +# +RANLIB= : # ar does the work of ranlib under System V + +# +# Definitions for programs: +# +# If your compiler doesn't understand the declaration `signed char', +# add -DNO_SIGNED_CHAR_DECL. Your `char' data type had better be +# signed. If you don't know what the compiler knows, try it +# without the flag. If you get a syntax error on line 13 of +# ntp.h, add it. Note that `signed char' is an ANSIism. Most +# older, pcc-derived compilers will need this flag. +# +# If your library already has 's_char' defined, add -DS_CHAR_DEFINED. +# +# For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain +# about broadaddr and will hang if you run without a -d flag +# on the command line. I actually can't believe the latter +# bug. If it hangs on your system with the flag defined, peruse +# xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it +# the other way). This flag affects xntpd only. +# +# For Ultrix 2.0, add -DULT_2_0_SUCKS. This OS has the same hanging +# bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition +# has some strangeness concerning signal masks. Ultrix 2.3 doesn't +# have these problems. If you're running something in between +# you're on your own. This flag affects xntpd only. +# +# For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c +# that sets the battery clock at the same time that it updates +# the driftfile. It does this by revving up the niceness, then +# sets the time of day to the current time of day. Ordinarily, +# you would need this only on non-networked machines. +# +# For some machines, settimeofday does not set the sub-second component +# of the time correctly. For these machines add -DSETTIMEOFDAY_BROKEN. +# If xntpd keeps STEPPING the clock by small amounts, then it is +# possible that you are suffering from this problem. +# +# There are four ways to pry loose the kernel variables tick and tickadj +# needed by ntp_unixclock.c. One reads kmem and and is enabled +# with -DREADKMEM. One uses Sun's libkvm and is enabled with +# -DUSELIBKVM. The last one uses builtin defaults and is enabled +# with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or +# -DNOKMEM must be defined. Suns, if they are not running Solaris, +# and recent BSD should use -DUSELIBKVM; others should use +# -DREADKMEM. Soalris 2.1 should use -DSOLARIS. +# If -DUSELIBKVM, use the DAEMONLIBS below to get the +# kernel routines. +# +# If your gethostbyname() routine isn't based on the DNS resolver (and, +# in particular, h_errno doesn't exist) add a -DNODNS. There +# doesn't seem to be a good way to detect this automatically which +# works in all cases. This flag affects xntpres only. +# +# The flag -DDEBUG includes some debugging code. +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you will also want +# to configure the particular clock drivers you want in the +# CLOCKDEFS= line below. This flag affects xntpd only. +# +# There is an occurance of a call to rindex() in the daemon. You may +# have to include a -Drindex=strrchr to get this to load right. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as, +# well as -DNOKMEM +# +# Under Solaris 2.1, you must use -DSOLARIS and -DSLEWALWAYS. +# Don't define USELIBKVM, NOKMEM or READKMEM. +# +# If your library doesn't include the vsprintf() routine, define +# NEED_VSPRINTF. +# +# There are three ways to utilize external 1-pps signals. Define -DPPS to +# include just the pps routine, such as used by the DCF77 reference clock +# driver. Define -DPPSDEV ito include a serial device driver. This +# requires a serial port and either a line discipline or STREAMS module. +# Define -DPPSCD to include the driver and a special kernal hack +# (for SunOS 4.1.1) that intercepts carrier-detect transitions +# generated by the pps signal. Only one of these flags should be defined. +# +DEFS= -DDEBUG -DSTREAM -DREFCLOCK -DNO_SIGNED_CHAR_DECL -DSLEWALWAYS -DSOLARIS -DPPS -DSTUPID_SIGNAL -DXNTP_RETROFIT_STDLIB -DHAVE_UNISTD_H + +# +# Authentication types supported. Choose from DES and MD5. If you +# have a 680x0 type CPU and GNU-C, also choose -DFASTMD5 +# +AUTHDEFS=-DDES -DMD5 + +# +# Clock support definitions (these only make sense if -DREFCLOCK used): +# +# Define -DLOCAL_CLOCK to include local pseudo-clock support +# +# Define -DPST to include support for the PST 1020 WWV/H receiver. +# +# Define -DWWVB to include support for the Spectracom 8170 WWVB receiver. +# Define -DWWVBPPS for PPS support via the WWVB receiver; also, +# define -DPPSCD in the DEFS above. This requires the ppsclock +# streams module under SunOS 4.2. +# +# Define -DCHU to include support for a driver to receive the CHU +# timecode. Note that to compile in CHU support you must +# previously have installed the CHU serial line discipline in +# the kernel of the machine you are doing the compile on. +# +# Define -DDCF to include support for the DCF77 receiver. This code +# requires a special STREAMS module found in the kernel directory. +# Define -DDCFPPS for PPS support via the DCF77 receiver; also, +# devine -DPPS in the DEFS above. +# +# Define -DMX4200 to support a Magnavox 4200 GPS receiver. Define -DPPSCD +# in the DEFS above for PPS support via this receiver. This requires +# the ppsclock streams module under SunOS 4.2. +# +# Define -DAS2201 to include support for the Austron 2201 GPS Timing +# Receiver. Define -DPPSCD in the DEFS above for PPS support via this +# receiver. This requires the ppsclock streams module under SunOS 4.2. +# +# Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver. This +# driver may work with other True-Time products as well. +# +CLOCKDEFS= -DLOCAL_CLOCK -DPST -DWWVB -DWWVBPPS -DGOES -DCHU -DMX4200 -DAS2201 -DOMEGA -DTPRO -DLEITCH -DIRIG + +# +# For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine. +# If USELIBKVM is defined above, include a -lkvm to get the kernel +# routines. +# +#DAEMONLIBS= -lmld +DAEMONLIBS= + +# +# Name resolver library. Included when loading xntpres, which calls +# gethostbyname(). Define this if you would rather use a different +# version of the routine than the one in libc.a +# +#RESLIB= -lresolv +RESLIB= -lsocket -lnsl -lelf + +# +# Option flags for the C compiler. A -g if you are uncomfortable +# +COPTS= -O + +# +# C compiler to use. gcc will work, but avoid the -fstrength-reduce option +# if the version is 1.35 or earlier (using this option caused incorrect +# code to be generated in the DES key permutation code, and perhaps +# elsewhere). +# +#COMPILER= gcc -traditional +COMPILER= gcc -pipe -Wall -g -O2 -finline-functions -fdelayed-branch -fomit-frame-pointer + +# +# Directory into which binaries should be installed +# +BINDIR= /usr/local/bin + +# +# Special library for adjtime emulation. Used under HP-UX +# (remember to run make in the adjtime directory) +# +#ADJLIB= ../adjtime/libadjtime.a +ADJLIB= + +# +# BSD emulation library. In theory, this fixes signal semantics under +# HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now +# a work-around in the code (compiled when hpux80 is defined). In other +# words, use this for HP-UX prior to 8.0. +# +#COMPAT= -lBSD +COMPAT= + diff --git a/usr.sbin/xntpd/conf/Config.dartnet b/usr.sbin/xntpd/conf/Config.dartnet new file mode 100644 index 0000000..b591db3 --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.dartnet @@ -0,0 +1,187 @@ +# This is the local configure file (distribution version). +# You must modify it to fit your particular configuration +# and name it Config.local +# The following configuratiions can be auto-generated: +# +# make Config.local.green +# make a Config.local that supports a local clock +# (i.e. allow fallback to use of the CPU's own clock) +# make Config.local.NO.clock +# make a Config.local that supports no clocks +# +# +# NOTE TO GREENHORNS +# +# For plug-'n-play and no radios or other complicated gadgetry, +# use "make Config.local.green" or "make Config.local.local" as above. +# +# Following defines can be set in the DEFS_OPT= define: +# +# The flag -DDEBUG includes some debugging code. To use this, include +# the define and start the daemon with one or more -d flags, depending +# on your calibration of pearannoya. The daemon will not detach your +# terminal in this case. Judicious use of grep will reduce the speaker +# volume to bearable levels. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# The -DSYSLOG_FILE defines allows logging messages that are normally +# reported via syslof() in a file. The file name can be configured using +# the configuration line "logfile <filename>" in CONFIG_FILE. +# +# There are three serial port system software interfaces, each of +# which is peculiar to one or more Unix versions. Define +# -DHAVE_SYSV_TTYS for basic System V compatibility; define -DSTREAM +# for POSIX compatibility including System V Streams, and +# HAVE_BSD_TTYS for 4.3bsd compatibility. Only one of these three +# should be defined. If none are defined, HAVE_BSD_TTYS is assumed. +# Usually these defines are already set correctly. +# +DEFS_OPT=-DDEBUG +# +# The DEFS_LOCAL define picks up all flags from DEFS_OPT (do not delete that) +# and one of the following: +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you may also want to +# configure the particular clock drivers you want in the CLOCKDEFS= line +# below. This flag affects xntpd only. This define is included by +# default when using the "make makeconfig" script. +# +# The next two sets of defines are meaningful only when radio clock +# drivers or special 1-pps signals are to be used. For systems without +# these features, these delicious complexities can be avoided. Ordinarily, +# the "make makeconfig" script figures out which ones to use, but your +# mileage may vary. +# +# There are three ways to utilize external 1-pps signals. Define +# -DPPS to include just the pps routine, such as used by the DCF77(PARSE) +# clock driver. Define -DPPSCLK to include a serial device driver +# which avoids much of the jitter due to upper level port +# processing. This requires a dedicated serial port and either the +# tty_clock line discipline or tty_clk_streams module, both of +# which are in the ./kernel directory. Define -DPPSCD to include a +# special driver which intercepts carrier-detect transitions +# generated by the pps signal. This requires a nondedicated serial +# port and the ppsclock streams module in the ./kernel directory. +# Only one of these three flags should be defined. +# +# The flag KERNEL_PLL causes code to be compiled for a special feature of +# the kernel that (a) implements the phase-lock loop and (b) provides +# a user interface to learn time, maximum error and estimated error. +# See the file README.kern in the doc directory for further info. +# This code is activated only if the relevant kernel features have +# been configured; it does not affect operation of unmodified kernels. +# To compile it, however, requires a few header files from the +# special distribution. +# +# Note: following line must always start with DEFS_LOCAL= $(DEFS_OPT) +DEFS_LOCAL= $(DEFS_OPT) -DPPSPPS -DREFCLOCK -DKERNEL_PLL +# +# Radio clock support definitions (these only make sense if -DREFCLOCK +# used), which is normally the case. Note that a configuration can include +# no clocks, more than one type of clock and even multiple clocks of the +# same type. +# +# For most radio clocks operating with serial ports, accuracy can +# be considerably improved through use of the tty_clk line +# discipline or tty_clk_STREAMS streams module found in the +# ./kernel directory. These gizmos capture a timestamp upon +# occurrence of an intercept character and stuff it in the data +# stream for the clock driver to munch. To select this mode, +# postfix the driver name with the string CLK; that is, WWVB +# becomes WWVBCLK. If more than one clock is in use, the CLK +# postfix can be used with any or all of them. +# +# Alternatively, for the best accuracy, use the ppsclock streams +# module in the ./ppsclock directory to steal the carrier-detect +# transition and capture a precision timestamp. At present this +# works only with SunOS 4.1.1 or later. To select this mode, +# postfix the driver name with the string PPS; that is, AS2201 +# becomes AS2201PPS. If more than one clock is in use, the PPS +# postfix should be used with only one of them. If any PPS +# postfix is defined, the -DPPSPPS define should be used on the +# DEFS above. +# +# Define -DLOCAL_CLOCK for a local pseudo-clock to masquerade as a +# reference clock for those subnets without access to the real thing. +# Works in all systems and requires no hardware support. This is defined +# by default when using the "make makeconfig" script and greenhorn +# configuraiton. +# +# Define -DPST for a PST/Traconex 1020 WWV/H receiver. The driver +# supports both the CLK and PPS modes. It should work in all systems +# with a serial port. +# +# Define -DWWVB for a Spectracom 8170 or Netclock/2 WWVB receiver. It +# should work in all systems with a serial port. The driver supports +# both the CLK and PPS modes if the requisite kernel support is installed. +# +# Define -DCHU for a special CHU receiver using an ordinary shortwave +# radio. This requires the chu_clk line discipline or chu_clk_STREAMS +# module in the ./kernel directory. At present, this driver works only +# on SunOS4.1.x; operation in other systems has not been confirmed. +# Construction details for a suitable modem can be found in the ./gadget +# directory. The driver supports # neither the CLK nor PPS modes. +# +# Define -DPARSE for a DCF77/GPS(GENERIC) receiver. For best performance +# this requires a special parsestreams STREAMS (SunOS 4.x) module in the +# ./parse directory. Define -DPARSEPPS for PPS support via the +# DCF77/GPS (GENERIC) receiver; also, define -DPPS in the DEFS above. +# Define: -DCLOCK_MEINBERG for Meinberg clocks +# -DCLOCK_SCHMID for Schmid receivers +# -DCLOCK_DCF7000 for ELV DCF7000 +# -DCLOCK_RAWDCF for simple receivers (100/200ms pulses on Rx) +# -DCLOCK_TRIMSV6 for Trimble SV6 GPS receiver +# +# Define -DMX4200PPS for a Magnavox 4200 GPS receiver. At present, this +# driver works only on SunOS4.1.x with CPU serial ports only. The PPS +# mode is required. +# +# Define -DAS2201 for an Austron 2200A or 2201A GPS receiver. It should +# work in all systems with a serial port. The driver does not support the +# CLK mode, but does support the PPS mode. If the radio is connected to +# more than one machine, the PPS mode is required. +# +# Define -DGOES for a Kinemetrics/TrueTime 468-DC GOES receiver. This +# driver is known to work with some other TrueTime products as well, +# including the GPS-DC GPS receiver. It should work in all systems with +# a serial port. The driver does not support the CLK mode, but does +# support the PPS mode. +# +# Define -DOMEGA for a Kinemetrics/TrueTime OM-DC OMEGA receiver. It +# should work in all systems with a serial port. The driver does not +# support the CLK mode, but does support the PPS mode. +# +# Define -DTPRO for a KSI/Odetics TPRO-S IRIG-B timecode reader. This +# requires the SunOS interface driver available from KSI. The driver +# supports neither the CLK nor PPS modes. +# +# Define -DLEITCH for a Leitch CSD 5300 Master Clock System Driver for +# the HP 5061B Cesium Clock. It should work in all systems with a serial +# port. The driver does not support the CLK mode, but does support the +# PPS mode. +# +# Define -DMSFEESPPS for an EES M201 MSF receiver. It currently only works +# under SunOS 4.x with the PPSCD (ppsclock) STREAMS module, but the RCS +# files on cl.cam.ac.uk still has support for CLK and CBREAK modes. +# +# Define -DIRIG for a IRIG-B timecode timecode using the audio codec of +# the Sun SPARCstations. This requires a modified BSD audio driver and +# exclusive access to the audio port. A memo describing how it works and +# how to install the driver is in the README.irig file in the ./doc +# directory. +# +# Note: The following defines result in compilation of all the above radio +# clocks. This works on a Sun 4.1.x system which has tty_clk, chu_clk and +# ppsclock STREAMS modules installed. If the trailing CLK and PPS suffixes +# are removed and the IRIG, PARSE* and CLOCK* deleted, all of the rest compile +# under Ultrix 4.2a/3. If the MX4200 is removed, all the rest compile on a DEC +# OSF/1 Alpha. +# +CLOCKDEFS=-DAS2201PPS -DCHU -DGOES -DIRIG -DLEITCH -DLOCAL_CLOCK -DMX4200PPS -DOMEGA -DPSTCLK -DTPRO -DWWVBCLK +# +# Directory into which binaries should be installed (default /usr/local) +# +BINDIR= /usr/local/bin diff --git a/usr.sbin/xntpd/conf/Config.local b/usr.sbin/xntpd/conf/Config.local new file mode 100644 index 0000000..4c5095c --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.local @@ -0,0 +1,190 @@ +# This is the local configure file (distribution version). +# You must modify it to fit your particular configuration +# and name it Config.local +# The following configuratiions can be auto-generated: +# +# make Config.local.green +# make a Config.local that supports a local clock +# (i.e. allow fallback to use of the CPU's own clock) +# make Config.local.NO.clock +# make a Config.local that supports no clocks +# +# +# NOTE TO GREENHORNS +# +# For plug-'n-play and no radios or other complicated gadgetry, +# use "make Config.local.green" as above. +# +# Following defines can be set in the DEFS_OPT= define: +# +# The flag -DDEBUG includes some debugging code. To use this, include +# the define and start the daemon with one or more -d flags, depending +# on your calibration of pearannoya. The daemon will not detach your +# terminal in this case. Judicious use of grep will reduce the speaker +# volume to bearable levels. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# The -DSYSLOG_FILE defines allows logging messages that are normally +# reported via syslof() in a file. The file name can be configured using +# the configuration line "logfile <filename>" in CONFIG_FILE. +# +# There are three serial port system software interfaces, each of +# which is peculiar to one or more Unix versions. Define +# -DHAVE_SYSV_TTYS for basic System V compatibility; define -DSTREAM +# for POSIX compatibility including System V Streams, and +# HAVE_BSD_TTYS for 4.3bsd compatibility. Only one of these three +# should be defined. If none are defined, HAVE_BSD_TTYS is assumed. +# Usually these defines are already set correctly. +# +DEFS_OPT=-DDEBUG + +# +# The DEFS_LOCAL define picks up all flags from DEFS_OPT (do not delete that) +# and one of the following: +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you may also want to +# configure the particular clock drivers you want in the CLOCKDEFS= line +# below. This flag affects xntpd only. This define is included by +# default when using the "make makeconfig" script. +# +# The next two sets of defines are meaningful only when radio clock +# drivers or special 1-pps signals are to be used. For systems without +# these features, these delicious complexities can be avoided. Ordinarily, +# the "make makeconfig" script figures out which ones to use, but your +# mileage may vary. +# +# There are three ways to utilize external 1-pps signals. Define +# -DPPS to include just the pps routine, such as used by the DCF77(PARSE) +# clock driver. Define -DPPSCLK to include a serial device driver +# which avoids much of the jitter due to upper level port +# processing. This requires a dedicated serial port and either the +# tty_clock line discipline or tty_clk_streams module, both of +# which are in the ./kernel directory. Define -DPPSCD to include a +# special driver which intercepts carrier-detect transitions +# generated by the pps signal. This requires a nondedicated serial +# port and the ppsclock streams module in the ./kernel directory. +# Only one of these three flags should be defined. +# +# The flag KERNEL_PLL causes code to be compiled for a special feature of +# the kernel that (a) implements the phase-lock loop and (b) provides +# a user interface to learn time, maximum error and estimated error. +# See the file README.kern in the doc directory for further info. +# This code is activated only if the relevant kernel features have +# been configured; it does not affect operation of unmodified kernels. +# To compile it, however, requires a few header files from the +# special distribution. +# +# Note: following line must always start with DEFS_LOCAL= $(DEFS_OPT) +DEFS_LOCAL= $(DEFS_OPT) -DREFCLOCK -DPPSPPS -DKERNEL_PLL + +# +# Radio clock support definitions (these only make sense if -DREFCLOCK +# used), which is normally the case. Note that a configuration can include +# no clocks, more than one type of clock and even multiple clocks of the +# same type. +# +# For most radio clocks operating with serial ports, accuracy can +# be considerably improved through use of the tty_clk line +# discipline or tty_clk_STREAMS streams module found in the +# ./kernel directory. These gizmos capture a timestamp upon +# occurrence of an intercept character and stuff it in the data +# stream for the clock driver to munch. To select this mode, +# postfix the driver name with the string CLK; that is, WWVB +# becomes WWVBCLK. If more than one clock is in use, the CLK +# postfix can be used with any or all of them. +# +# Alternatively, for the best accuracy, use the ppsclock streams +# module in the ./ppsclock directory to steal the carrier-detect +# transition and capture a precision timestamp. At present this +# works only with SunOS 4.1.1 or later. To select this mode, +# postfix the driver name with the string PPS; that is, AS2201 +# becomes AS2201PPS. If more than one clock is in use, the PPS +# postfix should be used with only one of them. If any PPS +# postfix is defined, the -DPPSPPS define should be used on the +# DEFS above. +# +# Define -DLOCAL_CLOCK for a local pseudo-clock to masquerade as a +# reference clock for those subnets without access to the real thing. +# Works in all systems and requires no hardware support. This is defined +# by default when using the "make makeconfig" script and greenhorn +# configuraiton. +# +# Define -DPST for a PST/Traconex 1020 WWV/H receiver. The driver +# supports both the CLK and PPS modes. It should work in all systems +# with a serial port. +# +# Define -DWWVB for a Spectracom 8170 or Netclock/2 WWVB receiver. It +# should work in all systems with a serial port. The driver supports +# both the CLK and PPS modes if the requisite kernel support is installed. +# +# Define -DCHU for a special CHU receiver using an ordinary shortwave +# radio. This requires the chu_clk line discipline or chu_clk_STREAMS +# module in the ./kernel directory. At present, this driver works only +# on SunOS4.1.x; operation in other systems has not been confirmed. +# Construction details for a suitable modem can be found in the ./gadget +# directory. The driver supports # neither the CLK nor PPS modes. +# +# Define -DPARSE for a DCF77/GPS(GENERIC) receiver. For best performance +# this requires a special parsestreams STREAMS (SunOS 4.x) module in the +# ./parse directory. Define -DPARSEPPS for PPS support via the +# DCF77/GPS (GENERIC) receiver; also, define -DPPS in the DEFS above. +# Define: -DCLOCK_MEINBERG for Meinberg clocks +# -DCLOCK_SCHMID for Schmid receivers +# -DCLOCK_DCF7000 for ELV DCF7000 +# -DCLOCK_RAWDCF for simple receivers (100/200ms pulses on Rx) +# -DCLOCK_TRIMSV6 for Trimble SV6 GPS receiver +# +# Define -DMX4200PPS for a Magnavox 4200 GPS receiver. At present, this +# driver works only on SunOS4.1.x with CPU serial ports only. The PPS +# mode is required. +# +# Define -DAS2201 for an Austron 2200A or 2201A GPS receiver. It should +# work in all systems with a serial port. The driver does not support the +# CLK mode, but does support the PPS mode. If the radio is connected to +# more than one machine, the PPS mode is required. +# +# Define -DGOES for a Kinemetrics/TrueTime 468-DC GOES receiver. This +# driver is known to work with some other TrueTime products as well, +# including the GPS-DC GPS receiver. It should work in all systems with +# a serial port. The driver does not support the CLK mode, but does +# support the PPS mode. +# +# Define -DOMEGA for a Kinemetrics/TrueTime OM-DC OMEGA receiver. It +# should work in all systems with a serial port. The driver does not +# support the CLK mode, but does support the PPS mode. +# +# Define -DTPRO for a KSI/Odetics TPRO-S IRIG-B timecode reader. This +# requires the SunOS interface driver available from KSI. The driver +# supports neither the CLK nor PPS modes. +# +# Define -DLEITCH for a Leitch CSD 5300 Master Clock System Driver for +# the HP 5061B Cesium Clock. It should work in all systems with a serial +# port. The driver does not support the CLK mode, but does support the +# PPS mode. +# +# Define -DMSFEESPPS for an EES M201 MSF receiver. It currently only works +# under SunOS 4.x with the PPSCD (ppsclock) STREAMS module, but the RCS +# files on cl.cam.ac.uk still has support for CLK and CBREAK modes. +# +# Define -DIRIG for a IRIG-B timecode timecode using the audio codec of +# the Sun SPARCstations. This requires a modified BSD audio driver and +# exclusive access to the audio port. A memo describing how it works and +# how to install the driver is in the README.irig file in the ./doc +# directory. +# +# Note: The following defines result in compilation of all the above radio +# clocks. This works on a Sun 4.1.x system which has tty_clk, chu_clk and +# ppsclock STREAMS modules installed. If the trailing CLK and PPS suffixes +# are removed and the IRIG, PARSE* and CLOCK* deleted, all of the rest compile +# under Ultrix 4.2a/3. If the MX4200 is removed, all the rest compile on a DEC +# OSF/1 Alpha. +# +CLOCKDEFS= -DLOCAL_CLOCK -DAS2201PPS -DCHU -DGOES -DIRIG -DMX4200PPS -DOMEGA -DPSTCLK -DTPRO -DWWVBCLK -DMSFEESPPS -DLEITCH + +# +# Directory into which binaries should be installed (default /usr/local) +# +BINDIR= /usr/local/bin diff --git a/usr.sbin/xntpd/conf/Config.svr4 b/usr.sbin/xntpd/conf/Config.svr4 new file mode 100644 index 0000000..d6d0661 --- /dev/null +++ b/usr.sbin/xntpd/conf/Config.svr4 @@ -0,0 +1,167 @@ +# +# This is the local configure file. Modify it to fit your particular +# configuration. +# +# NOTE TO GREENHORNS +# +# For plug-'n-play and no radios or other complicated gadgetry, set the +# alternate defines as shown. +# +# The flag -DDEBUG includes some debugging code. To use this, include +# the define and start the daemon with one or more -d flags, depending +# on your calibration of pearannoya. The daemon will not detach your +# terminal in this case. Judicious use of grep will reduce the speaker +# volume to bearable levels. +# +# To change the location of the configuration file, use a +# -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar. +# +# The flag -DREFCLOCK causes the basic reference clock support to be +# compiled into the daemon. If you set this you may also want to +# configure the particular clock drivers you want in the CLOCKDEFS= line +# below. This flag affects xntpd only. This define is included by +# default when using the "make makeconfig" script. +# +# The next two sets of defines are meaningful only when radio clock +# drivers or special 1-pps signals are to be used. For systems without +# these features, these delicious complexities can be avoided. Ordinarily, +# the "make makeconfig" script figures out which ones to use, but your +# mileage may vary. +# +# There are three ways to utilize external 1-pps signals. Define +# -DPPS to include just the pps routine, such as used by the DCF77 +# clock driver. Define -DPPSCLK to include a serial device driver +# which avoids much of the jitter due to upper level port +# processing. This requires a dedicated serial port and either the +# tty_clock line discipline or tty_clk_streams module, both of +# which are in the ./kernel directory. Define -DPPSCD to include a +# special driver which intercepts carrier-detect transitions +# generated by the pps signal. This requires a nondedicated serial +# port and the ppsclock streams module in the ./kernel directory. +# Only one of these three flags should be defined. +# +# There are three serial port system software interfaces, each of +# which is peculiar to one or more Unix versions. Define +# -DHAVE_SYSV_TTYS for basic System V compatibility; define -DSTREAM +# for POSIX compatibility including System V Streams, and +# HAVE_BSD_TTYS for 4.3bsd compatibility. Only one of these three +# should be defined. If none are defined, HAVE_BSD_TTYS is assumed. +# Ordinarily, the correct define is sniffed by the "make makeconfig" +# script and automatically included. +# +# The flag KERNEL_PLL is a temporary hack to use when the phase-lock loop +# is implmented in the kernel. Do not use unless you have modified +# kernel routines (see doc/README.kern). +# +#DEFS_LOCAL= -DDEBUG -DPPSPPS -DKERNEL_PLL +DEFS_LOCAL= -DDEBUG +#DEFS_LOCAL= # for greenhorns +# +# Radio clock support definitions (these only make sense if -DREFCLOCK +# used), which is normally the case. Note that a configuration can include +# no clocks, more than one type of clock and even multiple clocks of the +# same type. +# +# For most radio clocks operating with serial ports, accuracy can +# be considerably improved through use of the tty_clk line +# discipline or tty_clk_STREAMS streams module found in the +# ./kernel directory. These gizmos capture a timestamp upon +# occurrence of an intercept character and stuff it in the data +# stream for the clock driver to munch. To select this mode, +# postfix the driver name with the string CLK; that is, WWVB +# becomes WWVBCLK. If more than one clock is in use, the CLK +# postfix can be used with any or all of them. +# +# Alternatively, for the best accuracy, use the ppsclock streams +# module in the ./ppsclock directory to steal the carrier-detect +# transition and capture a precision timestamp. At present this +# works only with SunOS 4.1.1 or later. To select this mode, +# postfix the driver name with the string PPS; that is, AS2201 +# becomes AS2201PPS. If more than one clock is in use, the PPS +# postfix should be used with only one of them. If any PPS +# postfix is defined, the -DPPSPPS define should be used on the +# DEFS above. +# +# Define -DLOCAL_CLOCK for a local pseudo-clock to masquerade as a +# reference clock for those subnets without access to the real thing. +# Works in all systems and requires no hardware support. This is defined +# by default when using the "make makeconfig" script. +# +# Define -DPST for a PST/Traconex 1020 WWV/H receiver. The driver +# supports both the CLK and PPS modes. It should work in all systems +# with a serial port. +# +# Define -DWWVB for a Spectracom 8170 or Netclock/2 WWVB receiver. It +# should work in all systems with a serial port. The driver supports +# both the CLK and PPS modes if the requisite kernel support is installed. +# +# Define -DCHU for a special CHU receiver using an ordinary shortwave +# radio. This requires the chu_clk line discipline or chu_clk_STREAMS +# module in the ./kernel directory. At present, this driver works only +# on SunOS4.1.x; operation in other systems has not been confirmed. +# Construction details for a suitable modem can be found in the ./gadget +# directory. The driver supports # neither the CLK nor PPS modes. +# +# Define -DPARSE for a DCF77/GPS(GENERIC) receiver. For best performance +# this requires a special parsestreams STREAMS (SunOS 4.x) module in the +# ./kernel directory. Define -DPARSEPPS for PPS support via the +# DCF77/GPS (GENERIC) receiver; also, define -DPPS in the DEFS above. +# Define PARSESTREAM for utilising the STREAMS module for improved +# precision (currently only SunOS4.x) +# +# Define: -DCLOCK_MEINBERG for Meinberg clocks +# -DCLOCK_SCHMID for Schmid receivers +# -DCLOCK_DCF7000 for ELV DCF7000 +# -DCLOCK_RAWDCF for simple receivers (100/200ms pulses on Rx) +# +# Define -DMX4200PPS for a Magnavox 4200 GPS receiver. At present, this +# driver works only on SunOS4.1.x with CPU serial ports only. The PPS +# mode is required. +# +# Define -DAS2201 for an Austron 2200A or 2201A GPS receiver. It should +# work in all systems with a serial port. The driver does not support the +# CLK mode, but does support the PPS mode. If the radio is connected to +# more than one machine, the PPS mode is required. +# +# Define -DGOES for a Kinemetrics/TrueTime 468-DC GOES receiver. This +# driver is known to work with some other TrueTime products as well, +# including the GPS-DC GPS receiver. It should work in all systems with +# a serial port. The driver does not support the CLK mode, but does +# support the PPS mode. +# +# Define -DOMEGA for a Kinemetrics/TrueTime OM-DC OMEGA receiver. It +# should work in all systems with a serial port. The driver does not +# support the CLK mode, but does support the PPS mode. +# +# Define -DTPRO for a KSI/Odetics TPRO-S IRIG-B timecode reader. This +# requires the SunOS interface driver available from KSI. The driver +# supports neither the CLK nor PPS modes. +# +# Define -DLEITCH for a Leitch CSD 5300 Master Clock System Driver for +# the HP 5061B Cesium Clock. It should work in all systems with a serial +# port. The driver does not support the CLK mode, but does support the +# PPS mode. +# +# Define -DMSF for a EES M201 MSF receiver. It should work in all systems +# with a serial port. The driver does not support the CLK mode, but does +# support the # PPS mode. +# +# Define -DIRIG for a IRIG-B timecode timecode using the audio codec of +# the Sun SPARCstations. This requires a modified BSD audio driver and +# exclusive access to the audio port. A memo describing how it works and +# how to install the driver is in the README.irig file in the ./doc +# directory. +# +# Note: The following defines result in compilation of all the above radio +# clocks. This works on a Sun 4.1.x system which has tty_clk, chu_clk and +# ppsclock STREAMS modules installed. If the trailing CLK and PPS suffixes +# are removed and the IRIG deleted, all of the rest compile under +# Ultrix 4.2a/3. If the MX4200 is removed, all the rest compile on a DEC +# OSF/1 Alpha. +# +#CLOCKDEFS= -DAS2201PPS -DCHU -DGOES -DIRIG -DMX4200PPS -DOMEGA -DPST -DPSTCLK -DTPRO -DWWVBCLK +CLOCKDEFS= # for greenhorns +# +# Directory into which binaries should be installed +# +BINDIR= /usr/etc diff --git a/usr.sbin/xntpd/conf/README b/usr.sbin/xntpd/conf/README new file mode 100644 index 0000000..19dcb79 --- /dev/null +++ b/usr.sbin/xntpd/conf/README @@ -0,0 +1,8 @@ +README file for directory ./conf of the NTP Version 3 distribution + +This directory contains example run-time configuration files for the +NTP Version 3 daemon xntpd. These files illustrate some of the more +obtuse configurations you may run into. They are not likely to do +anything good if run on machines other than their native spot, so don't +just blindly copy something and put it up. Additional information can +be found in the ./doc directory of the base directory. diff --git a/usr.sbin/xntpd/conf/dewey.conf b/usr.sbin/xntpd/conf/dewey.conf new file mode 100644 index 0000000..523008f --- /dev/null +++ b/usr.sbin/xntpd/conf/dewey.conf @@ -0,0 +1,38 @@ +# +# NTP configuration file (ntp.conf) +# dewey.udel.edu (128.175.1.2) +# +# Stratum-1 peers +# +#peer 128.4.1.5 # dcn5.udel.edu +#peer 128.8.10.1 # umd1.umd.edu +#peer 18.72.0.3 version 2 # bitsy.mit.edu +peer 192.43.244.9 # ncar-fuzz.nsf.net +peer 132.249.16.1 # sdsc-fuzz.nsf.net +peer 128.118.46.3 version 2 # otc1.psu.edu +#peer 130.126.174.40 # truechimer.cso.uiuc.edu +#peer 128.9.2.129 # wwvb.isi.edu +#peer 130.43.2.2 version 2 # apple.com +# +# Stratum-2 peers +# +peer 128.175.1.1 # huey.udel.edu +#peer 128.175.1.2 # dewey.udel.edu +peer 128.175.1.3 # louie.udel.edu +#peer 128.175.2.33 # louie.udel.edu +#peer 128.175.7.39 # louie.udel.edu +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -7 # clock reading precision (10 msec) +driftfile /etc/ntp.drift # path for drift file +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /etc/ntp.keys # path for key file +trustedkey 1 2 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +authdelay 0.001501 # authentication delay (VAX 11/780) diff --git a/usr.sbin/xntpd/conf/grundoon.conf b/usr.sbin/xntpd/conf/grundoon.conf new file mode 100644 index 0000000..c5aef6e --- /dev/null +++ b/usr.sbin/xntpd/conf/grundoon.conf @@ -0,0 +1,58 @@ +# +# NTP configuration file (ntp.conf) +# grundoon.udel.edu (128.4.2.7) +# +server 127.127.6.0 prefer # irig audio decoder +fudge 127.127.6.0 time1 0.0005 +#pps delay -0.0004 # pps correction for CLK streams module +server 127.127.4.1 # spectracom 8170/netclock-2 wwvb receiver +# propagation delay: wwvb 0.0088; receiver delay 0.0173 os delay .0035 +fudge 127.127.4.1 time1 0.0035 flag4 1 +server 127.127.3.1 # pst/traconex 1020 wwv/h receiver +# propagation delay: wwv 0.0088 wwvh 0.0281; receiver+os delay 0.0035 +fudge 127.127.3.1 time1 0.0123 time2 0.0316 +server 127.127.7.1 # scratchbuilt chu receiver/demodulator +# propagtion delay: chu 0.0030; receiver+os delay 0.0060 +fudge 127.127.7.1 time1 0.0030 time2 0.0060 +#server 127.127.10.1 # austron 2201 gps receiver + +server 127.127.1.2 # local clock +#server 127.127.12.2 # ksi/odetics tpr0-s irig-b reader + +#broadcast 128.4.2.255 + +peer 128.4.1.1 key 3 # rackety.udel.edu (Sun4c/40 IPC) +peer 128.4.1.4 # barnstable.udel.edu (Sun4c/65 SS1+) +#peer 128.4.1.5 # churchy.udel.edu (Bancomm bc700LAN) +#peer 128.4.2.7 key 3 # grundoon.udel.edu (Sun4c/40 IPC) +peer 128.4.1.8 # bridgeport.udel.edu (Sun4c/40 IPC) +peer 128.4.1.20 key 3 # pogo.udel.edu (Sun4c/65 SS1+) +peer 128.4.1.22 # malarky.udel.edu (Sun4c/50 IPX) +peer 128.4.1.23 # beauregard.udel.edu (Sun4/40 IPC) +peer 128.4.1.24 # baldwin.udel.edu (Sun4/40 IPC) +peer 128.4.1.25 # albert.udel.edu (Sun4c/60 SS1) +peer 128.4.1.27 # bunnylou.udel.edu (Sun4c/40 IPC) +peer 128.4.1.28 # cowbird.udel.edu (DEC 5000/240) +peer 128.4.1.29 # porkypine.udel.edu (DEC 5000/240) +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -18 # clock reading precision (usec) +driftfile /etc/ntp.drift # path for drift file +statsdir /grundoon/ntpstats/ # directory for statistics files +filegen peerstats file peerstats type day enable +filegen loopstats file loopstats type day enable +filegen clockstats file clockstats type day enable + +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /usr/local/ntp.keys # path for keys file +trustedkey 1 2 3 4 14 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +#authdelay 0.000073 # authentication delay (SPARC4c/40 IPC DES) +authdelay 0.000163 # authentication delay (SPARC4c/40 IPC MD5) + diff --git a/usr.sbin/xntpd/conf/malarky.conf b/usr.sbin/xntpd/conf/malarky.conf new file mode 100644 index 0000000..f887f83 --- /dev/null +++ b/usr.sbin/xntpd/conf/malarky.conf @@ -0,0 +1,40 @@ +# +# NTP configuration file (ntp.conf) +# malarky.udel.edu (128.4.1.22) +# +peer 128.4.1.1 # rackety.udel.edu +peer 128.4.1.4 # barnstable.udel.edu +#peer 128.4.1.5 #churchy.udel.edu +peer 128.4.2.7 # grundoon.udel.edu +peer 128.4.1.8 # bridgeport.udel.edu +peer 128.4.1.20 prefer # pogo.udel.edu +#peer 128.4.1.22 # malarky.udel.edu +peer 128.4.1.23 # beauregard.udel.edu +peer 128.4.1.24 # baldwin.udel.edu +peer 128.4.1.25 # albert.udel.edu +peer 128.4.1.27 # bunnylou.udel.edu +peer 128.4.1.28 # cowbird.udel.edu +peer 128.4.1.29 # porkypine.udel.edu + +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -18 # clock reading precision (usec) +driftfile /etc/ntp.drift # path for drift file +statsdir /malarky/ntpstats/ # directory for statistics files +filegen peerstats file peerstats type day enable +filegen loopstats file loopstats type day enable +filegen clockstats file clockstats type day enable + +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /usr/local/bin/ntp.keys # path for key file +trustedkey 1 2 3 4 14 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +#authdelay 0.000047 # authentication delay (Sun4c/50 IPX DES) +authdelay 0.000094 # authentication delay (Sun4c/50 IPX MD5) + diff --git a/usr.sbin/xntpd/conf/ntp.conf.gw b/usr.sbin/xntpd/conf/ntp.conf.gw new file mode 100644 index 0000000..bd56878 --- /dev/null +++ b/usr.sbin/xntpd/conf/ntp.conf.gw @@ -0,0 +1,34 @@ +# +# peers for gw.ccie.utoronto.ca (128.100.63.2, 128.100.49.104, 128.100.224.224) +# +peer 128.4.0.1 key 1 # dcn1.udel.edu +peer 128.8.10.1 key 2 # umd1.umd.edu +peer 128.116.64.3 key 3 # ncarfuzz.ucar.edu +peer 128.9.2.129 key 4 # wwvb.isi.edu +#peer 128.4.0.6 key 1 # dcn6.udel.edu +# +# Don't configure associations with the other secondaries. This is +# the only one in a machine room and will hold itself pretty stable +# when all else fails +# +monitor yes # keep track of traffic + +# +# drift file +# +driftfile /etc/ntp.drift + +# +# authentication stuff. We're running authenticated, tell it +# where the keys are and which to trust. +# +authenticate yes +authdelay 0.000323 # seconds, about right for an RT model 125 +trustedkey 1 2 3 4 21 22 23 24 +keys /etc/ntp.keys + +# +# allow run time reconfiguration using key 65535 +# +requestkey 65535 +controlkey 65535 diff --git a/usr.sbin/xntpd/conf/ntp.conf.ipl b/usr.sbin/xntpd/conf/ntp.conf.ipl new file mode 100644 index 0000000..1fd5b7d --- /dev/null +++ b/usr.sbin/xntpd/conf/ntp.conf.ipl @@ -0,0 +1,32 @@ +# +# peers for ipl.utcs.utoronto.ca (128.100.102.7) +# +peer 128.4.0.5 key 1 # dcn5.udel.edu +peer 128.8.10.1 key 2 # umd1.umd.edu +peer 192.12.207.1 key 3 # fuzz.sdsc.edu +peer 128.9.2.129 key 4 # wwvb.isi.edu +peer 128.100.63.2 key 21 # gw.ccie +peer 128.100.49.105 key 22 # suzuki.ccie +peer 128.100.102.4 key 23 # shiningtree.utcs +# +monitor yes # keep track of traffic + +# +# drift file +# +driftfile /etc/ntp.drift + +# +# authentication stuff. We're running authenticated, tell it +# where the keys are and which to trust. +# +authenticate yes +authdelay 0.000323 # seconds, about right for an RT model 125 +trustedkey 1 2 3 4 21 22 23 +keys /etc/ntp.keys + +# +# allow run time reconfiguration using key 65535 +# +requestkey 65535 +controlkey 65535 diff --git a/usr.sbin/xntpd/conf/ntp.conf.nsf b/usr.sbin/xntpd/conf/ntp.conf.nsf new file mode 100644 index 0000000..298bb7a --- /dev/null +++ b/usr.sbin/xntpd/conf/ntp.conf.nsf @@ -0,0 +1,156 @@ +# +# Maybe an alternate xntpd configuration for NSS#17 +# + +# +# precision is supported, but you don't really need it. The code +# will determine a precision from the kernel's value of _hz which +# is fine. Note you shouldn't claim too good a precision on a +# Unix machine even if the clock carries a lot of bits, since +# precision also depends on things like I/O delays and scheduling +# latencies, which Unix machines control poorly. If you claim better +# than -6 or -7 it will make the anti-hop aperture tighter than is +# reasonable for a Unix machine. +# +#precision -7 + +# +# peers are ncarfuzz.ucar.edu umd1.umd.edu dcn5.udel.edu fuzz.sdsc.edu +# syntax is peer addr [ key 1-15 ] [ version 1_or_2 ] +# + +peer 128.116.64.3 # ncarfuzz.ucar.edu +peer 128.8.10.1 # umd1.umd.edu +peer 128.4.0.5 # dcn5.udel.edu +peer 192.12.207.1 # fuzz.sdsc.edu + +# +# Drift file. Put this in a directory which the daemon can write to. +# No symbolic links allowed, either, since the daemon updates the file +# by creating a temporary in the same directory and then rename()'ing +# it to the file. +# +# This is a nice feature. Once you've got the drift computed it hardly +# ever takes more than an hour or so to resync after a restart. +# +driftfile /etc/ntp.drift + +# +# The server statement causes polling to be done in client mode rather +# than symmetric active. It is an alternative to the peer command +# above. Which you use depends on what you want to achieve. Usually +# it doesn't matter. Syntax is: +# +#server 128.100.49.1 key 4 version 1 + +# +# The broadcast statement tells it to start broadcasting time out one +# of its interfaces. Syntax is +# +#broadcast 128.100.49.255 # [ key n ] [ version n ] + +# +# broadcastclient tells the daemon whether it should attempt to sync +# to broadcasts or not. Defaults to `no'. +# +#broadcastclient yes # or no + +# +# broadcastdelay configures in a default round-trip delay to use for +# broadcast time. It may poll to improve this estimate. +# +#broadcastdelay 0.0095 # in seconds + +# +# authenticate configures us into strict authentication mode (or not). +# +#authenticate yes # or no. Default is no + +# +# authdelay is the time it takes to do an NTP encryption on this host. +# The current routine is pretty fast. +# +#authdelay 0.000340 # in seconds + +# +# trustedkey are used when authenticate is on. We only trust (and sync to) +# peers who know these keys. +# +#trustedkey 1 3 4 8 + +# +# monitor turns on the monitoring facility. See xntpdc's monlist command. +# This shows a lot of neat stuff, but I'm not fussy about the implementation. +# Uses up to 20Kb of memory at run time. You could try this. +# +#monitor yes # or no. Default is no + +# +# keys points at the file which holds the authentication keys. +# +#keys /etc/ntp.keys + +# +# requestkey indicates which key is to be used for validating +# runtime reconfiguration requests. If this isn't defined, or the +# key isn't in the keys file, you can't do runtime reconfiguration. +# controlkey indicates which key is to be used for validating +# mode 6 write variables commands. If this isn't defined you can't +# do it. The only thing the latter is used for is to set leap second +# warnings on machines with radio clocks. +# +#requestkey 65535 +#controlkey 65534 + +# +# restrict places restrictions on the punters. This is implemented as +# a sorted address-and-mask list, with each entry including a set of +# flags which define what a host matching the entry *can't* do (the sort +# also saves CPU time searching the table since it needn't be searched +# to the end). The last match in the table defines what the host does. +# The default entry, which everyone matches, is first, most specific +# matches are later in the table. The flags are: +# +# ignore - ignore all traffic from host +# noserve - don't give host any time (but let him make queries?) +# notrust - give host time, let him make queries, but don't sync to him +# noquery - host can have time, but not make queries +# nomodify - allow the host to make queries except those which are +# actually run-time configuration commands. +# notrap - don't allow matching hosts to set traps. If noquery is +# set this isn't needed +# lowpriotrap - if this guy sets a trap make it easy to delete +# ntpport - a different kind of flag. Makes matches for this entry +# possible only if the source port is 123. +# +# To understand this better, take a look at xntpdc's reslist command when the +# server is running. This usually prints in the sorted order. +# +# This should match the NSS 17 stuff. Default mask is all ones. + +restrict default ignore # ignore almost everyone + +# +# These guys can be served time and make non-modifying queries +# +restrict 129.140.0.0 mask 255.255.0.0 notrust nomodify +restrict 35.1.1.42 notrust nomodify + +# +# Rest of 35.1.1 gets to look but not touch +# +restrict 35.1.1.0 mask 255.255.255.0 noserve nomodify + +# +# modifications can be made from local NSS only +# +restrict 129.140.17.0 mask 255.255.255.0 notrust +restrict 127.0.0.1 notrust + +# +# take time from the following peers, but don't let them peek or modify +# +restrict 128.116.64.3 noquery +restrict 128.8.10.1 noquery +restrict 128.4.0.5 noquery +restrict 192.12.207.1 noquery diff --git a/usr.sbin/xntpd/conf/ntp.conf.shiningtree b/usr.sbin/xntpd/conf/ntp.conf.shiningtree new file mode 100644 index 0000000..1576ebb --- /dev/null +++ b/usr.sbin/xntpd/conf/ntp.conf.shiningtree @@ -0,0 +1,32 @@ +# +# peers for shiningtree.utcs.utoronto.ca (128.100.102.4) +# +peer 128.4.0.1 key 1 # dcn1.udel.edu +peer 130.126.174.40 key 2 # truechimer.cso.uiuc.edu +peer 192.12.207.1 key 3 # fuzz.sdsc.edu +peer 128.116.64.3 key 4 # ncarfuzz.ucar.edu +peer 128.100.63.2 key 21 # gw.ccie +peer 128.100.49.105 key 22 # suzuki.ccie +peer 128.100.102.7 key 23 # ipl.utcs +# +monitor yes # keep track of traffic + +# +# drift file +# +driftfile /etc/ntp.drift + +# +# authentication stuff. We're running authenticated, tell it +# where the keys are and which to trust. +# +authenticate yes +authdelay 0.000323 # seconds, about right for an RT model 125 +trustedkey 1 2 3 4 21 22 23 +keys /etc/ntp.keys + +# +# allow run time reconfiguration using key 65535 +# +requestkey 65535 +controlkey 65535 diff --git a/usr.sbin/xntpd/conf/ntp.conf.suzuki b/usr.sbin/xntpd/conf/ntp.conf.suzuki new file mode 100644 index 0000000..ee32e7a --- /dev/null +++ b/usr.sbin/xntpd/conf/ntp.conf.suzuki @@ -0,0 +1,43 @@ +# +# peers for suzuki.ccie.utoronto.ca (128.100.49.105, 128.100.224.225) +# + +# +# the reference clock, /dev/chu1 +# +server 127.127.7.1 key 4 +# Propagation delay 2.5 ms, sloppy clock flag on +fudge 127.127.7.1 time1 0.0025 flag1 1 + +peer 128.4.0.5 key 1 # dcn5.udel.edu +peer 128.8.10.1 key 2 # umd1.umd.edu +peer 128.116.64.34 key 3 # ncarfuzz.ucar.edu +peer 130.126.174.40 key 4 # truechimer.cso.uiuc.edu +peer 128.100.49.104 key 24 # gw.ccie +peer 128.100.102.4 key 22 # shiningtree.utcs +peer 128.100.102.7 key 22 # ipl.utcs + +peer 128.4.0.6 key 1 # dcn6.udel.edu + +# +monitor yes # keep track of traffic + +# +# drift file +# +driftfile /etc/ntp.drift + +# +# authentication stuff. We're running authenticated, tell it +# where the keys are and which to trust. +# +authenticate yes +authdelay 0.000323 # seconds, about right for an RT model 125 +trustedkey 1 2 3 4 21 22 23 24 +keys /etc/ntp.keys + +# +# allow run time reconfiguration using key 65535 +# +requestkey 65535 +controlkey 65535 diff --git a/usr.sbin/xntpd/conf/pogo.conf b/usr.sbin/xntpd/conf/pogo.conf new file mode 100644 index 0000000..94ac6c8 --- /dev/null +++ b/usr.sbin/xntpd/conf/pogo.conf @@ -0,0 +1,50 @@ +# +# NTP configuration file (ntp.conf) +# pogo.udel.edu (128.4.1.20) +# +server 127.127.10.1 prefer # austron 2201 gps receiver +#server 127.127.4.1 # spectracom 8170/netclock-2 wwvb receiver +# propagation delay: wwvb 0.0088; receiver delay 0.0017 +#fudge 127.127.4.1 time1 0.0017 + +peer 128.4.1.1 key 3 # rackety.udel.edu (Sun4c/40 IPC) +peer 128.4.1.2 # mizbeaver.udel.edu +peer 128.4.1.4 # barnstable.udel.edu (Sun4c/65 SS1+) +#peer 128.4.1.5 # churchy.udel.edu (Bancomm bc700LAN) +peer 128.4.2.7 key 3 # grundoon.udel.edu (Sun4c/40 IPC) +peer 128.4.1.5 maxpoll 8 # churchy.udel.edu (cisco IGS router) +#peer 128.4.1.8 # bridgeport.udel.edu (Sun4c/40 IPC) +#peer 128.4.1.20 key 3 # pogo.udel.edu (Sun4c/65 SS1+) +#peer 128.4.1.22 # malarky.udel.edu (Sun4c/50 IPX) +#peer 128.4.1.23 # beauregard.udel.edu (Sun4/40 IPC) +peer 128.4.1.24 # baldwin.udel.edu (Sun4/40 IPC) +#peer 128.4.1.25 # albert.udel.edu (Sun4c/60 SS1) +#peer 128.4.1.27 # maccarony.udel.edu (Sun4c/40 IPC) +peer 128.4.1.29 # porkypine.udel.edu +peer 132.163.135.130 maxpoll 8 # time_A.timefreq.bldrdoc.gov (ACTS) +peer 131.188.1.40 maxpoll 8 # ntps1-0.uni-erlangen.de (DCF77) +peer 129.132.2.21 maxpoll 8 # swisstime.ethz.ch (DCF77) +peer 130.155.98.13 maxpoll 8 # terss.ml.csiro.au (OMEGA) + +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -18 # clock reading precision (usec) +driftfile /etc/ntp.drift # path for drift file +statsdir /pogo/ntpstats/ # directory for statistics files +filegen peerstats file peerstats type day enable +filegen loopstats file loopstats type day enable +filegen clockstats file clockstats type day enable + +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /usr/local/bin/ntp.keys # path for keys file +trustedkey 1 2 3 4 14 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +#authdelay 0.000072 # authentication delay (SPARC4c/65 SS1+ DES) +authdelay 0.000159 # authentication delay (SPARC4c/65 SS1+ MD5) + diff --git a/usr.sbin/xntpd/conf/rackety.conf b/usr.sbin/xntpd/conf/rackety.conf new file mode 100644 index 0000000..1a5181c --- /dev/null +++ b/usr.sbin/xntpd/conf/rackety.conf @@ -0,0 +1,75 @@ +# +# NTP configuration file (ntp.conf) +# rackety (128.4.1.1) +# +server 127.127.10.1 prefer # austron 2201 gps receiver +fudge 127.127.10.1 flag4 1 # enable statistics +server 127.127.4.1 # spectracom 8170/netclock-2 wwvb receiver +#propagation delay: wwvb 0.0088; receiver delay 0.0017 +fudge 127.127.4.1 time1 0.0017 value1 2 + +# +# ee vaxen +# +peer 128.175.1.1 # huey.udel.edu +peer 128.175.1.2 # louie.udel.edu +peer 128.175.1.3 # dewey.udel.edu + +# +# munchkins (stratum-1 only) +# +peer 128.4.1.2 # mizbeaver.udel.edu +#peer 128.4.1.5 # churchy.udel.edu +peer 128.4.2.7 key 3 # grundoon.udel.edu +peer 128.4.1.20 key 3 # pogo.udel.edu + +# +# dartnet +# +peer 140.173.112.2 # ames.dart.net +peer 140.173.128.1 # la.dart.net +peer 140.173.64.1 # dc.dart.net +peer 140.173.144.2 # parc.dart.net +peer 140.173.80.1 # sri.dart.net +peer 140.173.96.1 # lbl.dart.net +peer 140.173.128.2 # isi.dart.net +peer 140.173.16.1 # udel.dart.net +peer 140.173.32.1 # bbn.dart.net +peer 140.173.48.2 # mit.dart.net + +# +# nsfnet t3 backbone +# +server 140.222.134.1 version 2 # enss134 (cambridge - mit) +server 140.222.135.1 version 2 # enss135 (san diego - sdsc) +peer 140.222.136.1 version 2 # enss136 (college park - sura) +server 140.222.141.1 version 2 # enss141 (boulder - ncar) +server 140.222.144.1 version 2 # enss144 (sunnyvale - nasa ames) + +# +# famous players +# +#peer 132.163.135.130 # time_A.timefreq.bldrdoc.gov + +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -18 # clock reading precision (usec) +driftfile /etc/ntp.drift # path for drift file +statsdir /rackety/ntpstats/ # directory for statistics files +filegen peerstats file peerstats type day enable +filegen loopstats file loopstats type day enable +filegen clockstats file clockstats type day enable + +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /usr/local/bin/ntp.keys # path for keys file +trustedkey 1 2 3 4 14 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +#authdelay 0.000073 # authentication delay (SPARC4c/40 IPC DES) +authdelay 0.000163 # authentication delay (SPARC4c/40 IPC MD5) + diff --git a/usr.sbin/xntpd/conf/snow-white.conf b/usr.sbin/xntpd/conf/snow-white.conf new file mode 100644 index 0000000..a86cb4b --- /dev/null +++ b/usr.sbin/xntpd/conf/snow-white.conf @@ -0,0 +1,33 @@ +# +# NTP configuration file (ntp.conf) +# snow-white.udel.edu (128.175.2.15) +# +# Stratum-2 peers +# +peer 128.175.1.1 # huey.udel.edu +peer 128.175.1.2 # dewey.udel.edu +#peer 128.175.1.3 # louie.udel.edu +peer 128.175.2.33 # louie.udel.edu +#peer 128.175.7.39 # louie.udel.edu +# +# Stratum-3 peers +# +peer 128.175.7.4 # sol.cis.udel.edu +peer 128.175.7.18 # ra.cis.udel.edu +#peer 128.175.2.15 # snow-white.ee.udel.edu +peer 128.175.2.21 # opus.ee.udel.edu +# +# Miscellaneous stuff +# +monitor yes # enable monitoring +precision -18 # clock reading precision (1 usec) +driftfile /etc/ntp.drift # path for drift file +# +# Authentication stuff +# +authenticate yes # enable authentication +keys /etc/ntp.keys # path for key file +trustedkey 1 2 15 # define trusted keys +requestkey 15 # key (7) for accessing server variables +controlkey 15 # key (6) for accessing server variables +authdelay 0.000077 # authentication delay (SPARC IPC) |