Virgin import of ntpd 4.2.6p5.
When the series of commits is complete, things like https://cert.litnet.lt/en/docs/ntp-distributed-reflection-dos-attacks should be fixed. PR: bin/148836 (except that we import a newer version) Asked by: Too many MFC after: 2 weeks
This commit is contained in:
parent
9b5bd0a264
commit
2b45e011ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/ntp/dist/; revision=258945 svn path=/vendor/ntp/4.2.6p5/; revision=258946; tag=vendor/ntp/4.2.6p5
219
COPYRIGHT
219
COPYRIGHT
@ -2,9 +2,9 @@ This file is automatically generated from html/copyright.html
|
||||
|
||||
Copyright Notice
|
||||
|
||||
jpg "Clone me," says Dolly sheepishly
|
||||
jpg "Clone me," says Dolly sheepishly.
|
||||
|
||||
Last update: 20:31 UTC Saturday, January 06, 2007
|
||||
Last update: 1-Jan-2011 08:34 UTC
|
||||
_________________________________________________________________
|
||||
|
||||
The following copyright notice applies to all files collectively
|
||||
@ -13,7 +13,7 @@ This file is automatically generated from html/copyright.html
|
||||
applies as if the text was explicitly included in the file.
|
||||
***********************************************************************
|
||||
* *
|
||||
* Copyright (c) David L. Mills 1992-2009 *
|
||||
* Copyright (c) University of Delaware 1992-2011 *
|
||||
* *
|
||||
* Permission to use, copy, modify, and distribute this software and *
|
||||
* its documentation for any purpose with or without fee is hereby *
|
||||
@ -32,145 +32,158 @@ This file is automatically generated from html/copyright.html
|
||||
The following individuals contributed in part to the Network Time
|
||||
Protocol Distribution Version 4 and are acknowledged as authors of
|
||||
this work.
|
||||
1. [1]Mark Andrews <mark_andrews@isc.org> Leitch atomic clock
|
||||
1. [1]Takao Abe <takao_abe@xurb.jp> Clock driver for JJY receivers
|
||||
2. [2]Mark Andrews <mark_andrews@isc.org> Leitch atomic clock
|
||||
controller
|
||||
2. [2]Bernd Altmeier <altmeier@atlsoft.de> hopf Elektronik serial
|
||||
3. [3]Bernd Altmeier <altmeier@atlsoft.de> hopf Elektronik serial
|
||||
line and PCI-bus devices
|
||||
3. [3]Viraj Bais <vbais@mailman1.intel.com> and [4]Clayton Kirkwood
|
||||
4. [4]Viraj Bais <vbais@mailman1.intel.com> and [5]Clayton Kirkwood
|
||||
<kirkwood@striderfm.intel.com> port to WindowsNT 3.5
|
||||
4. [5]Michael Barone <michael,barone@lmco.com> GPSVME fixes
|
||||
5. [6]Jean-Francois Boudreault
|
||||
<Jean-Francois.Boudreault@viagenie.qc.ca>IPv6 support
|
||||
5. [6]Michael Barone <michael,barone@lmco.com> GPSVME fixes
|
||||
6. [7]Karl Berry <karl@owl.HQ.ileaf.com> syslog to file option
|
||||
7. [8]Greg Brackley <greg.brackley@bigfoot.com> Major rework of WINNT
|
||||
port. Clean up recvbuf and iosignal code into separate modules.
|
||||
8. [9]Marc Brett <Marc.Brett@westgeo.com> Magnavox GPS clock driver
|
||||
9. [10]Piete Brooks <Piete.Brooks@cl.cam.ac.uk> MSF clock driver,
|
||||
Trimble PARSE support
|
||||
10. [11]Reg Clemens <reg@dwf.com> Oncore driver (Current maintainer)
|
||||
11. [12]Steve Clift <clift@ml.csiro.au> OMEGA clock driver
|
||||
12. [13]Casey Crellin <casey@csc.co.za> vxWorks (Tornado) port and
|
||||
10. [11]Nelson B Bolyard <nelson@bolyard.me> update and complete
|
||||
broadcast and crypto features in sntp
|
||||
11. [12]Jean-Francois Boudreault
|
||||
<Jean-Francois.Boudreault@viagenie.qc.ca> IPv6 support
|
||||
12. [13]Reg Clemens <reg@dwf.com> Oncore driver (Current maintainer)
|
||||
13. [14]Steve Clift <clift@ml.csiro.au> OMEGA clock driver
|
||||
14. [15]Casey Crellin <casey@csc.co.za> vxWorks (Tornado) port and
|
||||
help with target configuration
|
||||
13. [14]Sven Dietrich <sven_dietrich@trimble.com> Palisade reference
|
||||
15. [16]Sven Dietrich <sven_dietrich@trimble.com> Palisade reference
|
||||
clock driver, NT adj. residuals, integrated Greg's Winnt port.
|
||||
14. [15]John A. Dundas III <dundas@salt.jpl.nasa.gov> Apple A/UX port
|
||||
15. [16]Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de> Linux
|
||||
16. [17]John A. Dundas III <dundas@salt.jpl.nasa.gov> Apple A/UX port
|
||||
17. [18]Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de> Linux
|
||||
port
|
||||
16. [17]Dennis Ferguson <dennis@mrbill.canet.ca> foundation code for
|
||||
18. [19]Dennis Ferguson <dennis@mrbill.canet.ca> foundation code for
|
||||
NTP Version 2 as specified in RFC-1119
|
||||
17. [18]John Hay <jhay@@icomtek.csir.co.za> IPv6 support and testing
|
||||
18. [19]Glenn Hollinger <glenn@herald.usask.ca> GOES clock driver
|
||||
19. [20]Mike Iglesias <iglesias@uci.edu> DEC Alpha port
|
||||
20. [21]Jim Jagielski <jim@jagubox.gsfc.nasa.gov> A/UX port
|
||||
21. [22]Jeff Johnson <jbj@chatham.usdesign.com> massive prototyping
|
||||
19. [20]John Hay <jhay@icomtek.csir.co.za> IPv6 support and testing
|
||||
20. [21]Dave Hart <davehart@davehart.com> General maintenance, Windows
|
||||
port interpolation rewrite
|
||||
21. [22]Claas Hilbrecht <neoclock4x@linum.com> NeoClock4X clock driver
|
||||
22. [23]Glenn Hollinger <glenn@herald.usask.ca> GOES clock driver
|
||||
23. [24]Mike Iglesias <iglesias@uci.edu> DEC Alpha port
|
||||
24. [25]Jim Jagielski <jim@jagubox.gsfc.nasa.gov> A/UX port
|
||||
25. [26]Jeff Johnson <jbj@chatham.usdesign.com> massive prototyping
|
||||
overhaul
|
||||
22. [23]Hans Lambermont <Hans.Lambermont@nl.origin-it.com> or
|
||||
[24]<H.Lambermont@chello.nl> ntpsweep
|
||||
23. [25]Poul-Henning Kamp <phk@FreeBSD.ORG> Oncore driver (Original
|
||||
26. [27]Hans Lambermont <Hans.Lambermont@nl.origin-it.com> or
|
||||
[28]<H.Lambermont@chello.nl> ntpsweep
|
||||
27. [29]Poul-Henning Kamp <phk@FreeBSD.ORG> Oncore driver (Original
|
||||
author)
|
||||
24. [26]Frank Kardel [27]<kardel (at) ntp (dot) org> PARSE <GENERIC>
|
||||
28. [30]Frank Kardel [31]<kardel (at) ntp (dot) org> PARSE <GENERIC>
|
||||
driver (>14 reference clocks), STREAMS modules for PARSE, support
|
||||
scripts, syslog cleanup, dynamic interface handling
|
||||
25. [28]William L. Jones <jones@hermes.chpc.utexas.edu> RS/6000 AIX
|
||||
29. [32]William L. Jones <jones@hermes.chpc.utexas.edu> RS/6000 AIX
|
||||
modifications, HPUX modifications
|
||||
26. [29]Dave Katz <dkatz@cisco.com> RS/6000 AIX port
|
||||
27. [30]Craig Leres <leres@ee.lbl.gov> 4.4BSD port, ppsclock, Magnavox
|
||||
30. [33]Dave Katz <dkatz@cisco.com> RS/6000 AIX port
|
||||
31. [34]Craig Leres <leres@ee.lbl.gov> 4.4BSD port, ppsclock, Magnavox
|
||||
GPS clock driver
|
||||
28. [31]George Lindholm <lindholm@ucs.ubc.ca> SunOS 5.1 port
|
||||
29. [32]Louis A. Mamakos <louie@ni.umd.edu> MD5-based authentication
|
||||
30. [33]Lars H. Mathiesen <thorinn@diku.dk> adaptation of foundation
|
||||
32. [35]George Lindholm <lindholm@ucs.ubc.ca> SunOS 5.1 port
|
||||
33. [36]Louis A. Mamakos <louie@ni.umd.edu> MD5-based authentication
|
||||
34. [37]Lars H. Mathiesen <thorinn@diku.dk> adaptation of foundation
|
||||
code for Version 3 as specified in RFC-1305
|
||||
31. [34]Danny Mayer <mayer@ntp.org>Network I/O, Windows Port, Code
|
||||
35. [38]Danny Mayer <mayer@ntp.org>Network I/O, Windows Port, Code
|
||||
Maintenance
|
||||
32. [35]David L. Mills <mills@udel.edu> Version 4 foundation: clock
|
||||
36. [39]David L. Mills <mills@udel.edu> Version 4 foundation: clock
|
||||
discipline, authentication, precision kernel; clock drivers:
|
||||
Spectracom, Austron, Arbiter, Heath, ATOM, ACTS, KSI/Odetics;
|
||||
audio clock drivers: CHU, WWV/H, IRIG
|
||||
33. [36]Wolfgang Moeller <moeller@gwdgv1.dnet.gwdg.de> VMS port
|
||||
34. [37]Jeffrey Mogul <mogul@pa.dec.com> ntptrace utility
|
||||
35. [38]Tom Moore <tmoore@fievel.daytonoh.ncr.com> i386 svr4 port
|
||||
36. [39]Kamal A Mostafa <kamal@whence.com> SCO OpenServer port
|
||||
37. [40]Derek Mulcahy <derek@toybox.demon.co.uk> and [41]Damon
|
||||
37. [40]Wolfgang Moeller <moeller@gwdgv1.dnet.gwdg.de> VMS port
|
||||
38. [41]Jeffrey Mogul <mogul@pa.dec.com> ntptrace utility
|
||||
39. [42]Tom Moore <tmoore@fievel.daytonoh.ncr.com> i386 svr4 port
|
||||
40. [43]Kamal A Mostafa <kamal@whence.com> SCO OpenServer port
|
||||
41. [44]Derek Mulcahy <derek@toybox.demon.co.uk> and [45]Damon
|
||||
Hart-Davis <d@hd.org> ARCRON MSF clock driver
|
||||
38. [42]Rainer Pruy <Rainer.Pruy@informatik.uni-erlangen.de>
|
||||
42. [46]Rob Neal <neal@ntp.org> Bancomm refclock and config/parse code
|
||||
maintenance
|
||||
43. [47]Rainer Pruy <Rainer.Pruy@informatik.uni-erlangen.de>
|
||||
monitoring/trap scripts, statistics file handling
|
||||
39. [43]Dirce Richards <dirce@zk3.dec.com> Digital UNIX V4.0 port
|
||||
40. [44]Wilfredo Sánchez <wsanchez@apple.com> added support for
|
||||
44. [48]Dirce Richards <dirce@zk3.dec.com> Digital UNIX V4.0 port
|
||||
45. [49]Wilfredo Sánchez <wsanchez@apple.com> added support for
|
||||
NetInfo
|
||||
41. [45]Nick Sayer <mrapple@quack.kfu.com> SunOS streams modules
|
||||
42. [46]Jack Sasportas <jack@innovativeinternet.com> Saved a Lot of
|
||||
46. [50]Nick Sayer <mrapple@quack.kfu.com> SunOS streams modules
|
||||
47. [51]Jack Sasportas <jack@innovativeinternet.com> Saved a Lot of
|
||||
space on the stuff in the html/pic/ subdirectory
|
||||
43. [47]Ray Schnitzler <schnitz@unipress.com> Unixware1 port
|
||||
44. [48]Michael Shields <shields@tembel.org> USNO clock driver
|
||||
45. [49]Jeff Steinman <jss@pebbles.jpl.nasa.gov> Datum PTS clock
|
||||
48. [52]Ray Schnitzler <schnitz@unipress.com> Unixware1 port
|
||||
49. [53]Michael Shields <shields@tembel.org> USNO clock driver
|
||||
50. [54]Jeff Steinman <jss@pebbles.jpl.nasa.gov> Datum PTS clock
|
||||
driver
|
||||
46. [50]Harlan Stenn <harlan@pfcs.com> GNU automake/autoconfigure
|
||||
51. [55]Harlan Stenn <harlan@pfcs.com> GNU automake/autoconfigure
|
||||
makeover, various other bits (see the ChangeLog)
|
||||
47. [51]Kenneth Stone <ken@sdd.hp.com> HP-UX port
|
||||
48. [52]Ajit Thyagarajan <ajit@ee.udel.edu>IP multicast/anycast
|
||||
52. [56]Kenneth Stone <ken@sdd.hp.com> HP-UX port
|
||||
53. [57]Ajit Thyagarajan <ajit@ee.udel.edu>IP multicast/anycast
|
||||
support
|
||||
49. [53]Tomoaki TSURUOKA <tsuruoka@nc.fukuoka-u.ac.jp>TRAK clock
|
||||
54. [58]Tomoaki TSURUOKA <tsuruoka@nc.fukuoka-u.ac.jp>TRAK clock
|
||||
driver
|
||||
50. [54]Paul A Vixie <vixie@vix.com> TrueTime GPS driver, generic
|
||||
55. [59]Paul A Vixie <vixie@vix.com> TrueTime GPS driver, generic
|
||||
TrueTime clock driver
|
||||
51. [55]Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> corrected and
|
||||
56. [60]Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de> corrected and
|
||||
validated HTML documents according to the HTML DTD
|
||||
_________________________________________________________________
|
||||
|
||||
References
|
||||
|
||||
1. mailto:%20mark_andrews@isc.org
|
||||
2. mailto:%20altmeier@atlsoft.de
|
||||
3. mailto:%20vbais@mailman1.intel.co
|
||||
4. mailto:%20kirkwood@striderfm.intel.com
|
||||
5. mailto:%20michael.barone@lmco.com
|
||||
6. mailto:%20Jean-Francois.Boudreault@viagenie.qc.ca
|
||||
1. mailto:%20takao_abe@xurb.jp
|
||||
2. mailto:%20mark_andrews@isc.org
|
||||
3. mailto:%20altmeier@atlsoft.de
|
||||
4. mailto:%20vbais@mailman1.intel.co
|
||||
5. mailto:%20kirkwood@striderfm.intel.com
|
||||
6. mailto:%20michael.barone@lmco.com
|
||||
7. mailto:%20karl@owl.HQ.ileaf.com
|
||||
8. mailto:%20greg.brackley@bigfoot.com
|
||||
9. mailto:%20Marc.Brett@westgeo.com
|
||||
10. mailto:%20Piete.Brooks@cl.cam.ac.uk
|
||||
11. mailto:%20reg@dwf.com
|
||||
12. mailto:%20clift@ml.csiro.au
|
||||
13. mailto:casey@csc.co.za
|
||||
14. mailto:%20Sven_Dietrich@trimble.COM
|
||||
15. mailto:%20dundas@salt.jpl.nasa.gov
|
||||
16. mailto:%20duwe@immd4.informatik.uni-erlangen.de
|
||||
17. mailto:%20dennis@mrbill.canet.ca
|
||||
18. mailto:%20jhay@icomtek.csir.co.za
|
||||
19. mailto:%20glenn@herald.usask.ca
|
||||
20. mailto:%20iglesias@uci.edu
|
||||
21. mailto:%20jagubox.gsfc.nasa.gov
|
||||
22. mailto:%20jbj@chatham.usdesign.com
|
||||
23. mailto:Hans.Lambermont@nl.origin-it.com
|
||||
24. mailto:H.Lambermont@chello.nl
|
||||
25. mailto:%20phk@FreeBSD.ORG
|
||||
26. http://www4.informatik.uni-erlangen.de/%7ekardel
|
||||
27. mailto:%20kardel(at)ntp(dot)org
|
||||
28. mailto:%20jones@hermes.chpc.utexas.edu
|
||||
29. mailto:%20dkatz@cisco.com
|
||||
30. mailto:%20leres@ee.lbl.gov
|
||||
31. mailto:%20lindholm@ucs.ubc.ca
|
||||
32. mailto:%20louie@ni.umd.edu
|
||||
33. mailto:%20thorinn@diku.dk
|
||||
34. mailto:%20mayer@ntp.org
|
||||
35. mailto:%20mills@udel.edu
|
||||
36. mailto:%20moeller@gwdgv1.dnet.gwdg.de
|
||||
37. mailto:%20mogul@pa.dec.com
|
||||
38. mailto:%20tmoore@fievel.daytonoh.ncr.com
|
||||
39. mailto:%20kamal@whence.com
|
||||
40. mailto:%20derek@toybox.demon.co.uk
|
||||
41. mailto:%20d@hd.org
|
||||
42. mailto:%20Rainer.Pruy@informatik.uni-erlangen.de
|
||||
43. mailto:%20dirce@zk3.dec.com
|
||||
44. mailto:%20wsanchez@apple.com
|
||||
45. mailto:%20mrapple@quack.kfu.com
|
||||
46. mailto:%20jack@innovativeinternet.com
|
||||
47. mailto:%20schnitz@unipress.com
|
||||
48. mailto:%20shields@tembel.org
|
||||
49. mailto:%20pebbles.jpl.nasa.gov
|
||||
50. mailto:%20harlan@pfcs.com
|
||||
51. mailto:%20ken@sdd.hp.com
|
||||
52. mailto:%20ajit@ee.udel.edu
|
||||
53. mailto:%20tsuruoka@nc.fukuoka-u.ac.jp
|
||||
54. mailto:%20vixie@vix.com
|
||||
55. mailto:%20Ulrich.Windl@rz.uni-regensburg.de
|
||||
11. mailto:%20nelson@bolyard.me
|
||||
12. mailto:%20Jean-Francois.Boudreault@viagenie.qc.ca
|
||||
13. mailto:%20reg@dwf.com
|
||||
14. mailto:%20clift@ml.csiro.au
|
||||
15. mailto:casey@csc.co.za
|
||||
16. mailto:%20Sven_Dietrich@trimble.COM
|
||||
17. mailto:%20dundas@salt.jpl.nasa.gov
|
||||
18. mailto:%20duwe@immd4.informatik.uni-erlangen.de
|
||||
19. mailto:%20dennis@mrbill.canet.ca
|
||||
20. mailto:%20jhay@icomtek.csir.co.za
|
||||
21. mailto:%20davehart@davehart.com
|
||||
22. mailto:%20neoclock4x@linum.com
|
||||
23. mailto:%20glenn@herald.usask.ca
|
||||
24. mailto:%20iglesias@uci.edu
|
||||
25. mailto:%20jagubox.gsfc.nasa.gov
|
||||
26. mailto:%20jbj@chatham.usdesign.com
|
||||
27. mailto:Hans.Lambermont@nl.origin-it.com
|
||||
28. mailto:H.Lambermont@chello.nl
|
||||
29. mailto:%20phk@FreeBSD.ORG
|
||||
30. http://www4.informatik.uni-erlangen.de/%7ekardel
|
||||
31. mailto:%20kardel(at)ntp(dot)org
|
||||
32. mailto:%20jones@hermes.chpc.utexas.edu
|
||||
33. mailto:%20dkatz@cisco.com
|
||||
34. mailto:%20leres@ee.lbl.gov
|
||||
35. mailto:%20lindholm@ucs.ubc.ca
|
||||
36. mailto:%20louie@ni.umd.edu
|
||||
37. mailto:%20thorinn@diku.dk
|
||||
38. mailto:%20mayer@ntp.org
|
||||
39. mailto:%20mills@udel.edu
|
||||
40. mailto:%20moeller@gwdgv1.dnet.gwdg.de
|
||||
41. mailto:%20mogul@pa.dec.com
|
||||
42. mailto:%20tmoore@fievel.daytonoh.ncr.com
|
||||
43. mailto:%20kamal@whence.com
|
||||
44. mailto:%20derek@toybox.demon.co.uk
|
||||
45. mailto:%20d@hd.org
|
||||
46. mailto:%20neal@ntp.org
|
||||
47. mailto:%20Rainer.Pruy@informatik.uni-erlangen.de
|
||||
48. mailto:%20dirce@zk3.dec.com
|
||||
49. mailto:%20wsanchez@apple.com
|
||||
50. mailto:%20mrapple@quack.kfu.com
|
||||
51. mailto:%20jack@innovativeinternet.com
|
||||
52. mailto:%20schnitz@unipress.com
|
||||
53. mailto:%20shields@tembel.org
|
||||
54. mailto:%20pebbles.jpl.nasa.gov
|
||||
55. mailto:%20harlan@pfcs.com
|
||||
56. mailto:%20ken@sdd.hp.com
|
||||
57. mailto:%20ajit@ee.udel.edu
|
||||
58. mailto:%20tsuruoka@nc.fukuoka-u.ac.jp
|
||||
59. mailto:%20vixie@vix.com
|
||||
60. mailto:%20Ulrich.Windl@rz.uni-regensburg.de
|
||||
|
146
Makefile.am
146
Makefile.am
@ -1,105 +1,119 @@
|
||||
#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
|
||||
AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.8
|
||||
ACLOCAL_AMFLAGS= -I m4 -I libopts/m4
|
||||
## LIBOPTS_CHECK_NOBUILD works with Automake 1.10 now
|
||||
AUTOMAKE_OPTIONS = foreign 1.10
|
||||
ACLOCAL_AMFLAGS = -I m4 -I sntp/libopts/m4
|
||||
|
||||
NULL=
|
||||
NULL =
|
||||
|
||||
SUBDIRS=
|
||||
if NEED_LIBOPTS
|
||||
SUBDIRS+= libopts
|
||||
endif
|
||||
SUBDIRS+= \
|
||||
SUBDIRS =
|
||||
SUBDIRS += \
|
||||
scripts \
|
||||
include \
|
||||
ElectricFence \
|
||||
@ARLIB_DIR@ \
|
||||
libntp \
|
||||
sntp \
|
||||
libparse \
|
||||
ntpd \
|
||||
ntpdate \
|
||||
ntpdc \
|
||||
ntpq \
|
||||
ntpsnmpd \
|
||||
parseutil \
|
||||
adjtimed \
|
||||
clockstuff \
|
||||
kernel \
|
||||
sntp \
|
||||
util \
|
||||
$(NULL)
|
||||
|
||||
DIST_SUBDIRS= \
|
||||
DIST_SUBDIRS = \
|
||||
scripts \
|
||||
include \
|
||||
ElectricFence \
|
||||
arlib \
|
||||
libntp \
|
||||
libopts \
|
||||
libparse \
|
||||
sntp \
|
||||
ntpd \
|
||||
ntpdate \
|
||||
ntpdc \
|
||||
ntpq \
|
||||
ntpsnmpd \
|
||||
parseutil \
|
||||
adjtimed \
|
||||
clockstuff \
|
||||
kernel \
|
||||
sntp \
|
||||
util \
|
||||
$(NULL)
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS= --with-arlib --enable-local-libopts
|
||||
DISTCHECK_CONFIGURE_FLAGS = -C
|
||||
|
||||
EXTRA_DIST = \
|
||||
COPYRIGHT \
|
||||
ChangeLog \
|
||||
CommitLog \
|
||||
CommitLog-4.1.0 \
|
||||
NEWS \
|
||||
NOTES.y2kfixes \
|
||||
README.bk \
|
||||
README.hackers \
|
||||
README.patches \
|
||||
README.refclocks \
|
||||
README.versions \
|
||||
TODO \
|
||||
WHERE-TO-START \
|
||||
bootstrap \
|
||||
build \
|
||||
config.guess \
|
||||
config.h.in \
|
||||
config.sub \
|
||||
dot.emacs \
|
||||
excludes \
|
||||
flock-build \
|
||||
install-sh \
|
||||
packageinfo.sh \
|
||||
readme.y2kfixes \
|
||||
EXTRA_DIST = \
|
||||
$(srcdir)/COPYRIGHT \
|
||||
ChangeLog \
|
||||
CommitLog \
|
||||
CommitLog-4.1.0 \
|
||||
NEWS \
|
||||
NOTES.y2kfixes \
|
||||
README.bk \
|
||||
README.hackers \
|
||||
README.patches \
|
||||
README.refclocks \
|
||||
README.versions \
|
||||
TODO \
|
||||
WHERE-TO-START \
|
||||
bootstrap \
|
||||
build \
|
||||
config.guess \
|
||||
config.h.in \
|
||||
config.sub \
|
||||
dot.emacs \
|
||||
excludes \
|
||||
flock-build \
|
||||
install-sh \
|
||||
packageinfo.sh \
|
||||
readme.y2kfixes \
|
||||
results.y2kfixes \
|
||||
\
|
||||
conf \
|
||||
html \
|
||||
libisc \
|
||||
ports \
|
||||
conf \
|
||||
html \
|
||||
lib/isc \
|
||||
ports \
|
||||
\
|
||||
bincheck.mf \
|
||||
version \
|
||||
version.m4 \
|
||||
bincheck.mf \
|
||||
depsver.mf \
|
||||
deps-ver \
|
||||
$(srcdir)/version \
|
||||
version.m4 \
|
||||
\
|
||||
$(NULL)
|
||||
|
||||
CLEANFILES =
|
||||
DISTCLEANFILES = .gcc-warning
|
||||
|
||||
#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.ac
|
||||
ETAGS_ARGS = Makefile.am configure.ac
|
||||
|
||||
# HMS: make ports be the last directory...
|
||||
# DIST_HOOK_DIRS = conf html scripts ports
|
||||
|
||||
# HMS: Keep .gcc-warning first, as that way it gets printed first.
|
||||
BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/version.m4 $(srcdir)/include/version.def
|
||||
BUILT_SOURCES = \
|
||||
.gcc-warning \
|
||||
libtool \
|
||||
$(srcdir)/COPYRIGHT \
|
||||
$(srcdir)/version \
|
||||
$(srcdir)/version.m4 \
|
||||
$(srcdir)/include/version.def \
|
||||
$(srcdir)/include/version.texi \
|
||||
$(srcdir)/.checkChangeLog \
|
||||
$(NULL)
|
||||
|
||||
$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
|
||||
( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
|
||||
{ echo "This file is automatically generated from html/copyright.html" ; \
|
||||
lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
|
||||
&& mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
|
||||
|
||||
COPYRIGHT-please: $(srcdir)/COPYRIGHT
|
||||
@: do-nothing action to prevent default \
|
||||
This target is needed by sntp/Makefile.am on decrepit \
|
||||
FreeBSD 6.x make which fails with "make COPYRIGHT" \
|
||||
configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
|
||||
Rather than determine our $(srcdir) from sntp/Makefile.am \
|
||||
COPYRIGHT-please serves as a fixed target.
|
||||
|
||||
# HMS: The next bit is still suboptimal. If bk is present but this NTP
|
||||
# repo is not a bk repo, we'll get an error message from the prs command.
|
||||
@ -109,24 +123,31 @@ $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
|
||||
$(srcdir)/version: FRC.version
|
||||
-(bk version) >/dev/null 2>&1 && \
|
||||
cd $(srcdir) && \
|
||||
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
|
||||
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
|
||||
y=`cat version 2>/dev/null` || true && \
|
||||
case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
|
||||
|
||||
$(srcdir)/version.m4: $(srcdir)/packageinfo.sh
|
||||
cd $(srcdir) && \
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver version.m4
|
||||
|
||||
$(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
|
||||
cd $(srcdir) && \
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver include/version.def
|
||||
|
||||
$(srcdir)/include/version.texi: $(srcdir)/packageinfo.sh
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver include/version.texi
|
||||
|
||||
$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/checkChangeLog
|
||||
cd $(srcdir) && \
|
||||
./scripts/checkChangeLog
|
||||
|
||||
libtool: $(LIBTOOL_DEPS)
|
||||
./config.status --recheck
|
||||
|
||||
dist-hook:
|
||||
@find $(distdir) -type d -name CVS -print | xargs rm -rf
|
||||
@find $(distdir) -type d -name SCCS -print | xargs rm -rf
|
||||
@chmod u+w $(distdir)/ports/winnt
|
||||
@for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
|
||||
do chmod u+w $$i ; unix2dos $$i $$i; done
|
||||
|
||||
.gcc-warning:
|
||||
@echo "Compiling with GCC now generates lots of new warnings."
|
||||
@ -142,7 +163,7 @@ dist-hook:
|
||||
|
||||
CommitLog: FRC.CommitLog
|
||||
cd $(srcdir) \
|
||||
&& /bin/test -e CommitLog \
|
||||
&& $(PATH_TEST) -e CommitLog \
|
||||
-a SCCS/s.ChangeSet -ot CommitLog \
|
||||
|| scripts/genCommitLog
|
||||
|
||||
@ -172,6 +193,7 @@ BHOST=`(hostname || uname -n)`
|
||||
fi
|
||||
|
||||
FRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
|
||||
@: do-nothing action prevents any default
|
||||
|
||||
# HMS: what was I trying to do with this?
|
||||
#dot.emacs: FRC.distwarn
|
||||
|
200
Makefile.in
200
Makefile.in
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
@ -33,16 +33,22 @@ PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
@NEED_LIBOPTS_TRUE@am__append_1 = libopts
|
||||
subdir = .
|
||||
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in $(srcdir)/config.h.in \
|
||||
$(top_srcdir)/configure ChangeLog INSTALL NEWS TODO compile \
|
||||
config.guess config.sub depcomp install-sh ltmain.sh missing
|
||||
config.guess config.sub depcomp install-sh ltmain.sh missing \
|
||||
ylwrap
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 \
|
||||
$(top_srcdir)/m4/hs_ulong_const.m4 \
|
||||
am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/ntp_cacheversion.m4 \
|
||||
$(top_srcdir)/m4/ntp_dir_sep.m4 \
|
||||
$(top_srcdir)/m4/ntp_lineeditlibs.m4 \
|
||||
$(top_srcdir)/m4/ntp_openssl.m4 \
|
||||
$(top_srcdir)/m4/ntp_vpathhack.m4 \
|
||||
$(top_srcdir)/m4/os_cflags.m4 $(top_srcdir)/version.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
@ -108,7 +114,6 @@ distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
ARLIB_DIR = @ARLIB_DIR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -125,14 +130,18 @@ CYGPATH_W = @CYGPATH_W@
|
||||
DCFD = @DCFD@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EDITLINE_LIBS = @EDITLINE_LIBS@
|
||||
EF_LIBS = @EF_LIBS@
|
||||
EF_PROGS = @EF_PROGS@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HAVE_INLINE = @HAVE_INLINE@
|
||||
INSTALL = @INSTALL@
|
||||
@ -141,6 +150,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LCRYPTO = @LCRYPTO@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
|
||||
@ -149,6 +159,7 @@ LIBOPTS_LDADD = @LIBOPTS_LDADD@
|
||||
LIBPARSE = @LIBPARSE@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LSCF = @LSCF@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
@ -160,15 +171,22 @@ MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
|
||||
MAKE_LIBPARSE = @MAKE_LIBPARSE@
|
||||
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
|
||||
MAKE_NTPDSIM = @MAKE_NTPDSIM@
|
||||
MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
|
||||
MAKE_NTPTIME = @MAKE_NTPTIME@
|
||||
MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
|
||||
MAKE_TICKADJ = @MAKE_TICKADJ@
|
||||
MAKE_TIMETRIM = @MAKE_TIMETRIM@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OPENSSL = @OPENSSL@
|
||||
OPENSSL_INC = @OPENSSL_INC@
|
||||
OPENSSL_LIB = @OPENSSL_LIB@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
@ -176,23 +194,32 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
|
||||
PATH_PERL = @PATH_PERL@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PATH_SH = @PATH_SH@
|
||||
PATH_TEST = @PATH_TEST@
|
||||
POSIX_SHELL = @POSIX_SHELL@
|
||||
PROPDELAY = @PROPDELAY@
|
||||
RANLIB = @RANLIB@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SNMP_CFLAGS = @SNMP_CFLAGS@
|
||||
SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
|
||||
SNMP_LIBS = @SNMP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TESTDCF = @TESTDCF@
|
||||
U = @U@
|
||||
VERSION = @VERSION@
|
||||
YACC = @YACC@
|
||||
YFLAGS = @YFLAGS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
@ -239,83 +266,88 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
#AUTOMAKE_OPTIONS = util/ansi2knr foreign dist-tarZ no-dependencies
|
||||
AUTOMAKE_OPTIONS = util/ansi2knr foreign 1.8
|
||||
ACLOCAL_AMFLAGS = -I m4 -I libopts/m4
|
||||
AUTOMAKE_OPTIONS = foreign 1.10
|
||||
ACLOCAL_AMFLAGS = -I m4 -I sntp/libopts/m4
|
||||
NULL =
|
||||
SUBDIRS = $(am__append_1) scripts include ElectricFence @ARLIB_DIR@ \
|
||||
libntp libparse ntpd ntpdate ntpdc ntpq parseutil adjtimed \
|
||||
clockstuff kernel sntp util $(NULL)
|
||||
SUBDIRS = scripts include ElectricFence libntp sntp libparse ntpd \
|
||||
ntpdate ntpdc ntpq ntpsnmpd parseutil adjtimed clockstuff \
|
||||
kernel util $(NULL)
|
||||
DIST_SUBDIRS = \
|
||||
scripts \
|
||||
include \
|
||||
ElectricFence \
|
||||
arlib \
|
||||
libntp \
|
||||
libopts \
|
||||
libparse \
|
||||
sntp \
|
||||
ntpd \
|
||||
ntpdate \
|
||||
ntpdc \
|
||||
ntpq \
|
||||
ntpsnmpd \
|
||||
parseutil \
|
||||
adjtimed \
|
||||
clockstuff \
|
||||
kernel \
|
||||
sntp \
|
||||
util \
|
||||
$(NULL)
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS = --with-arlib --enable-local-libopts
|
||||
DISTCHECK_CONFIGURE_FLAGS = -C
|
||||
EXTRA_DIST = \
|
||||
COPYRIGHT \
|
||||
ChangeLog \
|
||||
CommitLog \
|
||||
CommitLog-4.1.0 \
|
||||
NEWS \
|
||||
NOTES.y2kfixes \
|
||||
README.bk \
|
||||
README.hackers \
|
||||
README.patches \
|
||||
README.refclocks \
|
||||
README.versions \
|
||||
TODO \
|
||||
WHERE-TO-START \
|
||||
bootstrap \
|
||||
build \
|
||||
config.guess \
|
||||
config.h.in \
|
||||
config.sub \
|
||||
dot.emacs \
|
||||
excludes \
|
||||
flock-build \
|
||||
install-sh \
|
||||
packageinfo.sh \
|
||||
readme.y2kfixes \
|
||||
$(srcdir)/COPYRIGHT \
|
||||
ChangeLog \
|
||||
CommitLog \
|
||||
CommitLog-4.1.0 \
|
||||
NEWS \
|
||||
NOTES.y2kfixes \
|
||||
README.bk \
|
||||
README.hackers \
|
||||
README.patches \
|
||||
README.refclocks \
|
||||
README.versions \
|
||||
TODO \
|
||||
WHERE-TO-START \
|
||||
bootstrap \
|
||||
build \
|
||||
config.guess \
|
||||
config.h.in \
|
||||
config.sub \
|
||||
dot.emacs \
|
||||
excludes \
|
||||
flock-build \
|
||||
install-sh \
|
||||
packageinfo.sh \
|
||||
readme.y2kfixes \
|
||||
results.y2kfixes \
|
||||
\
|
||||
conf \
|
||||
html \
|
||||
libisc \
|
||||
ports \
|
||||
conf \
|
||||
html \
|
||||
lib/isc \
|
||||
ports \
|
||||
\
|
||||
bincheck.mf \
|
||||
version \
|
||||
version.m4 \
|
||||
bincheck.mf \
|
||||
depsver.mf \
|
||||
deps-ver \
|
||||
$(srcdir)/version \
|
||||
version.m4 \
|
||||
\
|
||||
$(NULL)
|
||||
|
||||
CLEANFILES =
|
||||
DISTCLEANFILES = .gcc-warning
|
||||
|
||||
#ETAGS_ARGS = $(srcdir)/Makefile.am $(srcdir)/configure.ac
|
||||
ETAGS_ARGS = Makefile.am configure.ac
|
||||
|
||||
# HMS: make ports be the last directory...
|
||||
# DIST_HOOK_DIRS = conf html scripts ports
|
||||
|
||||
# HMS: Keep .gcc-warning first, as that way it gets printed first.
|
||||
BUILT_SOURCES = .gcc-warning $(srcdir)/COPYRIGHT $(srcdir)/version $(srcdir)/version.m4 $(srcdir)/include/version.def
|
||||
BUILT_SOURCES = \
|
||||
.gcc-warning \
|
||||
libtool \
|
||||
$(srcdir)/COPYRIGHT \
|
||||
$(srcdir)/version \
|
||||
$(srcdir)/version.m4 \
|
||||
$(srcdir)/include/version.def \
|
||||
$(srcdir)/include/version.texi \
|
||||
$(srcdir)/.checkChangeLog \
|
||||
$(NULL)
|
||||
|
||||
|
||||
# HMS: The following seems to be a work-in-progress...
|
||||
CVO = `$(srcdir)/config.guess`
|
||||
@ -392,7 +424,7 @@ distclean-libtool:
|
||||
# (which will cause the Makefiles to be regenerated when you run `make');
|
||||
# (2) otherwise, pass the desired values on the `make' command line.
|
||||
$(RECURSIVE_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
@fail= failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
@ -417,7 +449,7 @@ $(RECURSIVE_TARGETS):
|
||||
fi; test -z "$$fail"
|
||||
|
||||
$(RECURSIVE_CLEAN_TARGETS):
|
||||
@failcom='exit 1'; \
|
||||
@fail= failcom='exit 1'; \
|
||||
for f in x $$MAKEFLAGS; do \
|
||||
case $$f in \
|
||||
*=* | --[!k]*);; \
|
||||
@ -584,7 +616,8 @@ distdir: $(DISTFILES)
|
||||
top_distdir="$(top_distdir)" distdir="$(distdir)" \
|
||||
dist-hook
|
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
|| find "$(distdir)" -type d ! -perm -755 \
|
||||
-exec chmod u+rwx,go+rx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
@ -628,17 +661,17 @@ dist dist-all: distdir
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lzma*) \
|
||||
unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
|
||||
lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
@ -721,6 +754,7 @@ install-strip:
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
@ -823,7 +857,17 @@ uninstall-am:
|
||||
|
||||
|
||||
$(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
|
||||
( echo "This file is automatically generated from html/copyright.html" ; lynx -dump $(srcdir)/html/copyright.html ) > $(srcdir)/COPYRIGHT.new && mv $(srcdir)/COPYRIGHT.new $(srcdir)/COPYRIGHT
|
||||
{ echo "This file is automatically generated from html/copyright.html" ; \
|
||||
lynx -dump $(srcdir)/html/copyright.html ;} > COPYRIGHT.new \
|
||||
&& mv -f COPYRIGHT.new $(srcdir)/COPYRIGHT
|
||||
|
||||
COPYRIGHT-please: $(srcdir)/COPYRIGHT
|
||||
@: do-nothing action to prevent default \
|
||||
This target is needed by sntp/Makefile.am on decrepit \
|
||||
FreeBSD 6.x make which fails with "make COPYRIGHT" \
|
||||
configured in $(srcdir) but "make ./COPYRIGHT" succeeds. \
|
||||
Rather than determine our $(srcdir) from sntp/Makefile.am \
|
||||
COPYRIGHT-please serves as a fixed target.
|
||||
|
||||
# HMS: The next bit is still suboptimal. If bk is present but this NTP
|
||||
# repo is not a bk repo, we'll get an error message from the prs command.
|
||||
@ -833,24 +877,31 @@ $(srcdir)/COPYRIGHT: $(srcdir)/html/copyright.html
|
||||
$(srcdir)/version: FRC.version
|
||||
-(bk version) >/dev/null 2>&1 && \
|
||||
cd $(srcdir) && \
|
||||
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
|
||||
x=`bk -R prs -hr+ -nd:I: ChangeSet` && \
|
||||
y=`cat version 2>/dev/null` || true && \
|
||||
case "$$x" in ''|$$y) ;; *) echo $$x > version ;; esac
|
||||
|
||||
$(srcdir)/version.m4: $(srcdir)/packageinfo.sh
|
||||
cd $(srcdir) && \
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver version.m4
|
||||
|
||||
$(srcdir)/include/version.def: $(srcdir)/packageinfo.sh
|
||||
cd $(srcdir) && \
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver include/version.def
|
||||
|
||||
$(srcdir)/include/version.texi: $(srcdir)/packageinfo.sh
|
||||
TEMPDIR=`pwd` && export TEMPDIR && cd $(srcdir) && \
|
||||
./scripts/genver include/version.texi
|
||||
|
||||
$(srcdir)/.checkChangeLog: $(srcdir)/ChangeLog $(srcdir)/scripts/checkChangeLog
|
||||
cd $(srcdir) && \
|
||||
./scripts/checkChangeLog
|
||||
|
||||
libtool: $(LIBTOOL_DEPS)
|
||||
./config.status --recheck
|
||||
|
||||
dist-hook:
|
||||
@find $(distdir) -type d -name CVS -print | xargs rm -rf
|
||||
@find $(distdir) -type d -name SCCS -print | xargs rm -rf
|
||||
@chmod u+w $(distdir)/ports/winnt
|
||||
@for i in `find $(distdir)/ports/winnt -type f -name '*.ds*' -print`; \
|
||||
do chmod u+w $$i ; unix2dos $$i $$i; done
|
||||
|
||||
.gcc-warning:
|
||||
@echo "Compiling with GCC now generates lots of new warnings."
|
||||
@ -866,7 +917,7 @@ dist-hook:
|
||||
|
||||
CommitLog: FRC.CommitLog
|
||||
cd $(srcdir) \
|
||||
&& /bin/test -e CommitLog \
|
||||
&& $(PATH_TEST) -e CommitLog \
|
||||
-a SCCS/s.ChangeSet -ot CommitLog \
|
||||
|| scripts/genCommitLog
|
||||
|
||||
@ -890,6 +941,7 @@ CommitLog: FRC.CommitLog
|
||||
fi
|
||||
|
||||
FRC.CommitLog FRC.distwarn FRC.checkcvo FRC.checkhost FRC.version:
|
||||
@: do-nothing action prevents any default
|
||||
|
||||
# HMS: what was I trying to do with this?
|
||||
#dot.emacs: FRC.distwarn
|
||||
|
241
NEWS
241
NEWS
@ -1,3 +1,236 @@
|
||||
---
|
||||
NTP 4.2.6p5 (Harlan Stenn <stenn@ntp.org>, 2011/12/24)
|
||||
|
||||
Focus: Bug fixes
|
||||
|
||||
Severity: Medium
|
||||
|
||||
This is a recommended upgrade.
|
||||
|
||||
This release updates sys_rootdisp and sys_jitter calculations to match the
|
||||
RFC specification, fixes a potential IPv6 address matching error for the
|
||||
"nic" and "interface" configuration directives, suppresses the creation of
|
||||
extraneous ephemeral associations for certain broadcastclient and
|
||||
multicastclient configurations, cleans up some ntpq display issues, and
|
||||
includes improvements to orphan mode, minor bugs fixes and code clean-ups.
|
||||
|
||||
New features / changes in this release:
|
||||
|
||||
ntpd
|
||||
|
||||
* Updated "nic" and "interface" IPv6 address handling to prevent
|
||||
mismatches with localhost [::1] and wildcard [::] which resulted from
|
||||
using the address/prefix format (e.g. fe80::/64)
|
||||
* Fix orphan mode stratum incorrectly counting to infinity
|
||||
* Orphan parent selection metric updated to includes missing ntohl()
|
||||
* Non-printable stratum 16 refid no longer sent to ntp
|
||||
* Duplicate ephemeral associations suppressed for broadcastclient and
|
||||
multicastclient without broadcastdelay
|
||||
* Exclude undetermined sys_refid from use in loopback TEST12
|
||||
* Exclude MODE_SERVER responses from KoD rate limiting
|
||||
* Include root delay in clock_update() sys_rootdisp calculations
|
||||
* get_systime() updated to exclude sys_residual offset (which only
|
||||
affected bits "below" sys_tick, the precision threshold)
|
||||
* sys.peer jitter weighting corrected in sys_jitter calculation
|
||||
|
||||
ntpq
|
||||
|
||||
* -n option extended to include the billboard "server" column
|
||||
* IPv6 addresses in the local column truncated to prevent overruns
|
||||
|
||||
---
|
||||
NTP 4.2.6p4 (Harlan Stenn <stenn@ntp.org>, 2011/09/22)
|
||||
|
||||
Focus: Bug fixes and portability improvements
|
||||
|
||||
Severity: Medium
|
||||
|
||||
This is a recommended upgrade.
|
||||
|
||||
This release includes build infrastructure updates, code
|
||||
clean-ups, minor bug fixes, fixes for a number of minor
|
||||
ref-clock issues, and documentation revisions.
|
||||
|
||||
Portability improvements affect AIX, HP-UX, Linux, OS X and 64-bit time_t.
|
||||
|
||||
New features / changes in this release:
|
||||
|
||||
Build system
|
||||
|
||||
* Fix checking for struct rtattr
|
||||
* Update config.guess and config.sub for AIX
|
||||
* Upgrade required version of autogen and libopts for building
|
||||
from our source code repository
|
||||
|
||||
ntpd
|
||||
|
||||
* Back-ported several fixes for Coverity warnings from ntp-dev
|
||||
* Fix a rare boundary condition in UNLINK_EXPR_SLIST()
|
||||
* Allow "logconfig =allall" configuration directive
|
||||
* Bind tentative IPv6 addresses on Linux
|
||||
* Correct WWVB/Spectracom driver to timestamp CR instead of LF
|
||||
* Improved tally bit handling to prevent incorrect ntpq peer status reports
|
||||
* Exclude the Undisciplined Local Clock and ACTS drivers from the initial
|
||||
candidate list unless they are designated a "prefer peer"
|
||||
* Prevent the consideration of Undisciplined Local Clock or ACTS drivers for
|
||||
selection during the 'tos orphanwait' period
|
||||
* Prefer an Orphan Mode Parent over the Undisciplined Local Clock or ACTS
|
||||
drivers
|
||||
* Improved support of the Parse Refclock trusttime flag in Meinberg mode
|
||||
* Back-port utility routines from ntp-dev: mprintf(), emalloc_zero()
|
||||
* Added the NTPD_TICKADJ_PPM environment variable for specifying baseline
|
||||
clock slew on Microsoft Windows
|
||||
* Code cleanup in libntpq
|
||||
|
||||
ntpdc
|
||||
|
||||
* Fix timerstats reporting
|
||||
|
||||
ntpdate
|
||||
|
||||
* Reduce time required to set clock
|
||||
* Allow a timeout greater than 2 seconds
|
||||
|
||||
sntp
|
||||
|
||||
* Backward incompatible command-line option change:
|
||||
-l/--filelog changed -l/--logfile (to be consistent with ntpd)
|
||||
|
||||
Documentation
|
||||
|
||||
* Update html2man. Fix some tags in the .html files
|
||||
* Distribute ntp-wait.html
|
||||
|
||||
---
|
||||
NTP 4.2.6p3 (Harlan Stenn <stenn@ntp.org>, 2011/01/03)
|
||||
|
||||
Focus: Bug fixes and portability improvements
|
||||
|
||||
Severity: Medium
|
||||
|
||||
This is a recommended upgrade.
|
||||
|
||||
This release includes build infrastructure updates, code
|
||||
clean-ups, minor bug fixes, fixes for a number of minor
|
||||
ref-clock issues, and documentation revisions.
|
||||
|
||||
Portability improvements in this release affect AIX, Atari FreeMiNT,
|
||||
FreeBSD4, Linux and Microsoft Windows.
|
||||
|
||||
New features / changes in this release:
|
||||
|
||||
Build system
|
||||
* Use lsb_release to get information about Linux distributions.
|
||||
* 'test' is in /usr/bin (instead of /bin) on some systems.
|
||||
* Basic sanity checks for the ChangeLog file.
|
||||
* Source certain build files with ./filename for systems without . in PATH.
|
||||
* IRIX portability fix.
|
||||
* Use a single copy of the "libopts" code.
|
||||
* autogen/libopts upgrade.
|
||||
* configure.ac m4 quoting cleanup.
|
||||
|
||||
ntpd
|
||||
* Do not bind to IN6_IFF_ANYCAST addresses.
|
||||
* Log the reason for exiting under Windows.
|
||||
* Multicast fixes for Windows.
|
||||
* Interpolation fixes for Windows.
|
||||
* IPv4 and IPv6 Multicast fixes.
|
||||
* Manycast solicitation fixes and general repairs.
|
||||
* JJY refclock cleanup.
|
||||
* NMEA refclock improvements.
|
||||
* Oncore debug message cleanup.
|
||||
* Palisade refclock now builds under Linux.
|
||||
* Give RAWDCF more baud rates.
|
||||
* Support Truetime Satellite clocks under Windows.
|
||||
* Support Arbiter 1093C Satellite clocks under Windows.
|
||||
* Make sure that the "filegen" configuration command defaults to "enable".
|
||||
* Range-check the status codes (plus other cleanup) in the RIPE-NCC driver.
|
||||
* Prohibit 'includefile' directive in remote configuration command.
|
||||
* Fix 'nic' interface bindings.
|
||||
* Fix the way we link with openssl if openssl is installed in the base
|
||||
system.
|
||||
|
||||
ntp-keygen
|
||||
* Fix -V coredump.
|
||||
* OpenSSL version display cleanup.
|
||||
|
||||
ntpdc
|
||||
* Many counters should be treated as unsigned.
|
||||
|
||||
ntpdate
|
||||
* Do not ignore replies with equal receive and transmit timestamps.
|
||||
|
||||
ntpq
|
||||
* libntpq warning cleanup.
|
||||
|
||||
ntpsnmpd
|
||||
* Correct SNMP type for "precision" and "resolution".
|
||||
* Update the MIB from the draft version to RFC-5907.
|
||||
|
||||
sntp
|
||||
* Display timezone offset when showing time for sntp in the local
|
||||
timezone.
|
||||
* Pay proper attention to RATE KoD packets.
|
||||
* Fix a miscalculation of the offset.
|
||||
* Properly parse empty lines in the key file.
|
||||
* Logging cleanup.
|
||||
* Use tv_usec correctly in set_time().
|
||||
* Documentation cleanup.
|
||||
|
||||
---
|
||||
NTP 4.2.6p2 (Harlan Stenn <stenn@ntp.org>, 2010/07/08)
|
||||
|
||||
Focus: Bug fixes and portability improvements
|
||||
|
||||
Severity: Medium
|
||||
|
||||
This is a recommended upgrade.
|
||||
|
||||
This release includes build infrastructure updates, code
|
||||
clean-ups, minor bug fixes, fixes for a number of minor
|
||||
ref-clock issues, improved KOD handling, OpenSSL related
|
||||
updates and documentation revisions.
|
||||
|
||||
Portability improvements in this release affect Irix, Linux,
|
||||
Mac OS, Microsoft Windows, OpenBSD and QNX6
|
||||
|
||||
New features / changes in this release:
|
||||
|
||||
ntpd
|
||||
* Range syntax for the trustedkey configuration directive
|
||||
* Unified IPv4 and IPv6 restrict lists
|
||||
|
||||
ntpdate
|
||||
* Rate limiting and KOD handling
|
||||
|
||||
ntpsnmpd
|
||||
* default connection to net-snmpd via a unix-domain socket
|
||||
* command-line 'socket name' option
|
||||
|
||||
ntpq / ntpdc
|
||||
* support for the "passwd ..." syntax
|
||||
* key-type specific password prompts
|
||||
|
||||
sntp
|
||||
* MD5 authentication of an ntpd
|
||||
* Broadcast and crypto
|
||||
* OpenSSL support
|
||||
|
||||
---
|
||||
NTP 4.2.6p1 (Harlan Stenn <stenn@ntp.org>, 2010/04/09)
|
||||
|
||||
Focus: Bug fixes, portability fixes, and documentation improvements
|
||||
|
||||
Severity: Medium
|
||||
|
||||
This is a recommended upgrade.
|
||||
|
||||
---
|
||||
NTP 4.2.6 (Harlan Stenn <stenn@ntp.org>, 2009/12/08)
|
||||
|
||||
Focus: enhancements and bug fixes.
|
||||
|
||||
---
|
||||
NTP 4.2.4p8 (Harlan Stenn <stenn@ntp.org>, 2009/12/08)
|
||||
|
||||
Focus: Security Fixes
|
||||
@ -31,6 +264,14 @@ This release fixes the following high-severity vulnerability:
|
||||
|
||||
THIS IS A STRONGLY RECOMMENDED UPGRADE.
|
||||
|
||||
---
|
||||
ntpd now syncs to refclocks right away.
|
||||
|
||||
Backward-Incompatible changes:
|
||||
|
||||
ntpd no longer accepts '-v name' or '-V name' to define internal variables.
|
||||
Use '--var name' or '--dvar name' instead. (Bug 817)
|
||||
|
||||
---
|
||||
NTP 4.2.4p7 (Harlan Stenn <stenn@ntp.org>, 2009/05/04)
|
||||
|
||||
|
@ -9,19 +9,6 @@ The file "dot.emacs" has the emacs C-mode indentation style that Dave likes.
|
||||
|
||||
---
|
||||
|
||||
NTP4 uses ANSI C. Some folks are blessed with a pre-ansi C compiler. We
|
||||
support them by using "ansi2knr" in the Makefiles, which is automatically
|
||||
detected and selected by the configure process.
|
||||
|
||||
For ansi2knr to work, we MUST define functions as follows:
|
||||
|
||||
type stuff
|
||||
function_name ( actual parameters )
|
||||
|
||||
While the whitespace is optional, the function name MUST start at column 0.
|
||||
|
||||
---
|
||||
|
||||
We'd like to see *all* system function declarations live in include/l_stdlib.h
|
||||
and NEVER appear in the .c files.
|
||||
|
||||
|
@ -15,7 +15,7 @@ bugfixes and drivers for new and exotic radios, telephones and sundials.
|
||||
This distribution is normally available by anonymous ftp as the
|
||||
compressed tar archive ntp-<version>.tar.gz in the pub/ntp directory on
|
||||
huey.udel.edu and <version> is the version number. The current stable
|
||||
and development version numbers can be found at <http://ntp.org>.
|
||||
and development version numbers can be found at <http://www.ntp.org>.
|
||||
|
||||
A considerable amount of documentation, including build instructions,
|
||||
configuration advice, program usage and miscellaneous information is
|
||||
|
6213
aclocal.m4
vendored
6213
aclocal.m4
vendored
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,17 @@
|
||||
AUTOMAKE_OPTIONS= ../util/ansi2knr
|
||||
AUTOMAKE_OPTIONS=
|
||||
|
||||
bindir= ${exec_prefix}/${BINSUBDIR}
|
||||
if NTP_BINSUBDIR_IS_BIN
|
||||
bin_PROGRAMS= @MAKE_ADJTIMED@
|
||||
else
|
||||
sbin_PROGRAMS= @MAKE_ADJTIMED@
|
||||
endif
|
||||
|
||||
BUILT_SOURCES=
|
||||
CLEANFILES=
|
||||
EXTRA_PROGRAMS= adjtimed
|
||||
AM_CPPFLAGS= -I$(top_srcdir)/include
|
||||
LDADD= ../libntp/libntp.a
|
||||
ETAGS_ARGS= Makefile.am
|
||||
|
||||
include ../bincheck.mf
|
||||
include $(top_srcdir)/bincheck.mf
|
||||
include $(top_srcdir)/depsver.mf
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
@ -38,15 +38,20 @@ PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
ANSI2KNR = ../util/ansi2knr
|
||||
EXTRA_PROGRAMS = adjtimed$(EXEEXT)
|
||||
DIST_COMMON = README $(srcdir)/../bincheck.mf $(srcdir)/Makefile.am \
|
||||
$(srcdir)/Makefile.in
|
||||
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/bincheck.mf $(top_srcdir)/depsver.mf
|
||||
subdir = adjtimed
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 \
|
||||
$(top_srcdir)/m4/hs_ulong_const.m4 \
|
||||
am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/ntp_cacheversion.m4 \
|
||||
$(top_srcdir)/m4/ntp_dir_sep.m4 \
|
||||
$(top_srcdir)/m4/ntp_lineeditlibs.m4 \
|
||||
$(top_srcdir)/m4/ntp_openssl.m4 \
|
||||
$(top_srcdir)/m4/ntp_vpathhack.m4 \
|
||||
$(top_srcdir)/m4/os_cflags.m4 $(top_srcdir)/version.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
@ -55,10 +60,10 @@ mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_HEADER = $(top_builddir)/config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
am__installdirs = "$(DESTDIR)$(bindir)"
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"
|
||||
PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
|
||||
adjtimed_SOURCES = adjtimed.c
|
||||
adjtimed_OBJECTS = adjtimed$U.$(OBJEXT)
|
||||
adjtimed_OBJECTS = adjtimed.$(OBJEXT)
|
||||
adjtimed_LDADD = $(LDADD)
|
||||
adjtimed_DEPENDENCIES = ../libntp/libntp.a
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
@ -82,7 +87,6 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
ARLIB_DIR = @ARLIB_DIR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -99,14 +103,18 @@ CYGPATH_W = @CYGPATH_W@
|
||||
DCFD = @DCFD@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EDITLINE_LIBS = @EDITLINE_LIBS@
|
||||
EF_LIBS = @EF_LIBS@
|
||||
EF_PROGS = @EF_PROGS@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HAVE_INLINE = @HAVE_INLINE@
|
||||
INSTALL = @INSTALL@
|
||||
@ -115,6 +123,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LCRYPTO = @LCRYPTO@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
|
||||
@ -123,6 +132,7 @@ LIBOPTS_LDADD = @LIBOPTS_LDADD@
|
||||
LIBPARSE = @LIBPARSE@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LSCF = @LSCF@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
@ -134,15 +144,22 @@ MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
|
||||
MAKE_LIBPARSE = @MAKE_LIBPARSE@
|
||||
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
|
||||
MAKE_NTPDSIM = @MAKE_NTPDSIM@
|
||||
MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
|
||||
MAKE_NTPTIME = @MAKE_NTPTIME@
|
||||
MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
|
||||
MAKE_TICKADJ = @MAKE_TICKADJ@
|
||||
MAKE_TIMETRIM = @MAKE_TIMETRIM@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OPENSSL = @OPENSSL@
|
||||
OPENSSL_INC = @OPENSSL_INC@
|
||||
OPENSSL_LIB = @OPENSSL_LIB@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
@ -150,29 +167,38 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
|
||||
PATH_PERL = @PATH_PERL@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PATH_SH = @PATH_SH@
|
||||
PATH_TEST = @PATH_TEST@
|
||||
POSIX_SHELL = @POSIX_SHELL@
|
||||
PROPDELAY = @PROPDELAY@
|
||||
RANLIB = @RANLIB@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SNMP_CFLAGS = @SNMP_CFLAGS@
|
||||
SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
|
||||
SNMP_LIBS = @SNMP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TESTDCF = @TESTDCF@
|
||||
U = @U@
|
||||
VERSION = @VERSION@
|
||||
YACC = @YACC@
|
||||
YFLAGS = @YFLAGS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = ${exec_prefix}/${BINSUBDIR}
|
||||
bindir = @bindir@
|
||||
build = @build@
|
||||
build_alias = @build_alias@
|
||||
build_cpu = @build_cpu@
|
||||
@ -213,16 +239,20 @@ target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = ../util/ansi2knr
|
||||
bin_PROGRAMS = @MAKE_ADJTIMED@
|
||||
AUTOMAKE_OPTIONS =
|
||||
@NTP_BINSUBDIR_IS_BIN_TRUE@bin_PROGRAMS = @MAKE_ADJTIMED@
|
||||
@NTP_BINSUBDIR_IS_BIN_FALSE@sbin_PROGRAMS = @MAKE_ADJTIMED@
|
||||
BUILT_SOURCES = .deps-ver
|
||||
CLEANFILES = .deps-ver
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
LDADD = ../libntp/libntp.a
|
||||
ETAGS_ARGS = Makefile.am
|
||||
all: all-am
|
||||
all: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../bincheck.mf $(am__configure_deps)
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/bincheck.mf $(top_srcdir)/depsver.mf $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
@ -295,6 +325,49 @@ clean-binPROGRAMS:
|
||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list
|
||||
install-sbinPROGRAMS: $(sbin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
|
||||
@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
|
||||
for p in $$list; do echo "$$p $$p"; done | \
|
||||
sed 's/$(EXEEXT)$$//' | \
|
||||
while read p p1; do if test -f $$p || test -f $$p1; \
|
||||
then echo "$$p"; echo "$$p"; else :; fi; \
|
||||
done | \
|
||||
sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
|
||||
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
|
||||
sed 'N;N;N;s,\n, ,g' | \
|
||||
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
|
||||
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
|
||||
if ($$2 == $$4) files[d] = files[d] " " $$1; \
|
||||
else { print "f", $$3 "/" $$4, $$1; } } \
|
||||
END { for (d in files) print "f", d, files[d] }' | \
|
||||
while read type dir files; do \
|
||||
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
|
||||
test -z "$$files" || { \
|
||||
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
|
||||
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
|
||||
} \
|
||||
; done
|
||||
|
||||
uninstall-sbinPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
|
||||
files=`for p in $$list; do echo "$$p"; done | \
|
||||
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
|
||||
-e 's/$$/$(EXEEXT)/' `; \
|
||||
test -n "$$list" || exit 0; \
|
||||
echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
|
||||
cd "$(DESTDIR)$(sbindir)" && rm -f $$files
|
||||
|
||||
clean-sbinPROGRAMS:
|
||||
@list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list || exit $$?; \
|
||||
test -n "$(EXEEXT)" || exit 0; \
|
||||
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
|
||||
echo " rm -f" $$list; \
|
||||
rm -f $$list
|
||||
adjtimed$(EXEEXT): $(adjtimed_OBJECTS) $(adjtimed_DEPENDENCIES)
|
||||
@rm -f adjtimed$(EXEEXT)
|
||||
$(LINK) $(adjtimed_OBJECTS) $(adjtimed_LDADD) $(LIBS)
|
||||
@ -304,13 +377,8 @@ mostlyclean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
../util/ansi2knr:
|
||||
$(am__cd) ../util && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
|
||||
|
||||
mostlyclean-kr:
|
||||
-test "$U" = "" || rm -f *_.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adjtimed$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/adjtimed.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@ -332,9 +400,6 @@ mostlyclean-kr:
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||
adjtimed_.c: adjtimed.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/adjtimed.c; then echo $(srcdir)/adjtimed.c; else echo adjtimed.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
|
||||
adjtimed_.$(OBJEXT) adjtimed_.lo : $(ANSI2KNR)
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
@ -425,13 +490,15 @@ distdir: $(DISTFILES)
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
check: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
for dir in "$(DESTDIR)$(bindir)"; do \
|
||||
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)"; do \
|
||||
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
|
||||
done
|
||||
install: install-am
|
||||
install: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
@ -448,6 +515,7 @@ install-strip:
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
@ -456,9 +524,11 @@ distclean-generic:
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
|
||||
clean-am: clean-binPROGRAMS clean-generic clean-libtool \
|
||||
clean-sbinPROGRAMS mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -rf ./$(DEPDIR)
|
||||
@ -484,7 +554,7 @@ install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am: install-binPROGRAMS
|
||||
install-exec-am: install-binPROGRAMS install-sbinPROGRAMS
|
||||
@$(NORMAL_INSTALL)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
|
||||
install-html: install-html-am
|
||||
@ -514,7 +584,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic mostlyclean-kr \
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
@ -525,36 +595,101 @@ ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am: uninstall-binPROGRAMS
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-sbinPROGRAMS
|
||||
|
||||
.MAKE: ../util/ansi2knr install-am install-exec-am install-strip
|
||||
.MAKE: all check install install-am install-exec-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
|
||||
clean-generic clean-libtool ctags distclean distclean-compile \
|
||||
distclean-generic distclean-libtool distclean-tags distdir dvi \
|
||||
dvi-am html html-am info info-am install install-am \
|
||||
install-binPROGRAMS install-data install-data-am install-dvi \
|
||||
install-dvi-am install-exec install-exec-am install-exec-hook \
|
||||
install-html install-html-am install-info install-info-am \
|
||||
install-man install-pdf install-pdf-am install-ps \
|
||||
install-ps-am install-strip installcheck installcheck-am \
|
||||
installdirs maintainer-clean maintainer-clean-generic \
|
||||
mostlyclean mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-kr mostlyclean-libtool pdf pdf-am ps ps-am tags \
|
||||
uninstall uninstall-am uninstall-binPROGRAMS
|
||||
clean-generic clean-libtool clean-sbinPROGRAMS ctags distclean \
|
||||
distclean-compile distclean-generic distclean-libtool \
|
||||
distclean-tags distdir dvi dvi-am html html-am info info-am \
|
||||
install install-am install-binPROGRAMS install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-exec-hook install-html install-html-am \
|
||||
install-info install-info-am install-man install-pdf \
|
||||
install-pdf-am install-ps install-ps-am install-sbinPROGRAMS \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
|
||||
pdf pdf-am ps ps-am tags uninstall uninstall-am \
|
||||
uninstall-binPROGRAMS uninstall-sbinPROGRAMS
|
||||
|
||||
|
||||
install-exec-hook:
|
||||
@case ${BINSUBDIR} in \
|
||||
bin) ODIR=${exec_prefix}/sbin ;; \
|
||||
sbin) ODIR=${exec_prefix}/bin ;; \
|
||||
esac; \
|
||||
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
|
||||
@case ${BINSUBDIR} in \
|
||||
bin) ODIR=${sbindir} ;; \
|
||||
sbin) ODIR=${bindir} ;; \
|
||||
esac; \
|
||||
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
|
||||
|| for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do \
|
||||
test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!"; \
|
||||
done
|
||||
|
||||
#
|
||||
$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ -f $@ ] || \
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
@[ -w $@ ] || \
|
||||
chmod ug+w $@
|
||||
@cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
|
||||
$(MAKE) clean && \
|
||||
echo -n "Prior $(subdir)/$(DEPDIR) version " && \
|
||||
cat $@ && \
|
||||
rm -rf $(DEPDIR) && \
|
||||
mkdir $(DEPDIR) && \
|
||||
case "$(top_builddir)" in \
|
||||
.) \
|
||||
./config.status Makefile depfiles \
|
||||
;; \
|
||||
..) \
|
||||
cd .. && \
|
||||
./config.status $(subdir)/Makefile depfiles && \
|
||||
cd $(subdir) \
|
||||
;; \
|
||||
*) \
|
||||
echo 'Fatal: depsver.mf Automake fragment limited' \
|
||||
'to immediate subdirectories.' && \
|
||||
echo "top_builddir: $(top_builddir)" && \
|
||||
echo "subdir: $(subdir)" && \
|
||||
exit 1 \
|
||||
;; \
|
||||
esac && \
|
||||
echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
|
||||
cat $(top_srcdir)/deps-ver \
|
||||
)
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
|
||||
.deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ ! -d $(DEPDIR) ] || $(MAKE) $(DEPDIR)/deps-ver
|
||||
@touch $@
|
||||
|
||||
#
|
||||
# depsver.mf included in Makefile.am for directories with .deps
|
||||
#
|
||||
# When building in the same directory with sources that change over
|
||||
# time, such as when tracking using bk, the .deps files can become
|
||||
# stale with respect to moved, deleted, or superceded headers. Most
|
||||
# commonly, this would exhibit as make reporting a failure to make a
|
||||
# header file which is no longer in the location given. To address
|
||||
# this issue, we use a deps-ver file which is updated with each change
|
||||
# that breaks old .deps files. A copy of deps-ver is made into
|
||||
# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
|
||||
# with different contents than deps-ver, we make clean to ensure all
|
||||
# .o files built before the incompatible change are rebuilt along with
|
||||
# their updated .deps files, then remove $(DEPDIR) and recreate it as
|
||||
# empty stubs.
|
||||
#
|
||||
# It is normal when configured with --disable-dependency-tracking for
|
||||
# the DEPDIR to not have been created. For this reason, we use the
|
||||
# intermediate target .deps-ver, which invokes make recursively if
|
||||
# DEPDIR exists.
|
||||
#
|
||||
# If you modify depsver.mf, please make the changes to the master
|
||||
# copy, the one in sntp is copied by the bootstrap script from it.
|
||||
#
|
||||
# This comment block follows rather than leads the related code so that
|
||||
# it stays with it in the generated Makefile.in and Makefile.
|
||||
#
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
@ -1,46 +0,0 @@
|
||||
Replied: Fri, 16 Feb 2001 14:12:54 -0500
|
||||
Replied: "Darren Reed <darrenr@reed.wattle.id.au> "
|
||||
Received: from [139.134.6.79] by whimsy.udel.edu id aa15476;
|
||||
16 Feb 2001 04:21 EST
|
||||
Received: from CPE-61-9-164-106.vic.bigpond.net.au
|
||||
([139.134.4.52]) by mailin6.bigpond.com (Netscape Messaging
|
||||
Server 4.15) with SMTP id G8UFIB00.4QI for
|
||||
<stenn@whimsy.udel.edu>; Fri, 16 Feb 2001 19:25:23 +1000
|
||||
Received: from CPE-61-9-164-110.vic.bigpond.net.au ([61.9.164.110]) by mail5.bigpond.com (Claudes-Retiring-MailRouter V2.9c 9/11963672); 16 Feb 2001 19:20:45
|
||||
Received: (from root@localhost)
|
||||
by CPE-61-9-164-106.vic.bigpond.net.au (8.11.0/8.11.0) id f1G92GC29158
|
||||
for <stenn@whimsy.udel.edu>; Fri, 16 Feb 2001 20:02:16 +1100
|
||||
From: Darren Reed <darrenr@reed.wattle.id.au>
|
||||
Message-Id: <200102160901.UAA23657@avalon.reed.wattle.id.au>
|
||||
Subject: Re: arlib?
|
||||
In-Reply-To: <901.982219274@whimsy.udel.edu> from Harlan Stenn at "Feb 15, 1 01:41:14 am"
|
||||
To: Harlan Stenn <stenn@whimsy.udel.edu>
|
||||
Date: Fri, 16 Feb 2001 20:01:46 +1100
|
||||
X-Mailer: ELM [version 2.4ME+ PL37 (25)]
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=US-ASCII
|
||||
Content-Transfer-Encoding: 7bit
|
||||
|
||||
In some email I received from Harlan Stenn, sie wrote:
|
||||
> Darren,
|
||||
>
|
||||
> I'm looking for an async resolver library that I can use with NTP.
|
||||
>
|
||||
> I noticed your code in the contrib/ subdir of later bind8 distribution
|
||||
> and I noticed the Copyright notice in arlib.c:
|
||||
>
|
||||
> * arlib.c (C)opyright 1993 Darren Reed. All rights reserved.
|
||||
> * This file may not be distributed without the author's permission in any
|
||||
> * shape or form. The author takes no responsibility for any damage or loss
|
||||
> * of property which results from the use of this software.
|
||||
>
|
||||
> so I thought I'd ask your permission to distribute your files if I can
|
||||
> figure out how to make it all work with ntpd.
|
||||
|
||||
http://coombs.anu.edu.au/~avalon/arlib.tar.gz
|
||||
|
||||
a few bug fixes (inc. buffer overflow :) and stuff in there.
|
||||
|
||||
But otherwise, go for it.
|
||||
|
||||
Darren
|
182
arlib/INSTALL
182
arlib/INSTALL
@ -1,182 +0,0 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.in' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.in' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=PATH' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
@ -1,15 +0,0 @@
|
||||
AUTOMAKE_OPTIONS = foreign # ansi2knr
|
||||
|
||||
#lib_LIBRARIES = libares.a
|
||||
noinst_LIBRARIES = libares.a
|
||||
libares_a_SOURCES = arlib.c arplib.h
|
||||
#include_HEADERS = arlib.h
|
||||
noinst_HEADERS = arlib.h
|
||||
|
||||
noinst_PROGRAMS = example
|
||||
example_SOURCES = sample.c
|
||||
example_LDADD = libares.a
|
||||
#man_MANS = arlib.3
|
||||
#EXTRA_DIST = $(man_MANS) UNSHAR.HDR
|
||||
noinst_MANS = arlib.3
|
||||
EXTRA_DIST = $(noinst_MANS) UNSHAR.HDR
|
@ -1,580 +0,0 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
|
||||
# Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
@SET_MAKE@
|
||||
|
||||
|
||||
|
||||
VPATH = @srcdir@
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkglibexecdir = $(libexecdir)/@PACKAGE@
|
||||
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
||||
install_sh_DATA = $(install_sh) -c -m 644
|
||||
install_sh_PROGRAM = $(install_sh) -c
|
||||
install_sh_SCRIPT = $(install_sh) -c
|
||||
INSTALL_HEADER = $(INSTALL_DATA)
|
||||
transform = $(program_transform_name)
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
noinst_PROGRAMS = example$(EXEEXT)
|
||||
subdir = .
|
||||
DIST_COMMON = README $(am__configure_deps) $(noinst_HEADERS) \
|
||||
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/configure COPYING INSTALL depcomp install-sh \
|
||||
missing
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/configure.in
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
$(ACLOCAL_M4)
|
||||
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
|
||||
configure.lineno config.status.lineno
|
||||
mkinstalldirs = $(install_sh) -d
|
||||
CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
LIBRARIES = $(noinst_LIBRARIES)
|
||||
AR = ar
|
||||
ARFLAGS = cru
|
||||
libares_a_AR = $(AR) $(ARFLAGS)
|
||||
libares_a_LIBADD =
|
||||
am_libares_a_OBJECTS = arlib.$(OBJEXT)
|
||||
libares_a_OBJECTS = $(am_libares_a_OBJECTS)
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
am_example_OBJECTS = sample.$(OBJEXT)
|
||||
example_OBJECTS = $(am_example_OBJECTS)
|
||||
example_DEPENDENCIES = libares.a
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
am__depfiles_maybe = depfiles
|
||||
am__mv = mv -f
|
||||
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
||||
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
|
||||
SOURCES = $(libares_a_SOURCES) $(example_SOURCES)
|
||||
DIST_SOURCES = $(libares_a_SOURCES) $(example_SOURCES)
|
||||
HEADERS = $(noinst_HEADERS)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
top_distdir = $(distdir)
|
||||
am__remove_distdir = \
|
||||
{ test ! -d "$(distdir)" \
|
||||
|| { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
|
||||
&& rm -fr "$(distdir)"; }; }
|
||||
DIST_ARCHIVES = $(distdir).tar.gz
|
||||
GZIP_ENV = --best
|
||||
distuninstallcheck_listfiles = find . -type f -print
|
||||
distcleancheck_listfiles = find . -type f -print
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AWK = @AWK@
|
||||
CC = @CC@
|
||||
CCDEPMODE = @CCDEPMODE@
|
||||
CFLAGS = @CFLAGS@
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
CYGPATH_W = @CYGPATH_W@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EXEEXT = @EXEEXT@
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBS = @LIBS@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
RANLIB = @RANLIB@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
am__tar = @am__tar@
|
||||
am__untar = @am__untar@
|
||||
bindir = @bindir@
|
||||
build_alias = @build_alias@
|
||||
builddir = @builddir@
|
||||
datadir = @datadir@
|
||||
datarootdir = @datarootdir@
|
||||
docdir = @docdir@
|
||||
dvidir = @dvidir@
|
||||
exec_prefix = @exec_prefix@
|
||||
host_alias = @host_alias@
|
||||
htmldir = @htmldir@
|
||||
includedir = @includedir@
|
||||
infodir = @infodir@
|
||||
install_sh = @install_sh@
|
||||
libdir = @libdir@
|
||||
libexecdir = @libexecdir@
|
||||
localedir = @localedir@
|
||||
localstatedir = @localstatedir@
|
||||
mandir = @mandir@
|
||||
mkdir_p = @mkdir_p@
|
||||
oldincludedir = @oldincludedir@
|
||||
pdfdir = @pdfdir@
|
||||
prefix = @prefix@
|
||||
program_transform_name = @program_transform_name@
|
||||
psdir = @psdir@
|
||||
sbindir = @sbindir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = foreign # ansi2knr
|
||||
|
||||
#lib_LIBRARIES = libares.a
|
||||
noinst_LIBRARIES = libares.a
|
||||
libares_a_SOURCES = arlib.c arplib.h
|
||||
#include_HEADERS = arlib.h
|
||||
noinst_HEADERS = arlib.h
|
||||
example_SOURCES = sample.c
|
||||
example_LDADD = libares.a
|
||||
#man_MANS = arlib.3
|
||||
#EXTRA_DIST = $(man_MANS) UNSHAR.HDR
|
||||
noinst_MANS = arlib.3
|
||||
EXTRA_DIST = $(noinst_MANS) UNSHAR.HDR
|
||||
all: all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o .obj
|
||||
am--refresh:
|
||||
@:
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
|
||||
$(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
|
||||
&& exit 0; \
|
||||
exit 1;; \
|
||||
esac; \
|
||||
done; \
|
||||
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
|
||||
$(am__cd) $(top_srcdir) && \
|
||||
$(AUTOMAKE) --foreign Makefile
|
||||
.PRECIOUS: Makefile
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@case '$?' in \
|
||||
*config.status*) \
|
||||
echo ' $(SHELL) ./config.status'; \
|
||||
$(SHELL) ./config.status;; \
|
||||
*) \
|
||||
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
|
||||
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
|
||||
esac;
|
||||
|
||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||
$(SHELL) ./config.status --recheck
|
||||
|
||||
$(top_srcdir)/configure: $(am__configure_deps)
|
||||
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||
$(am__aclocal_m4_deps):
|
||||
|
||||
clean-noinstLIBRARIES:
|
||||
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
|
||||
libares.a: $(libares_a_OBJECTS) $(libares_a_DEPENDENCIES)
|
||||
-rm -f libares.a
|
||||
$(libares_a_AR) libares.a $(libares_a_OBJECTS) $(libares_a_LIBADD)
|
||||
$(RANLIB) libares.a
|
||||
|
||||
clean-noinstPROGRAMS:
|
||||
-test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
|
||||
example$(EXEEXT): $(example_OBJECTS) $(example_DEPENDENCIES)
|
||||
@rm -f example$(EXEEXT)
|
||||
$(LINK) $(example_OBJECTS) $(example_LDADD) $(LIBS)
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sample.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c $<
|
||||
|
||||
.c.obj:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
|
||||
@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
mkid -fID $$unique
|
||||
tags: TAGS
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
set x; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
shift; \
|
||||
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
|
||||
test -n "$$unique" || unique=$$empty_fix; \
|
||||
if test $$# -gt 0; then \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
"$$@" $$unique; \
|
||||
else \
|
||||
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
||||
$$unique; \
|
||||
fi; \
|
||||
fi
|
||||
ctags: CTAGS
|
||||
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
||||
$(TAGS_FILES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
||||
unique=`for i in $$list; do \
|
||||
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
||||
done | \
|
||||
$(AWK) '{ files[$$0] = 1; nonempty = 1; } \
|
||||
END { if (nonempty) { for (i in files) print i; }; }'`; \
|
||||
test -z "$(CTAGS_ARGS)$$unique" \
|
||||
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
|
||||
$$unique
|
||||
|
||||
GTAGS:
|
||||
here=`$(am__cd) $(top_builddir) && pwd` \
|
||||
&& $(am__cd) $(top_srcdir) \
|
||||
&& gtags -i $(GTAGS_ARGS) "$$here"
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
$(am__remove_distdir)
|
||||
test -d "$(distdir)" || mkdir "$(distdir)"
|
||||
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
|
||||
list='$(DISTFILES)'; \
|
||||
dist_files=`for file in $$list; do echo $$file; done | \
|
||||
sed -e "s|^$$srcdirstrip/||;t" \
|
||||
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
|
||||
case $$dist_files in \
|
||||
*/*) $(MKDIR_P) `echo "$$dist_files" | \
|
||||
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
|
||||
sort -u` ;; \
|
||||
esac; \
|
||||
for file in $$dist_files; do \
|
||||
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
||||
if test -d $$d/$$file; then \
|
||||
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
|
||||
if test -d "$(distdir)/$$file"; then \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
||||
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
|
||||
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
|
||||
fi; \
|
||||
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
|
||||
else \
|
||||
test -f "$(distdir)/$$file" \
|
||||
|| cp -p $$d/$$file "$(distdir)/$$file" \
|
||||
|| exit 1; \
|
||||
fi; \
|
||||
done
|
||||
-test -n "$(am__skip_mode_fix)" \
|
||||
|| find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
|
||||
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
|
||||
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|
||||
|| chmod -R a+r "$(distdir)"
|
||||
dist-gzip: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-bzip2: distdir
|
||||
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-lzma: distdir
|
||||
tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-xz: distdir
|
||||
tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-tarZ: distdir
|
||||
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-shar: distdir
|
||||
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist-zip: distdir
|
||||
-rm -f $(distdir).zip
|
||||
zip -rq $(distdir).zip $(distdir)
|
||||
$(am__remove_distdir)
|
||||
|
||||
dist dist-all: distdir
|
||||
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
|
||||
$(am__remove_distdir)
|
||||
|
||||
# This target untars the dist file and tries a VPATH configuration. Then
|
||||
# it guarantees that the distribution is self-contained by making another
|
||||
# tarfile.
|
||||
distcheck: dist
|
||||
case '$(DIST_ARCHIVES)' in \
|
||||
*.tar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
|
||||
*.tar.bz2*) \
|
||||
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
|
||||
*.tar.lzma*) \
|
||||
unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
|
||||
*.tar.xz*) \
|
||||
xz -dc $(distdir).tar.xz | $(am__untar) ;;\
|
||||
*.tar.Z*) \
|
||||
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
|
||||
*.shar.gz*) \
|
||||
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
|
||||
*.zip*) \
|
||||
unzip $(distdir).zip ;;\
|
||||
esac
|
||||
chmod -R a-w $(distdir); chmod a+w $(distdir)
|
||||
mkdir $(distdir)/_build
|
||||
mkdir $(distdir)/_inst
|
||||
chmod a-w $(distdir)
|
||||
test -d $(distdir)/_build || exit 0; \
|
||||
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
|
||||
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
|
||||
&& am__cwd=`pwd` \
|
||||
&& $(am__cd) $(distdir)/_build \
|
||||
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
|
||||
$(DISTCHECK_CONFIGURE_FLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) check \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
|
||||
distuninstallcheck \
|
||||
&& chmod -R a-w "$$dc_install_base" \
|
||||
&& ({ \
|
||||
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
|
||||
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
|
||||
} || { rm -rf "$$dc_destdir"; exit 1; }) \
|
||||
&& rm -rf "$$dc_destdir" \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) dist \
|
||||
&& rm -rf $(DIST_ARCHIVES) \
|
||||
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
|
||||
&& cd "$$am__cwd" \
|
||||
|| exit 1
|
||||
$(am__remove_distdir)
|
||||
@(echo "$(distdir) archives ready for distribution: "; \
|
||||
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
|
||||
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
|
||||
distuninstallcheck:
|
||||
@$(am__cd) '$(distuninstallcheck_dir)' \
|
||||
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|
||||
|| { echo "ERROR: files left after uninstall:" ; \
|
||||
if test -n "$(DESTDIR)"; then \
|
||||
echo " (check DESTDIR support)"; \
|
||||
fi ; \
|
||||
$(distuninstallcheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
distcleancheck: distclean
|
||||
@if test '$(srcdir)' = . ; then \
|
||||
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|
||||
|| { echo "ERROR: files left in build directory after distclean:" ; \
|
||||
$(distcleancheck_listfiles) ; \
|
||||
exit 1; } >&2
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
|
||||
installdirs:
|
||||
install: install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
|
||||
installcheck: installcheck-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
||||
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
|
||||
`test -z '$(STRIP)' || \
|
||||
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
|
||||
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-noinstLIBRARIES clean-noinstPROGRAMS \
|
||||
mostlyclean-am
|
||||
|
||||
distclean: distclean-am
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
distclean-am: clean-am distclean-compile distclean-generic \
|
||||
distclean-tags
|
||||
|
||||
dvi: dvi-am
|
||||
|
||||
dvi-am:
|
||||
|
||||
html: html-am
|
||||
|
||||
html-am:
|
||||
|
||||
info: info-am
|
||||
|
||||
info-am:
|
||||
|
||||
install-data-am:
|
||||
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
|
||||
install-exec-am:
|
||||
|
||||
install-html: install-html-am
|
||||
|
||||
install-html-am:
|
||||
|
||||
install-info: install-info-am
|
||||
|
||||
install-info-am:
|
||||
|
||||
install-man:
|
||||
|
||||
install-pdf: install-pdf-am
|
||||
|
||||
install-pdf-am:
|
||||
|
||||
install-ps: install-ps-am
|
||||
|
||||
install-ps-am:
|
||||
|
||||
installcheck-am:
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
|
||||
-rm -rf $(top_srcdir)/autom4te.cache
|
||||
-rm -rf ./$(DEPDIR)
|
||||
-rm -f Makefile
|
||||
maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic
|
||||
|
||||
pdf: pdf-am
|
||||
|
||||
pdf-am:
|
||||
|
||||
ps: ps-am
|
||||
|
||||
ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
|
||||
clean-generic clean-noinstLIBRARIES clean-noinstPROGRAMS ctags \
|
||||
dist dist-all dist-bzip2 dist-gzip dist-lzma dist-shar \
|
||||
dist-tarZ dist-xz dist-zip distcheck distclean \
|
||||
distclean-compile distclean-generic distclean-tags \
|
||||
distcleancheck distdir distuninstallcheck dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
install-data-am install-dvi install-dvi-am install-exec \
|
||||
install-exec-am install-html install-html-am install-info \
|
||||
install-info-am install-man install-pdf install-pdf-am \
|
||||
install-ps install-ps-am install-strip installcheck \
|
||||
installcheck-am installdirs maintainer-clean \
|
||||
maintainer-clean-generic mostlyclean mostlyclean-compile \
|
||||
mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
49
arlib/README
49
arlib/README
@ -1,49 +0,0 @@
|
||||
|
||||
Asynchronous DNS
|
||||
----------------
|
||||
|
||||
Intro.
|
||||
|
||||
For those who write real time network applications that have to handle
|
||||
multiple TCP or UDP connections, the problem of effectively doing DNS
|
||||
lookups is quite real. Generally, this means the program waits while
|
||||
the query finishes, holding everything else up. This small library of
|
||||
routines aims to solve that problem by performing the DNS query and
|
||||
then returning the program to its normal flow.
|
||||
|
||||
Whats included ?
|
||||
|
||||
The library routines, arlib.c, a header file for it, arlib.h, a man
|
||||
page, arlib.3 and an example of how this sort of code is used,
|
||||
sample.c.
|
||||
|
||||
|
||||
Compilation & Installation.
|
||||
|
||||
Edit the Makefile and do "make install" to install things where you
|
||||
wish them to go. You should check it makes and works before doing
|
||||
this :)
|
||||
|
||||
If the compilation is successful, you'll have an executeable called
|
||||
"example" and libares.a. "example" is a simple program which will
|
||||
do hostname->IP# or IP#->hostnae lookups by entering either the
|
||||
hostname or IP# on the line with "Host-->". You dont have to wait
|
||||
for a query to fail or succeed before typing in the next line.
|
||||
|
||||
Portability.
|
||||
|
||||
I'm not sure how portable this is, it was written under SunOS 4.1.2
|
||||
on a Sparc 1+ and hasn't been tested very widely. If you find any
|
||||
problems when compiling/execution, plase send me a patch (using
|
||||
diff -c) to avalon@coombs.anu.edu.au. If it goes well enough, I'll
|
||||
send it to comp.unix.sources or comp.sources.misc for further testing.
|
||||
|
||||
Future additions.
|
||||
|
||||
Adding a working cache would be nice but I'm not sure if that really
|
||||
is needed (?). I guess it depends on how often your program is
|
||||
required to do a DNS lookup and whether caching would help.
|
||||
|
||||
|
||||
Cheers,
|
||||
Darren.
|
@ -1,32 +0,0 @@
|
||||
Replied: Sun, 19 Dec 93 09:58:30 PST
|
||||
Replied: "Darren Reed <avalon@coombs.anu.edu.au> "
|
||||
Return-Path: avalon@coombs.anu.edu.au
|
||||
Received: by gw.home.vix.com id AA12017; Sun, 19 Dec 93 07:04:44 -0800
|
||||
Message-Id: <9312191504.AA12017@gw.home.vix.com>
|
||||
Received: by coombs.anu.edu.au
|
||||
(1.37.109.8/16.2) id AA10850; Mon, 20 Dec 1993 02:07:21 +1100
|
||||
From: Darren Reed <avalon@coombs.anu.edu.au>
|
||||
Subject: Addition for 4.9 "contrib" directory
|
||||
To: paul@vix.com
|
||||
Date: Mon, 20 Dec 1993 02:07:20 +1000 (EDT)
|
||||
X-Mailer: ELM [version 2.4 PL21]
|
||||
Mime-Version: 1.0
|
||||
Content-Type: text/plain; charset=US-ASCII
|
||||
Content-Transfer-Encoding: 7bit
|
||||
Content-Length: 67950
|
||||
|
||||
|
||||
Well, I just sent one letter off to dec.com, being from the 4.9 README I had.
|
||||
|
||||
So, to sum up what I said, I've included below, some code I've written to
|
||||
perform async. DNS lookups - `replacements' for gethostbyname and
|
||||
gethostbyaddr. I've written and tested it mainly on a HP-UX machine, so
|
||||
I'm not sure how it will port to others, but I've tried to keep the amount
|
||||
of OS specific code to a minimum.
|
||||
|
||||
The Makefile is setup to work best from "contrib/arlib", which is how I
|
||||
checked to make sure it worked and ran well. There's a man page included
|
||||
also.
|
||||
|
||||
Cheers,
|
||||
Darren
|
951
arlib/aclocal.m4
vendored
951
arlib/aclocal.m4
vendored
@ -1,951 +0,0 @@
|
||||
# generated automatically by aclocal 1.11 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
|
||||
[m4_warning([this file was generated for autoconf 2.65.
|
||||
You have another version of autoconf. It may work, but is not guaranteed to.
|
||||
If you have problems, you may need to regenerate the build system entirely.
|
||||
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
||||
|
||||
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
# (This private macro should not be called outside this file.)
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
||||
[am__api_version='1.11'
|
||||
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
||||
dnl require some minimum version. Point them to the right macro.
|
||||
m4_if([$1], [1.11], [],
|
||||
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
||||
])
|
||||
|
||||
# _AM_AUTOCONF_VERSION(VERSION)
|
||||
# -----------------------------
|
||||
# aclocal traces this macro to find the Autoconf version.
|
||||
# This is a private macro too. Using m4_define simplifies
|
||||
# the logic in aclocal, which can simply ignore this definition.
|
||||
m4_define([_AM_AUTOCONF_VERSION], [])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
||||
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.11])dnl
|
||||
m4_ifndef([AC_AUTOCONF_VERSION],
|
||||
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
||||
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||
#
|
||||
# Of course, Automake must honor this variable whenever it calls a
|
||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||
# depending on how configure is run. This is pretty annoying, since
|
||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||
# source directory, any form will work fine, but in subdirectories a
|
||||
# relative path needs to be adjusted first.
|
||||
#
|
||||
# $ac_aux_dir/missing
|
||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||
# $top_srcdir/$ac_aux_dir/missing
|
||||
# fails if $ac_aux_dir is absolute,
|
||||
# fails when called from a subdirectory in a VPATH build with
|
||||
# a relative $ac_aux_dir
|
||||
#
|
||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||
# harmless because $srcdir is `.', but things will broke when you
|
||||
# start a VPATH build or use an absolute $srcdir.
|
||||
#
|
||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||
# and then we would define $MISSING as
|
||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# This will work as long as MISSING is not called from configure, because
|
||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||
# However there are other variables, like CC, which are often used in
|
||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||
#
|
||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||
# configured tree to be moved without reconfiguration.
|
||||
|
||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||
[dnl Rely on autoconf to set up CDPATH properly.
|
||||
AC_PREREQ([2.50])dnl
|
||||
# expand $ac_aux_dir to an absolute path
|
||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||
])
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 9
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])dnl
|
||||
AC_SUBST([$1_FALSE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
||||
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
||||
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 10
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], UPC, [depcc="$UPC" am_compiler_list=],
|
||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||
# in D'.
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
am__universal=false
|
||||
m4_case([$1], [CC],
|
||||
[case " $depcc " in #(
|
||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
||||
esac],
|
||||
[CXX],
|
||||
[case " $depcc " in #(
|
||||
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
||||
esac])
|
||||
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||
# Solaris 8's {/usr,}/bin/sh.
|
||||
touch sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle `-M -o', and we need to detect this. Also, some Intel
|
||||
# versions had trouble with output in subdirs
|
||||
am__obj=sub/conftest.${OBJEXT-o}
|
||||
am__minus_obj="-o $am__obj"
|
||||
case $depmode in
|
||||
gcc)
|
||||
# This depmode causes a compiler race in universal mode.
|
||||
test "$am__universal" = false || continue
|
||||
;;
|
||||
nosideeffect)
|
||||
# after this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
msvisualcpp | msvcmsys)
|
||||
# This compiler won't grok `-c -o', but also, the minuso test has
|
||||
# not run yet. These depmodes are late enough in the game, and
|
||||
# so weak that their functioning should not be impacted.
|
||||
am__obj=conftest.${OBJEXT-o}
|
||||
am__minus_obj=
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=$am__obj \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE(dependency-tracking,
|
||||
[ --disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])dnl
|
||||
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
#serial 5
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[{
|
||||
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
||||
# are listed without --file. Let's play safe and only enable the eval
|
||||
# if we detect the quoting.
|
||||
case $CONFIG_FILES in
|
||||
*\'*) eval set x "$CONFIG_FILES" ;;
|
||||
*) set x $CONFIG_FILES ;;
|
||||
esac
|
||||
shift
|
||||
for mf
|
||||
do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named `Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# Grep'ing the whole file is not good either: AIX grep has a line
|
||||
# limit of 2048, but all sed's we know have understand at least 4000.
|
||||
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running `make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||
U=`sed -n 's/^U = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
}
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each `.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 16
|
||||
|
||||
# This macro actually does too much. Some checks are only needed if
|
||||
# your package does certain things. But this isn't really a big deal.
|
||||
|
||||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||
# -----------------------------------------------
|
||||
# The call with PACKAGE and VERSION arguments is the old style
|
||||
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||
# and VERSION should now be passed to AC_INIT and removed from
|
||||
# the call to AM_INIT_AUTOMAKE.
|
||||
# We support both call styles for the transition. After
|
||||
# the next Automake release, Autoconf can make the AC_INIT
|
||||
# arguments mandatory, and then we can depend on a new Autoconf
|
||||
# release and drop the old call support.
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_PREREQ([2.62])dnl
|
||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||
dnl the ones we care about.
|
||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
||||
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
||||
# is not polluted with repeated "-I."
|
||||
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
||||
# test to see if srcdir already configured
|
||||
if test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
fi
|
||||
|
||||
# test whether we have cygpath
|
||||
if test -z "$CYGPATH_W"; then
|
||||
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||
CYGPATH_W='cygpath -w'
|
||||
else
|
||||
CYGPATH_W=echo
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([CYGPATH_W])
|
||||
|
||||
# Define the identity of the package.
|
||||
dnl Distinguish between old-style and new-style calls.
|
||||
m4_ifval([$2],
|
||||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||
AC_SUBST([PACKAGE], [$1])dnl
|
||||
AC_SUBST([VERSION], [$2])],
|
||||
[_AM_SET_OPTIONS([$1])dnl
|
||||
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
||||
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
||||
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||
|
||||
_AM_IF_OPTION([no-define],,
|
||||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||
|
||||
# Some tools Automake needs.
|
||||
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||
[_AM_PROG_TAR([v7])])])
|
||||
_AM_IF_OPTION([no-dependencies],,
|
||||
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||
[_AM_DEPENDENCIES(CC)],
|
||||
[define([AC_PROG_CC],
|
||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||
[_AM_DEPENDENCIES(CXX)],
|
||||
[define([AC_PROG_CXX],
|
||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
||||
[_AM_DEPENDENCIES(OBJC)],
|
||||
[define([AC_PROG_OBJC],
|
||||
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
||||
])
|
||||
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
||||
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
|
||||
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
|
||||
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
||||
AC_CONFIG_COMMANDS_PRE(dnl
|
||||
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
||||
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
||||
])
|
||||
|
||||
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
||||
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
||||
dnl mangled by Autoconf and run in a shell conditional statement.
|
||||
m4_define([_AC_COMPILER_EXEEXT],
|
||||
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
||||
|
||||
|
||||
# When config.status generates a header, we must update the stamp-h file.
|
||||
# This file resides in the same directory as the config header
|
||||
# that is generated. The stamp files are numbered to have different names.
|
||||
|
||||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||
# loop where config.status creates the headers, so we can generate
|
||||
# our stamp files there.
|
||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||
[# Compute $1's index in $config_headers.
|
||||
_am_arg=$1
|
||||
_am_stamp_count=1
|
||||
for _am_header in $config_headers :; do
|
||||
case $_am_header in
|
||||
$_am_arg | $_am_arg:* )
|
||||
break ;;
|
||||
* )
|
||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||
esac
|
||||
done
|
||||
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_SH
|
||||
# ------------------
|
||||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
if test x"${install_sh}" != xset; then
|
||||
case $am_aux_dir in
|
||||
*\ * | *\ *)
|
||||
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
||||
*)
|
||||
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
||||
esac
|
||||
fi
|
||||
AC_SUBST(install_sh)])
|
||||
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# Check whether the underlying file-system supports filenames
|
||||
# with a leading dot. For instance MS-DOS doesn't.
|
||||
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||
[rm -rf .tst 2>/dev/null
|
||||
mkdir .tst 2>/dev/null
|
||||
if test -d .tst; then
|
||||
am__leading_dot=.
|
||||
else
|
||||
am__leading_dot=_
|
||||
fi
|
||||
rmdir .tst 2>/dev/null
|
||||
AC_SUBST([am__leading_dot])])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo this is the am__doit target
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# Ignore all kinds of additional output from `make'.
|
||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
||||
*the\ am__doit\ target*)
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
;;
|
||||
esac
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
case `$am_make -s -f confmf 2> /dev/null` in #(
|
||||
*the\ am__doit\ target*)
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 6
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||
$1=${$1-"${am_missing_run}$2"}
|
||||
AC_SUBST($1)])
|
||||
|
||||
|
||||
# AM_MISSING_HAS_RUN
|
||||
# ------------------
|
||||
# Define MISSING if not defined so far and test if it supports --run.
|
||||
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
AC_REQUIRE_AUX_FILE([missing])dnl
|
||||
if test x"${MISSING+set}" != xset; then
|
||||
case $am_aux_dir in
|
||||
*\ * | *\ *)
|
||||
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
||||
*)
|
||||
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
||||
esac
|
||||
fi
|
||||
# Use eval to expand $SHELL
|
||||
if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_MKDIR_P
|
||||
# ---------------
|
||||
# Check for `mkdir -p'.
|
||||
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||
[AC_PREREQ([2.60])dnl
|
||||
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
||||
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
||||
dnl while keeping a definition of mkdir_p for backward compatibility.
|
||||
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
||||
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
||||
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
||||
dnl adjustment using top_builddir (which is defined more often than
|
||||
dnl MKDIR_P).
|
||||
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
||||
case $mkdir_p in
|
||||
[[\\/$]]* | ?:[[\\/]]*) ;;
|
||||
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
||||
esac
|
||||
])
|
||||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 4
|
||||
|
||||
# _AM_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
# _AM_SET_OPTION(NAME)
|
||||
# ------------------------------
|
||||
# Set option NAME. Presently that only means defining a flag for this option.
|
||||
AC_DEFUN([_AM_SET_OPTION],
|
||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||
|
||||
# _AM_SET_OPTIONS(OPTIONS)
|
||||
# ----------------------------------
|
||||
# OPTIONS is a space-separated list of Automake options.
|
||||
AC_DEFUN([_AM_SET_OPTIONS],
|
||||
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||
|
||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 5
|
||||
|
||||
# AM_SANITY_CHECK
|
||||
# ---------------
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftest.file
|
||||
# Reject unsafe characters in $srcdir or the absolute working directory
|
||||
# name. Accept space and tab only in the latter.
|
||||
am_lf='
|
||||
'
|
||||
case `pwd` in
|
||||
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
||||
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
||||
esac
|
||||
case $srcdir in
|
||||
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
||||
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
|
||||
esac
|
||||
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
||||
if test "$[*]" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t "$srcdir/configure" conftest.file`
|
||||
fi
|
||||
rm -f conftest.file
|
||||
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "$[2]" = conftest.file
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# AM_PROG_INSTALL_STRIP
|
||||
# ---------------------
|
||||
# One issue with vendor `install' (even GNU) is that you can't
|
||||
# specify the program used to strip binaries. This is especially
|
||||
# annoying in cross-compiling environments, where the build's strip
|
||||
# is unlikely to handle the host's binaries.
|
||||
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||
# always use install-sh in `make install-strip', and initialize
|
||||
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
# Installed binaries are usually stripped using `strip' when the user
|
||||
# run `make install-strip'. However `strip' might not be the right
|
||||
# tool to use in cross-compilation environments, therefore Automake
|
||||
# will honor the `STRIP' environment variable to overrule this program.
|
||||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||
if test "$cross_compiling" != no; then
|
||||
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||
fi
|
||||
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
||||
# This macro is traced by Automake.
|
||||
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
||||
|
||||
# AM_SUBST_NOTMAKE(VARIABLE)
|
||||
# ---------------------------
|
||||
# Public sister of _AM_SUBST_NOTMAKE.
|
||||
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
||||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_PROG_TAR(FORMAT)
|
||||
# --------------------
|
||||
# Check how to create a tarball in format FORMAT.
|
||||
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||
#
|
||||
# Substitute a variable $(am__tar) that is a command
|
||||
# writing to stdout a FORMAT-tarball containing the directory
|
||||
# $tardir.
|
||||
# tardir=directory && $(am__tar) > result.tar
|
||||
#
|
||||
# Substitute a variable $(am__untar) that extract such
|
||||
# a tarball read from stdin.
|
||||
# $(am__untar) < result.tar
|
||||
AC_DEFUN([_AM_PROG_TAR],
|
||||
[# Always define AMTAR for backward compatibility.
|
||||
AM_MISSING_PROG([AMTAR], [tar])
|
||||
m4_if([$1], [v7],
|
||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||
[m4_case([$1], [ustar],, [pax],,
|
||||
[m4_fatal([Unknown tar format])])
|
||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||
# Loop over all known methods to create a tar archive until one works.
|
||||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||
# Do not fold the above two line into one, because Tru64 sh and
|
||||
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||
for _am_tool in $_am_tools
|
||||
do
|
||||
case $_am_tool in
|
||||
gnutar)
|
||||
for _am_tar in tar gnutar gtar;
|
||||
do
|
||||
AM_RUN_LOG([$_am_tar --version]) && break
|
||||
done
|
||||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||
am__untar="$_am_tar -xf -"
|
||||
;;
|
||||
plaintar)
|
||||
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||
# ustar tarball either.
|
||||
(tar --version) >/dev/null 2>&1 && continue
|
||||
am__tar='tar chf - "$$tardir"'
|
||||
am__tar_='tar chf - "$tardir"'
|
||||
am__untar='tar xf -'
|
||||
;;
|
||||
pax)
|
||||
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||
am__untar='pax -r'
|
||||
;;
|
||||
cpio)
|
||||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||
am__untar='cpio -i -H $1 -d'
|
||||
;;
|
||||
none)
|
||||
am__tar=false
|
||||
am__tar_=false
|
||||
am__untar=false
|
||||
;;
|
||||
esac
|
||||
|
||||
# If the value was cached, stop now. We just wanted to have am__tar
|
||||
# and am__untar set.
|
||||
test -n "${am_cv_prog_tar_$1}" && break
|
||||
|
||||
# tar/untar a dummy directory, and stop if the command works
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
echo GrepMe > conftest.dir/file
|
||||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||
rm -rf conftest.dir
|
||||
if test -s conftest.tar; then
|
||||
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||
fi
|
||||
done
|
||||
rm -rf conftest.dir
|
||||
|
||||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||
AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
230
arlib/arlib.3
230
arlib/arlib.3
@ -1,230 +0,0 @@
|
||||
.TH arlib 3
|
||||
.SH NAME
|
||||
ar_answer, ar_close, ar_delete, ar_gethostbyname, ar_gethostbyaddr,
|
||||
ar_init, ar_open, ar_timeout - Asynchronous DNS library routines
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include "arlib.h"
|
||||
|
||||
.B struct hostent *ar_answer(dataptr, size)
|
||||
.B char *dataptr;
|
||||
.B int size;
|
||||
|
||||
.B void ar_close();
|
||||
|
||||
.B int ar_delete(dataptr, size)
|
||||
.B char *dataptr;
|
||||
.B int size;
|
||||
|
||||
.B int ar_gethostbyname(name, dataptr, size)
|
||||
.B char *name;
|
||||
.B char *dataptr;
|
||||
.B int size;
|
||||
|
||||
.B int ar_gethostbyaddr(name, dataptr, size)
|
||||
.B char *name;
|
||||
.B char *dataptr;
|
||||
.B int size;
|
||||
|
||||
.B int ar_init(flags)
|
||||
.B int flags;
|
||||
|
||||
.B int ar_open();
|
||||
|
||||
.B long ar_timeout(time, dataptr, size)
|
||||
.B long time;
|
||||
.B char *dataptr;
|
||||
.B int size;
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
|
||||
.PP
|
||||
This small library of DNS routines is intended to provide an
|
||||
asynchronous interface to performing hostname and IP number lookups.
|
||||
Only lookups of Internet domain are handled as yet. To use this
|
||||
set of routines properly, the presence of the
|
||||
.B "BIND 4.8"
|
||||
resolve
|
||||
libraries is required (or any library derived from it).
|
||||
.PP
|
||||
This library should be used in conjunction with
|
||||
.B select(2)
|
||||
to wait for
|
||||
the name server's reply to arrive or the lookup to timeout.
|
||||
.PP
|
||||
To open a fd for talking to the name server, either
|
||||
.B ar_open()
|
||||
or
|
||||
ar_init()
|
||||
must be used.
|
||||
.B ar_open()
|
||||
will open either a datagram socket
|
||||
or a virtual circuit with the name server, depending on the flags
|
||||
set in the _res structure (see
|
||||
.B resolv(5)
|
||||
). In both cases, if the socket
|
||||
|
||||
> i
|
||||
.B ar_init()
|
||||
is
|
||||
used to both open the socket (as in
|
||||
.B ar_open()
|
||||
) and initialize the
|
||||
queues used by this library. The values recognized as parameters to
|
||||
.B ar_init()
|
||||
are:
|
||||
|
||||
.RS
|
||||
#define ARES_INITLIST 1
|
||||
.RE
|
||||
.RS
|
||||
#define ARES_CALLINIT 2
|
||||
.RE
|
||||
.RS
|
||||
#define ARES_INITSOCK 4
|
||||
.RE
|
||||
.RS
|
||||
#define ARES_INITDEBG 8
|
||||
.RE
|
||||
|
||||
ARES_INITLIST initializes the list of queries waiting for replies.
|
||||
ARES_CALLINIT is a flag which when set causes
|
||||
.B res_init()
|
||||
to be called.
|
||||
ARES_INITSOCK will close the current socket if it is open and call
|
||||
.B ar_open()
|
||||
to open a new one, returning the fd for that socket.
|
||||
ARES_INITDEBG sets the RES_DEBUG flag of the
|
||||
.B _res
|
||||
structure.
|
||||
ARES_INITCACH is as yet, unused and is for future use where the library
|
||||
keeps its own cache of replies.
|
||||
|
||||
To send a query about either a hostname or an IP number,
|
||||
.B ar_gethostbyname()
|
||||
and
|
||||
.B ar_gethostbyaddr()
|
||||
must be used. Each takes
|
||||
either a pointer to the hostname or the IP number respectively for use
|
||||
when making the query. In addition to this, both (optionally) can be
|
||||
passed a pointer to data, dataptr, with the size also passed which can
|
||||
be used for identifying individual queries. A copy of the area pointed
|
||||
to is made if dataptr is non NULL and size is non zero. These functions
|
||||
will always return NULL unless the answer to the query is found in
|
||||
internal caches. A new flag, RES_CHECKPTR is checked during the
|
||||
processing of answers for
|
||||
.B ar_gethostbyname()
|
||||
which will automatically
|
||||
cause a reverse lookup to be queued, causing a failure if that reply
|
||||
differs from the original.
|
||||
|
||||
To check for a query,
|
||||
.B ar_answer()
|
||||
is called with a pointer to an area
|
||||
of memory which is sufficient to hold what was originally passed via
|
||||
.B ar_gethostbyname()
|
||||
or
|
||||
.B ar_gethostbyaddr()
|
||||
through dataptr. If an answer
|
||||
is found, a pointer to the host information is returned and the data
|
||||
segment copied if dataptr is non NULL and it was originally passed. The
|
||||
size of the copied data is the smaller of the passed size and that of
|
||||
original data stored.
|
||||
|
||||
To expire old queries,
|
||||
.B ar_timeout()
|
||||
is called with the 'current' time
|
||||
(or the time for which you want to do timeouts for). If a queue entry
|
||||
is too old, it will be expired when it has exhausted all available avenues
|
||||
for lookups and the data segment for the expired query copied into
|
||||
dataptr. The size of the copied data is the smaller of the passed size
|
||||
and that of the original stored data. Only 1 entry is thus expired with
|
||||
each call, requiring that it be called immediately after an expiration
|
||||
to check for others. In addition to expiring lookups,
|
||||
.B ar_timeout()
|
||||
also
|
||||
triggers resends of queries and the searching of the domain tree for the
|
||||
host, the latter works from the
|
||||
.B _res
|
||||
structure of
|
||||
.B resolv(5).
|
||||
|
||||
To delete entries from the queue,
|
||||
.B ar_delete()
|
||||
can be used and by
|
||||
passing the pointer and size of the data segment, all queries have their
|
||||
data segments checked (if present) for an exact match, being deleted if
|
||||
and only if there is a match. A NULL pointer passed to ar_deleted()
|
||||
matches all queries which were called with a NULL dataptr parameter.
|
||||
The amount of data compared is the smaller of the size passed and that
|
||||
of the data stored for the queue entry being compared.
|
||||
|
||||
To close a socket opened by
|
||||
.B ar_open()
|
||||
,
|
||||
.B ar_close()
|
||||
should be used so
|
||||
that it is closed and also marked closed within this library.
|
||||
|
||||
|
||||
.SH DIAGNOSIS
|
||||
|
||||
.B ar_open()
|
||||
returns -1 if a socket isn't open and could not be opened;
|
||||
otherwise returns the current fd open or the fd it opened.
|
||||
|
||||
.B ar_init()
|
||||
returns -1 for any errors, the value returned by
|
||||
.B res_init()
|
||||
if
|
||||
.B res_init()
|
||||
was called, the return value for
|
||||
.B ar_open()
|
||||
if that was
|
||||
called or the current socket open if 0 is passed and a socket is open.
|
||||
If neither
|
||||
.B res_init()
|
||||
or
|
||||
.B ar_open()
|
||||
are called and the flags are non-zero, -2 is returned.
|
||||
|
||||
.B ar_gethostbyaddr()
|
||||
and
|
||||
.B ar_gethostbyname()
|
||||
will always return NULL in this version but may return a pointer to a hostent
|
||||
structure if a cache is being used and the answer is found in the cache.
|
||||
|
||||
.B ar_answer()
|
||||
returns NULL if the answer is either not found or the
|
||||
query returned an error and another attempt at a lookup is attempted.
|
||||
If an answer was found, it returned a pointer to this structure and
|
||||
the contents of the data segment copied over.
|
||||
|
||||
.B ar_timeout()
|
||||
returns the time when it should be called next or 0 if
|
||||
there are no queries in the queue to be checked later. If any queries
|
||||
are expired, the data segment is copied over if dataptr is non NULL.
|
||||
|
||||
.B ar_delete()
|
||||
returns the number of entries that were found to match
|
||||
and consequently deleted.
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
gethostbyaddr(3), gethostbyname(3), resolv(5)
|
||||
|
||||
.SH FILES
|
||||
.nf
|
||||
arlib.h
|
||||
/usr/include/resolv.h
|
||||
/usr/include/arpa/nameser.h
|
||||
/etc/resolv.conf
|
||||
|
||||
.SH BUGS
|
||||
|
||||
The results of a successful call to ar_answer() destroy the structure
|
||||
for any previous calls.
|
||||
|
||||
.SH AUTHOR
|
||||
|
||||
Darren Reed. Email address: avalon@coombs.anu.edu.au
|
1056
arlib/arlib.c
1056
arlib/arlib.c
File diff suppressed because it is too large
Load Diff
@ -1,29 +0,0 @@
|
||||
/*
|
||||
* arlib.h (C)opyright 1992 Darren Reed.
|
||||
*/
|
||||
|
||||
#define ARES_INITLIST 1
|
||||
#define ARES_CALLINIT 2
|
||||
#define ARES_INITSOCK 4
|
||||
#define ARES_INITDEBG 8
|
||||
#define ARES_INITCACH 16
|
||||
|
||||
#ifdef __STDC__
|
||||
extern struct hostent *ar_answer(char *, int);
|
||||
extern void ar_close();
|
||||
extern int ar_delete(char *, int);
|
||||
extern int ar_gethostbyname(char *, char *, int);
|
||||
extern int ar_gethostbyaddr(char *, char *, int);
|
||||
extern int ar_init(int);
|
||||
extern int ar_open();
|
||||
extern long ar_timeout(time_t, char *, int);
|
||||
#else
|
||||
extern struct hostent *ar_answer();
|
||||
extern void ar_close();
|
||||
extern int ar_delete();
|
||||
extern int ar_gethostbyname();
|
||||
extern int ar_gethostbyaddr();
|
||||
extern int ar_init();
|
||||
extern int ar_open();
|
||||
extern long ar_timeout();
|
||||
#endif
|
@ -1,45 +0,0 @@
|
||||
/*
|
||||
* arplib.h (C)opyright 1992 Darren Reed.
|
||||
*/
|
||||
|
||||
#define MAXPACKET 1024
|
||||
#define MAXALIASES 35
|
||||
#define MAXADDRS 35
|
||||
|
||||
#define RES_CHECKPTR 0x0400
|
||||
|
||||
struct hent {
|
||||
char *h_name; /* official name of host */
|
||||
char *h_aliases[MAXALIASES]; /* alias list */
|
||||
int h_addrtype; /* host address type */
|
||||
int h_length; /* length of address */
|
||||
/* list of addresses from name server */
|
||||
struct in_addr h_addr_list[MAXADDRS];
|
||||
#define h_addr h_addr_list[0] /* address, for backward compatiblity */
|
||||
};
|
||||
|
||||
struct resinfo {
|
||||
char *ri_ptr;
|
||||
int ri_size;
|
||||
};
|
||||
|
||||
struct reslist {
|
||||
int re_id;
|
||||
char re_type;
|
||||
char re_retries;
|
||||
char re_resend; /* send flag. 0 == dont resend */
|
||||
char re_sends;
|
||||
char re_srch;
|
||||
int re_sent;
|
||||
u_long re_sentat;
|
||||
u_long re_timeout;
|
||||
struct in_addr re_addr;
|
||||
struct resinfo re_rinfo;
|
||||
struct hent re_he;
|
||||
struct reslist *re_next, *re_prev;
|
||||
char re_name[65];
|
||||
};
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(a,b) ((a) > (b) ? (b) : (a))
|
||||
#endif
|
5008
arlib/configure
vendored
5008
arlib/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,57 +0,0 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
AC_INIT
|
||||
AM_INIT_AUTOMAKE(arlib, 1.0)
|
||||
AC_CONFIG_SRCDIR([arlib.c])
|
||||
#AM_CONFIG_HEADER([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_RANLIB
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent, , , -lsocket))
|
||||
AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
|
||||
AC_CHECK_FUNC(res_init, , AC_CHECK_LIB(resolv, res_init))
|
||||
|
||||
# Checks for header files.
|
||||
dnl AC_CHECK_HEADERS([errno.h fcntl.h netdb.h netinet/in.h strings.h sys/socket.h sys/time.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
dnl AC_HEADER_TIME
|
||||
|
||||
AC_CHECK_TYPE(u_int32_t, ,
|
||||
[AC_DEFINE(u_int32_t, [unsigned int], [Unsigned 32-bit type])],[
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>])
|
||||
|
||||
AC_CACHE_CHECK([for name of NS address list], [ac_cv_var_ns_addr_list],
|
||||
[ans=''
|
||||
# Normal
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/nameser.h>
|
||||
#include <resolv.h>], [ return sizeof(_res.nsaddr_list);],
|
||||
[ans=nsaddr_list],
|
||||
[# Ultrix
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/nameser.h>
|
||||
#include <resolv.h>], [ return sizeof(_res.ns_list);],
|
||||
[ans=ns_list])])
|
||||
case "$ans" in
|
||||
'') AC_MSG_RESULT([???])
|
||||
AC_MSG_ERROR([Can't find nameserver address list in _res])
|
||||
;;
|
||||
esac
|
||||
ac_cv_var_ns_addr_list=$ans])
|
||||
AC_DEFINE_UNQUOTED(NS_ADDR_LIST, $ans, [The name of the NS address list in _res])
|
||||
|
||||
# Checks for library functions.
|
||||
dnl AC_HEADER_STDC
|
||||
dnl AC_FUNC_MALLOC
|
||||
dnl AC_CHECK_FUNCS([bzero inet_ntoa select socket])
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
530
arlib/depcomp
530
arlib/depcomp
@ -1,530 +0,0 @@
|
||||
#! /bin/sh
|
||||
# depcomp - compile a program generating dependencies as side-effects
|
||||
|
||||
scriptversion=2005-07-09.11
|
||||
|
||||
# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
|
||||
|
||||
case $1 in
|
||||
'')
|
||||
echo "$0: No command. Try \`$0 --help' for more information." 1>&2
|
||||
exit 1;
|
||||
;;
|
||||
-h | --h*)
|
||||
cat <<\EOF
|
||||
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
|
||||
|
||||
Run PROGRAMS ARGS to compile a file, generating dependencies
|
||||
as side-effects.
|
||||
|
||||
Environment variables:
|
||||
depmode Dependency tracking mode.
|
||||
source Source file read by `PROGRAMS ARGS'.
|
||||
object Object file output by `PROGRAMS ARGS'.
|
||||
DEPDIR directory where to store dependencies.
|
||||
depfile Dependency file to output.
|
||||
tmpdepfile Temporary file to use when outputing dependencies.
|
||||
libtool Whether libtool is used (yes/no).
|
||||
|
||||
Report bugs to <bug-automake@gnu.org>.
|
||||
EOF
|
||||
exit $?
|
||||
;;
|
||||
-v | --v*)
|
||||
echo "depcomp $scriptversion"
|
||||
exit $?
|
||||
;;
|
||||
esac
|
||||
|
||||
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
|
||||
echo "depcomp: Variables source, object and depmode must be set" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
|
||||
depfile=${depfile-`echo "$object" |
|
||||
sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
|
||||
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
|
||||
|
||||
rm -f "$tmpdepfile"
|
||||
|
||||
# Some modes work just like other modes, but use different flags. We
|
||||
# parameterize here, but still list the modes in the big case below,
|
||||
# to make depend.m4 easier to write. Note that we *cannot* use a case
|
||||
# here, because this file can only contain one case statement.
|
||||
if test "$depmode" = hp; then
|
||||
# HP compiler uses -M and no extra arg.
|
||||
gccflag=-M
|
||||
depmode=gcc
|
||||
fi
|
||||
|
||||
if test "$depmode" = dashXmstdout; then
|
||||
# This is just like dashmstdout with a different argument.
|
||||
dashmflag=-xM
|
||||
depmode=dashmstdout
|
||||
fi
|
||||
|
||||
case "$depmode" in
|
||||
gcc3)
|
||||
## gcc 3 implements dependency tracking that does exactly what
|
||||
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
|
||||
## it if -MD -MP comes after the -MF stuff. Hmm.
|
||||
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
mv "$tmpdepfile" "$depfile"
|
||||
;;
|
||||
|
||||
gcc)
|
||||
## There are various ways to get dependency output from gcc. Here's
|
||||
## why we pick this rather obscure method:
|
||||
## - Don't want to use -MD because we'd like the dependencies to end
|
||||
## up in a subdir. Having to rename by hand is ugly.
|
||||
## (We might end up doing this anyway to support other compilers.)
|
||||
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
|
||||
## -MM, not -M (despite what the docs say).
|
||||
## - Using -M directly means running the compiler twice (even worse
|
||||
## than renaming).
|
||||
if test -z "$gccflag"; then
|
||||
gccflag=-MD,
|
||||
fi
|
||||
"$@" -Wp,"$gccflag$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
|
||||
## The second -e expression handles DOS-style file names with drive letters.
|
||||
sed -e 's/^[^:]*: / /' \
|
||||
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
|
||||
## This next piece of magic avoids the `deleted header file' problem.
|
||||
## The problem is that when a header file which appears in a .P file
|
||||
## is deleted, the dependency causes make to die (because there is
|
||||
## typically no way to rebuild the header). We avoid this by adding
|
||||
## dummy dependencies for each header file. Too bad gcc doesn't do
|
||||
## this for us directly.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" |
|
||||
## Some versions of gcc put a space before the `:'. On the theory
|
||||
## that the space means something, we add a space to the output as
|
||||
## well.
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
hp)
|
||||
# This case exists only to let depend.m4 do its work. It works by
|
||||
# looking at the text of this script. This case will never be run,
|
||||
# since it is checked for above.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
sgi)
|
||||
if test "$libtool" = yes; then
|
||||
"$@" "-Wp,-MDupdate,$tmpdepfile"
|
||||
else
|
||||
"$@" -MDupdate "$tmpdepfile"
|
||||
fi
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
|
||||
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
|
||||
echo "$object : \\" > "$depfile"
|
||||
|
||||
# Clip off the initial element (the dependent). Don't try to be
|
||||
# clever and replace this with sed code, as IRIX sed won't handle
|
||||
# lines with more than a fixed number of characters (4096 in
|
||||
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
|
||||
# the IRIX cc adds comments like `#:fec' to the end of the
|
||||
# dependency line.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
|
||||
tr '
|
||||
' ' ' >> $depfile
|
||||
echo >> $depfile
|
||||
|
||||
# The second pass generates a dummy entry for each header file.
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" \
|
||||
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
|
||||
>> $depfile
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
aix)
|
||||
# The C for AIX Compiler uses -M and outputs the dependencies
|
||||
# in a .u file. In older versions, this file always lives in the
|
||||
# current directory. Also, the AIX compiler puts `$object:' at the
|
||||
# start of each line; $object doesn't have directory information.
|
||||
# Version 6 uses the directory in both cases.
|
||||
stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
|
||||
tmpdepfile="$stripped.u"
|
||||
if test "$libtool" = yes; then
|
||||
"$@" -Wc,-M
|
||||
else
|
||||
"$@" -M
|
||||
fi
|
||||
stat=$?
|
||||
|
||||
if test -f "$tmpdepfile"; then :
|
||||
else
|
||||
stripped=`echo "$stripped" | sed 's,^.*/,,'`
|
||||
tmpdepfile="$stripped.u"
|
||||
fi
|
||||
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
if test -f "$tmpdepfile"; then
|
||||
outname="$stripped.o"
|
||||
# Each line is of the form `foo.o: dependent.h'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
# The sourcefile does not contain any dependencies, so just
|
||||
# store a dummy comment line, to avoid errors with the Makefile
|
||||
# "include basename.Plo" scheme.
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
icc)
|
||||
# Intel's C compiler understands `-MD -MF file'. However on
|
||||
# icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
|
||||
# ICC 7.0 will fill foo.d with something like
|
||||
# foo.o: sub/foo.c
|
||||
# foo.o: sub/foo.h
|
||||
# which is wrong. We want:
|
||||
# sub/foo.o: sub/foo.c
|
||||
# sub/foo.o: sub/foo.h
|
||||
# sub/foo.c:
|
||||
# sub/foo.h:
|
||||
# ICC 7.1 will output
|
||||
# foo.o: sub/foo.c sub/foo.h
|
||||
# and will wrap long lines using \ :
|
||||
# foo.o: sub/foo.c ... \
|
||||
# sub/foo.h ... \
|
||||
# ...
|
||||
|
||||
"$@" -MD -MF "$tmpdepfile"
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile"
|
||||
exit $stat
|
||||
fi
|
||||
rm -f "$depfile"
|
||||
# Each line is of the form `foo.o: dependent.h',
|
||||
# or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
|
||||
# Do two passes, one to just change these to
|
||||
# `$object: dependent.h' and one to simply `dependent.h:'.
|
||||
sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
|
||||
# Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
# correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
|
||||
sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
tru64)
|
||||
# The Tru64 compiler uses -MD to generate dependencies as a side
|
||||
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
|
||||
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
|
||||
# dependencies in `foo.d' instead, so we check for that too.
|
||||
# Subdirectories are respected.
|
||||
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
|
||||
test "x$dir" = "x$object" && dir=
|
||||
base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
|
||||
|
||||
if test "$libtool" = yes; then
|
||||
# With Tru64 cc, shared objects can also be used to make a
|
||||
# static library. This mecanism is used in libtool 1.4 series to
|
||||
# handle both shared and static libraries in a single compilation.
|
||||
# With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
|
||||
#
|
||||
# With libtool 1.5 this exception was removed, and libtool now
|
||||
# generates 2 separate objects for the 2 libraries. These two
|
||||
# compilations output dependencies in in $dir.libs/$base.o.d and
|
||||
# in $dir$base.o.d. We have to check for both files, because
|
||||
# one of the two compilations can be disabled. We should prefer
|
||||
# $dir$base.o.d over $dir.libs/$base.o.d because the latter is
|
||||
# automatically cleaned when .libs/ is deleted, while ignoring
|
||||
# the former would cause a distcleancheck panic.
|
||||
tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
|
||||
tmpdepfile2=$dir$base.o.d # libtool 1.5
|
||||
tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
|
||||
tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
|
||||
"$@" -Wc,-MD
|
||||
else
|
||||
tmpdepfile1=$dir$base.o.d
|
||||
tmpdepfile2=$dir$base.d
|
||||
tmpdepfile3=$dir$base.d
|
||||
tmpdepfile4=$dir$base.d
|
||||
"$@" -MD
|
||||
fi
|
||||
|
||||
stat=$?
|
||||
if test $stat -eq 0; then :
|
||||
else
|
||||
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
exit $stat
|
||||
fi
|
||||
|
||||
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
|
||||
do
|
||||
test -f "$tmpdepfile" && break
|
||||
done
|
||||
if test -f "$tmpdepfile"; then
|
||||
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
|
||||
# That's a tab and a space in the [].
|
||||
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
|
||||
else
|
||||
echo "#dummy" > "$depfile"
|
||||
fi
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
#nosideeffect)
|
||||
# This comment above is used by automake to tell side-effect
|
||||
# dependency tracking mechanisms from slower ones.
|
||||
|
||||
dashmstdout)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
test -z "$dashmflag" && dashmflag=-M
|
||||
# Require at least two characters before searching for `:'
|
||||
# in the target name. This is to cope with DOS-style filenames:
|
||||
# a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
|
||||
"$@" $dashmflag |
|
||||
sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
tr ' ' '
|
||||
' < "$tmpdepfile" | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
dashXmstdout)
|
||||
# This case only exists to satisfy depend.m4. It is never actually
|
||||
# run, as this mode is specially recognized in the preamble.
|
||||
exit 1
|
||||
;;
|
||||
|
||||
makedepend)
|
||||
"$@" || exit $?
|
||||
# Remove any Libtool call
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
# X makedepend
|
||||
shift
|
||||
cleared=no
|
||||
for arg in "$@"; do
|
||||
case $cleared in
|
||||
no)
|
||||
set ""; shift
|
||||
cleared=yes ;;
|
||||
esac
|
||||
case "$arg" in
|
||||
-D*|-I*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
# Strip any option that makedepend may not understand. Remove
|
||||
# the object too, otherwise makedepend will parse it as a source file.
|
||||
-*|$object)
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"; shift ;;
|
||||
esac
|
||||
done
|
||||
obj_suffix="`echo $object | sed 's/^.*\././'`"
|
||||
touch "$tmpdepfile"
|
||||
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
|
||||
rm -f "$depfile"
|
||||
cat < "$tmpdepfile" > "$depfile"
|
||||
sed '1,2d' "$tmpdepfile" | tr ' ' '
|
||||
' | \
|
||||
## Some versions of the HPUX 10.20 sed can't process this invocation
|
||||
## correctly. Breaking it into two sed invocations is a workaround.
|
||||
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile" "$tmpdepfile".bak
|
||||
;;
|
||||
|
||||
cpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout.
|
||||
"$@" || exit $?
|
||||
|
||||
# Remove the call to Libtool.
|
||||
if test "$libtool" = yes; then
|
||||
while test $1 != '--mode=compile'; do
|
||||
shift
|
||||
done
|
||||
shift
|
||||
fi
|
||||
|
||||
# Remove `-o $object'.
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case $arg in
|
||||
-o)
|
||||
shift
|
||||
;;
|
||||
$object)
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift # fnord
|
||||
shift # $arg
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
"$@" -E |
|
||||
sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
|
||||
-e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
|
||||
sed '$ s: \\$::' > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
cat < "$tmpdepfile" >> "$depfile"
|
||||
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
msvisualcpp)
|
||||
# Important note: in order to support this mode, a compiler *must*
|
||||
# always write the preprocessed file to stdout, regardless of -o,
|
||||
# because we must use -o when running libtool.
|
||||
"$@" || exit $?
|
||||
IFS=" "
|
||||
for arg
|
||||
do
|
||||
case "$arg" in
|
||||
"-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
|
||||
set fnord "$@"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
set fnord "$@" "$arg"
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
"$@" -E |
|
||||
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
|
||||
rm -f "$depfile"
|
||||
echo "$object : \\" > "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
|
||||
echo " " >> "$depfile"
|
||||
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
|
||||
rm -f "$tmpdepfile"
|
||||
;;
|
||||
|
||||
none)
|
||||
exec "$@"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown depmode $depmode" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local Variables:
|
||||
# mode: shell-script
|
||||
# sh-indentation: 2
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
323
arlib/install-sh
323
arlib/install-sh
@ -1,323 +0,0 @@
|
||||
#!/bin/sh
|
||||
# install - install a program, script, or datafile
|
||||
|
||||
scriptversion=2005-05-14.22
|
||||
|
||||
# This originates from X11R5 (mit/util/scripts/install.sh), which was
|
||||
# later released in X11R6 (xc/config/util/install.sh) with the
|
||||
# following copyright and license.
|
||||
#
|
||||
# Copyright (C) 1994 X Consortium
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to
|
||||
# deal in the Software without restriction, including without limitation the
|
||||
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
# sell copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
|
||||
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Except as contained in this notice, the name of the X Consortium shall not
|
||||
# be used in advertising or otherwise to promote the sale, use or other deal-
|
||||
# ings in this Software without prior written authorization from the X Consor-
|
||||
# tium.
|
||||
#
|
||||
#
|
||||
# FSF changes to this file are in the public domain.
|
||||
#
|
||||
# Calling this script install-sh is preferred over install.sh, to prevent
|
||||
# `make' implicit rules from creating a file called install from it
|
||||
# when there is no Makefile.
|
||||
#
|
||||
# This script is compatible with the BSD install script, but was written
|
||||
# from scratch. It can only install one file at a time, a restriction
|
||||
# shared with many OS's install programs.
|
||||
|
||||
# set DOITPROG to echo to test this script
|
||||
|
||||
# Don't use :- since 4.3BSD and earlier shells don't like it.
|
||||
doit="${DOITPROG-}"
|
||||
|
||||
# put in absolute paths if you don't have them in your path; or use env. vars.
|
||||
|
||||
mvprog="${MVPROG-mv}"
|
||||
cpprog="${CPPROG-cp}"
|
||||
chmodprog="${CHMODPROG-chmod}"
|
||||
chownprog="${CHOWNPROG-chown}"
|
||||
chgrpprog="${CHGRPPROG-chgrp}"
|
||||
stripprog="${STRIPPROG-strip}"
|
||||
rmprog="${RMPROG-rm}"
|
||||
mkdirprog="${MKDIRPROG-mkdir}"
|
||||
|
||||
chmodcmd="$chmodprog 0755"
|
||||
chowncmd=
|
||||
chgrpcmd=
|
||||
stripcmd=
|
||||
rmcmd="$rmprog -f"
|
||||
mvcmd="$mvprog"
|
||||
src=
|
||||
dst=
|
||||
dir_arg=
|
||||
dstarg=
|
||||
no_target_directory=
|
||||
|
||||
usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
|
||||
or: $0 [OPTION]... SRCFILES... DIRECTORY
|
||||
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
|
||||
or: $0 [OPTION]... -d DIRECTORIES...
|
||||
|
||||
In the 1st form, copy SRCFILE to DSTFILE.
|
||||
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
|
||||
In the 4th, create DIRECTORIES.
|
||||
|
||||
Options:
|
||||
-c (ignored)
|
||||
-d create directories instead of installing files.
|
||||
-g GROUP $chgrpprog installed files to GROUP.
|
||||
-m MODE $chmodprog installed files to MODE.
|
||||
-o USER $chownprog installed files to USER.
|
||||
-s $stripprog installed files.
|
||||
-t DIRECTORY install into DIRECTORY.
|
||||
-T report an error if DSTFILE is a directory.
|
||||
--help display this help and exit.
|
||||
--version display version info and exit.
|
||||
|
||||
Environment variables override the default commands:
|
||||
CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
|
||||
"
|
||||
|
||||
while test -n "$1"; do
|
||||
case $1 in
|
||||
-c) shift
|
||||
continue;;
|
||||
|
||||
-d) dir_arg=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-g) chgrpcmd="$chgrpprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--help) echo "$usage"; exit $?;;
|
||||
|
||||
-m) chmodcmd="$chmodprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-o) chowncmd="$chownprog $2"
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-s) stripcmd=$stripprog
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-t) dstarg=$2
|
||||
shift
|
||||
shift
|
||||
continue;;
|
||||
|
||||
-T) no_target_directory=true
|
||||
shift
|
||||
continue;;
|
||||
|
||||
--version) echo "$0 $scriptversion"; exit $?;;
|
||||
|
||||
*) # When -d is used, all remaining arguments are directories to create.
|
||||
# When -t is used, the destination is already specified.
|
||||
test -n "$dir_arg$dstarg" && break
|
||||
# Otherwise, the last argument is the destination. Remove it from $@.
|
||||
for arg
|
||||
do
|
||||
if test -n "$dstarg"; then
|
||||
# $@ is not empty: it contains at least $arg.
|
||||
set fnord "$@" "$dstarg"
|
||||
shift # fnord
|
||||
fi
|
||||
shift # arg
|
||||
dstarg=$arg
|
||||
done
|
||||
break;;
|
||||
esac
|
||||
done
|
||||
|
||||
if test -z "$1"; then
|
||||
if test -z "$dir_arg"; then
|
||||
echo "$0: no input file specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
# It's OK to call `install-sh -d' without argument.
|
||||
# This can happen when creating conditional directories.
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for src
|
||||
do
|
||||
# Protect names starting with `-'.
|
||||
case $src in
|
||||
-*) src=./$src ;;
|
||||
esac
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
dst=$src
|
||||
src=
|
||||
|
||||
if test -d "$dst"; then
|
||||
mkdircmd=:
|
||||
chmodcmd=
|
||||
else
|
||||
mkdircmd=$mkdirprog
|
||||
fi
|
||||
else
|
||||
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
|
||||
# might cause directories to be created, which would be especially bad
|
||||
# if $src (and thus $dsttmp) contains '*'.
|
||||
if test ! -f "$src" && test ! -d "$src"; then
|
||||
echo "$0: $src does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -z "$dstarg"; then
|
||||
echo "$0: no destination specified." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dst=$dstarg
|
||||
# Protect names starting with `-'.
|
||||
case $dst in
|
||||
-*) dst=./$dst ;;
|
||||
esac
|
||||
|
||||
# If destination is a directory, append the input filename; won't work
|
||||
# if double slashes aren't ignored.
|
||||
if test -d "$dst"; then
|
||||
if test -n "$no_target_directory"; then
|
||||
echo "$0: $dstarg: Is a directory" >&2
|
||||
exit 1
|
||||
fi
|
||||
dst=$dst/`basename "$src"`
|
||||
fi
|
||||
fi
|
||||
|
||||
# This sed command emulates the dirname command.
|
||||
dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
|
||||
|
||||
# Make sure that the destination directory exists.
|
||||
|
||||
# Skip lots of stat calls in the usual case.
|
||||
if test ! -d "$dstdir"; then
|
||||
defaultIFS='
|
||||
'
|
||||
IFS="${IFS-$defaultIFS}"
|
||||
|
||||
oIFS=$IFS
|
||||
# Some sh's can't handle IFS=/ for some reason.
|
||||
IFS='%'
|
||||
set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
|
||||
shift
|
||||
IFS=$oIFS
|
||||
|
||||
pathcomp=
|
||||
|
||||
while test $# -ne 0 ; do
|
||||
pathcomp=$pathcomp$1
|
||||
shift
|
||||
if test ! -d "$pathcomp"; then
|
||||
$mkdirprog "$pathcomp"
|
||||
# mkdir can fail with a `File exist' error in case several
|
||||
# install-sh are creating the directory concurrently. This
|
||||
# is OK.
|
||||
test -d "$pathcomp" || exit
|
||||
fi
|
||||
pathcomp=$pathcomp/
|
||||
done
|
||||
fi
|
||||
|
||||
if test -n "$dir_arg"; then
|
||||
$doit $mkdircmd "$dst" \
|
||||
&& { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
|
||||
|
||||
else
|
||||
dstfile=`basename "$dst"`
|
||||
|
||||
# Make a couple of temp file names in the proper directory.
|
||||
dsttmp=$dstdir/_inst.$$_
|
||||
rmtmp=$dstdir/_rm.$$_
|
||||
|
||||
# Trap to clean up those temp files at exit.
|
||||
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
|
||||
trap '(exit $?); exit' 1 2 13 15
|
||||
|
||||
# Copy the file name to the temp name.
|
||||
$doit $cpprog "$src" "$dsttmp" &&
|
||||
|
||||
# and set any options; do chmod last to preserve setuid bits.
|
||||
#
|
||||
# If any of these fail, we abort the whole thing. If we want to
|
||||
# ignore errors from any of these, just make sure not to ignore
|
||||
# errors from the above "$doit $cpprog $src $dsttmp" command.
|
||||
#
|
||||
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
|
||||
&& { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
|
||||
&& { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
|
||||
&& { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
{ $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| {
|
||||
# The rename failed, perhaps because mv can't rename something else
|
||||
# to itself, or perhaps because mv is so ancient that it does not
|
||||
# support -f.
|
||||
|
||||
# Now remove or move aside any old file at destination location.
|
||||
# We try this two ways since rm can't unlink itself on some
|
||||
# systems and the destination file might be busy for other
|
||||
# reasons. In this case, the final cleanup might fail but the new
|
||||
# file should still install successfully.
|
||||
{
|
||||
if test -f "$dstdir/$dstfile"; then
|
||||
$doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
|
||||
|| $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
|
||||
|| {
|
||||
echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
|
||||
(exit 1); exit 1
|
||||
}
|
||||
else
|
||||
:
|
||||
fi
|
||||
} &&
|
||||
|
||||
# Now rename the file to the real destination.
|
||||
$doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
|
||||
}
|
||||
}
|
||||
fi || { (exit 1); exit 1; }
|
||||
done
|
||||
|
||||
# The final little trick to "correctly" pass the exit status to the exit trap.
|
||||
{
|
||||
(exit 0); exit 0
|
||||
}
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
360
arlib/missing
360
arlib/missing
@ -1,360 +0,0 @@
|
||||
#! /bin/sh
|
||||
# Common stub for a few missing GNU programs while installing.
|
||||
|
||||
scriptversion=2005-06-08.21
|
||||
|
||||
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
# 02110-1301, USA.
|
||||
|
||||
# As a special exception to the GNU General Public License, if you
|
||||
# distribute this file as part of a program that contains a
|
||||
# configuration script generated by Autoconf, you may include it under
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
if test $# -eq 0; then
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
run=:
|
||||
|
||||
# In the cases where this matters, `missing' is being run in the
|
||||
# srcdir already.
|
||||
if test -f configure.ac; then
|
||||
configure_ac=configure.ac
|
||||
else
|
||||
configure_ac=configure.in
|
||||
fi
|
||||
|
||||
msg="missing on your system"
|
||||
|
||||
case "$1" in
|
||||
--run)
|
||||
# Try to run requested program, and just exit if it succeeds.
|
||||
run=
|
||||
shift
|
||||
"$@" && exit 0
|
||||
# Exit code 63 means version mismatch. This often happens
|
||||
# when the user try to use an ancient version of a tool on
|
||||
# a file that requires a minimum version. In this case we
|
||||
# we should proceed has if the program had been absent, or
|
||||
# if --run hadn't been passed.
|
||||
if test $? = 63; then
|
||||
run=:
|
||||
msg="probably too old"
|
||||
fi
|
||||
;;
|
||||
|
||||
-h|--h|--he|--hel|--help)
|
||||
echo "\
|
||||
$0 [OPTION]... PROGRAM [ARGUMENT]...
|
||||
|
||||
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
|
||||
error status if there is no known handling for PROGRAM.
|
||||
|
||||
Options:
|
||||
-h, --help display this help and exit
|
||||
-v, --version output version information and exit
|
||||
--run try to run the given command, and emulate it if it fails
|
||||
|
||||
Supported PROGRAM values:
|
||||
aclocal touch file \`aclocal.m4'
|
||||
autoconf touch file \`configure'
|
||||
autoheader touch file \`config.h.in'
|
||||
automake touch all \`Makefile.in' files
|
||||
bison create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
flex create \`lex.yy.c', if possible, from existing .c
|
||||
help2man touch the output file
|
||||
lex create \`lex.yy.c', if possible, from existing .c
|
||||
makeinfo touch the output file
|
||||
tar try tar, gnutar, gtar, then tar without non-portable flags
|
||||
yacc create \`y.tab.[ch]', if possible, from existing .[ch]
|
||||
|
||||
Send bug reports to <bug-automake@gnu.org>."
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
|
||||
echo "missing $scriptversion (GNU Automake)"
|
||||
exit $?
|
||||
;;
|
||||
|
||||
-*)
|
||||
echo 1>&2 "$0: Unknown \`$1' option"
|
||||
echo 1>&2 "Try \`$0 --help' for more information"
|
||||
exit 1
|
||||
;;
|
||||
|
||||
esac
|
||||
|
||||
# Now exit if we have it, but it failed. Also exit now if we
|
||||
# don't have it and --version was passed (most likely to detect
|
||||
# the program).
|
||||
case "$1" in
|
||||
lex|yacc)
|
||||
# Not GNU programs, they don't have --version.
|
||||
;;
|
||||
|
||||
tar)
|
||||
if test -n "$run"; then
|
||||
echo 1>&2 "ERROR: \`tar' requires --run"
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
|
||||
# We have it, but it failed.
|
||||
exit 1
|
||||
elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
|
||||
# Could not run --version or --help. This is probably someone
|
||||
# running `$TOOL --version' or `$TOOL --help' to check whether
|
||||
# $TOOL exists and not knowing $TOOL uses missing.
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# If it does not exist, or fails to run (possibly an outdated version),
|
||||
# try to emulate it.
|
||||
case "$1" in
|
||||
aclocal*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
|
||||
to install the \`Automake' and \`Perl' packages. Grab them from
|
||||
any GNU archive site."
|
||||
touch aclocal.m4
|
||||
;;
|
||||
|
||||
autoconf)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`${configure_ac}'. You might want to install the
|
||||
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
|
||||
archive site."
|
||||
touch configure
|
||||
;;
|
||||
|
||||
autoheader)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`acconfig.h' or \`${configure_ac}'. You might want
|
||||
to install the \`Autoconf' and \`GNU m4' packages. Grab them
|
||||
from any GNU archive site."
|
||||
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
|
||||
test -z "$files" && files="config.h"
|
||||
touch_files=
|
||||
for f in $files; do
|
||||
case "$f" in
|
||||
*:*) touch_files="$touch_files "`echo "$f" |
|
||||
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
|
||||
*) touch_files="$touch_files $f.in";;
|
||||
esac
|
||||
done
|
||||
touch $touch_files
|
||||
;;
|
||||
|
||||
automake*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
|
||||
You might want to install the \`Automake' and \`Perl' packages.
|
||||
Grab them from any GNU archive site."
|
||||
find . -type f -name Makefile.am -print |
|
||||
sed 's/\.am$/.in/' |
|
||||
while read f; do touch "$f"; done
|
||||
;;
|
||||
|
||||
autom4te)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, but is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them.
|
||||
You can get \`$1' as part of \`Autoconf' from any GNU
|
||||
archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
|
||||
test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
|
||||
if test -f "$file"; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo "#! /bin/sh"
|
||||
echo "# Created by GNU Automake missing as a replacement of"
|
||||
echo "# $ $@"
|
||||
echo "exit 0"
|
||||
chmod +x $file
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
bison|yacc)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' $msg. You should only need it if
|
||||
you modified a \`.y' file. You may need the \`Bison' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Bison' from any GNU archive site."
|
||||
rm -f y.tab.c y.tab.h
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.y)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.c
|
||||
fi
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" y.tab.h
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f y.tab.h ]; then
|
||||
echo >y.tab.h
|
||||
fi
|
||||
if [ ! -f y.tab.c ]; then
|
||||
echo 'main() { return 0; }' >y.tab.c
|
||||
fi
|
||||
;;
|
||||
|
||||
lex|flex)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.l' file. You may need the \`Flex' package
|
||||
in order for those modifications to take effect. You can get
|
||||
\`Flex' from any GNU archive site."
|
||||
rm -f lex.yy.c
|
||||
if [ $# -ne 1 ]; then
|
||||
eval LASTARG="\${$#}"
|
||||
case "$LASTARG" in
|
||||
*.l)
|
||||
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
|
||||
if [ -f "$SRCFILE" ]; then
|
||||
cp "$SRCFILE" lex.yy.c
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
if [ ! -f lex.yy.c ]; then
|
||||
echo 'main() { return 0; }' >lex.yy.c
|
||||
fi
|
||||
;;
|
||||
|
||||
help2man)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a dependency of a manual page. You may need the
|
||||
\`Help2man' package in order for those modifications to take
|
||||
effect. You can get \`Help2man' from any GNU archive site."
|
||||
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
|
||||
fi
|
||||
if [ -f "$file" ]; then
|
||||
touch $file
|
||||
else
|
||||
test -z "$file" || exec >$file
|
||||
echo ".ab help2man is required to generate this page"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
makeinfo)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is $msg. You should only need it if
|
||||
you modified a \`.texi' or \`.texinfo' file, or any other file
|
||||
indirectly affecting the aspect of the manual. The spurious
|
||||
call might also be the consequence of using a buggy \`make' (AIX,
|
||||
DU, IRIX). You might want to install the \`Texinfo' package or
|
||||
the \`GNU make' package. Grab either from any GNU archive site."
|
||||
# The file to touch is that specified with -o ...
|
||||
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
|
||||
if test -z "$file"; then
|
||||
# ... or it is the one specified with @setfilename ...
|
||||
infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
|
||||
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
|
||||
# ... or it is derived from the source name (dir/f.texi becomes f.info)
|
||||
test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
|
||||
fi
|
||||
# If the file does not exist, the user really needs makeinfo;
|
||||
# let's fail without touching anything.
|
||||
test -f $file || exit 1
|
||||
touch $file
|
||||
;;
|
||||
|
||||
tar)
|
||||
shift
|
||||
|
||||
# We have already tried tar in the generic part.
|
||||
# Look for gnutar/gtar before invocation to avoid ugly error
|
||||
# messages.
|
||||
if (gnutar --version > /dev/null 2>&1); then
|
||||
gnutar "$@" && exit 0
|
||||
fi
|
||||
if (gtar --version > /dev/null 2>&1); then
|
||||
gtar "$@" && exit 0
|
||||
fi
|
||||
firstarg="$1"
|
||||
if shift; then
|
||||
case "$firstarg" in
|
||||
*o*)
|
||||
firstarg=`echo "$firstarg" | sed s/o//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
case "$firstarg" in
|
||||
*h*)
|
||||
firstarg=`echo "$firstarg" | sed s/h//`
|
||||
tar "$firstarg" "$@" && exit 0
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo 1>&2 "\
|
||||
WARNING: I can't seem to be able to run \`tar' with the given arguments.
|
||||
You may want to install GNU tar or Free paxutils, or check the
|
||||
command line arguments."
|
||||
exit 1
|
||||
;;
|
||||
|
||||
*)
|
||||
echo 1>&2 "\
|
||||
WARNING: \`$1' is needed, and is $msg.
|
||||
You might have modified some files without having the
|
||||
proper tools for further handling them. Check the \`README' file,
|
||||
it often tells you about the needed prerequisites for installing
|
||||
this package. You may also peek at any GNU archive site, in case
|
||||
some other package would contain this missing \`$1' program."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
||||
# Local variables:
|
||||
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
||||
# time-stamp-start: "scriptversion="
|
||||
# time-stamp-format: "%:y-%02m-%02d.%02H"
|
||||
# time-stamp-end: "$"
|
||||
# End:
|
143
arlib/sample.c
143
arlib/sample.c
@ -1,143 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include "arlib.h"
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)sample.c 1.1 12/21/92 (C)1992 Darren Reed. ASYNC DNS";
|
||||
#endif
|
||||
|
||||
char line[512];
|
||||
|
||||
int lookup = 0, seq = 0;
|
||||
long expire = 0;
|
||||
|
||||
main()
|
||||
{
|
||||
struct in_addr adr;
|
||||
struct timeval tv2;
|
||||
fd_set rd;
|
||||
long now;
|
||||
char *s;
|
||||
int afd, nfd, pid = getpid(), del;
|
||||
|
||||
afd = ar_init(ARES_INITLIST|ARES_CALLINIT|ARES_INITSOCK);
|
||||
|
||||
(void)printf("afd = %d pid = %d\n",afd, pid);
|
||||
|
||||
while (1)
|
||||
{
|
||||
(void)printf("Host =>");
|
||||
(void)fflush(stdout);
|
||||
*line = '\0';
|
||||
FD_ZERO(&rd);
|
||||
FD_SET(0,&rd);
|
||||
FD_SET(afd,&rd);
|
||||
now = time(NULL);
|
||||
if (expire >= now)
|
||||
{
|
||||
tv2.tv_usec = 0;
|
||||
tv2.tv_sec = expire - now;
|
||||
nfd = select(FD_SETSIZE, &rd, NULL, NULL, &tv2);
|
||||
}
|
||||
else
|
||||
nfd = select(FD_SETSIZE, &rd, NULL, NULL, NULL);
|
||||
|
||||
if (FD_ISSET(0, &rd))
|
||||
{
|
||||
if (!fgets(line, sizeof(line) - 1, stdin))
|
||||
exit(0);
|
||||
if (s = index(line, '\n'))
|
||||
*s = '\0';
|
||||
}
|
||||
|
||||
if (isalpha(*line))
|
||||
{
|
||||
(void)printf("Asking about [%s] #%d.\n",line, ++seq);
|
||||
(void)ar_gethostbyname(line, (char *)&seq,
|
||||
sizeof(seq));
|
||||
lookup++;
|
||||
}
|
||||
else if (isdigit(*line))
|
||||
{
|
||||
(void)printf("Asking about IP#[%s] #%d.\n",
|
||||
line, ++seq);
|
||||
adr.s_addr = inet_addr(line);
|
||||
(void)ar_gethostbyaddr(&adr, (char *)&seq,
|
||||
sizeof(seq));
|
||||
lookup++;
|
||||
}
|
||||
if (lookup)
|
||||
(void)printf("Waiting for answer:\n");
|
||||
if (FD_ISSET(afd, &rd))
|
||||
(void)waitonlookup(afd);
|
||||
del = 0;
|
||||
expire = ar_timeout(time(NULL), &del, sizeof(del));
|
||||
if (del)
|
||||
{
|
||||
(void)fprintf(stderr,"#%d failed\n", del);
|
||||
lookup--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
printhostent(hp)
|
||||
struct hostent *hp;
|
||||
{
|
||||
struct in_addr ip;
|
||||
int i;
|
||||
|
||||
(void)printf("hname = %s\n", hp->h_name);
|
||||
for (i = 0; hp->h_aliases[i]; i++)
|
||||
(void)printf("alias %d = %s\n", i+1, hp->h_aliases[i]);
|
||||
for (i = 0; hp->h_addr_list[i]; i++)
|
||||
{
|
||||
bcopy(hp->h_addr_list[i], (char *)&ip, sizeof(ip));
|
||||
(void)printf("IP# %d = %s\n", i+1, inet_ntoa(ip));
|
||||
}
|
||||
}
|
||||
|
||||
int waitonlookup(afd)
|
||||
int afd;
|
||||
{
|
||||
struct timeval delay;
|
||||
struct hostent *hp;
|
||||
fd_set rd;
|
||||
long now;
|
||||
int nfd, del;
|
||||
|
||||
waitloop:
|
||||
FD_ZERO(&rd);
|
||||
now = time(NULL);
|
||||
if (expire >= now)
|
||||
delay.tv_sec = expire - now;
|
||||
else
|
||||
delay.tv_sec = 1;
|
||||
delay.tv_usec = 0;
|
||||
FD_SET(afd, &rd);
|
||||
FD_SET(0, &rd);
|
||||
|
||||
nfd = select(FD_SETSIZE, &rd, 0, 0, &delay);
|
||||
if (nfd == 0)
|
||||
return 0;
|
||||
else if (FD_ISSET(afd, &rd))
|
||||
{
|
||||
del = 0;
|
||||
hp = ar_answer(&del, sizeof(del));
|
||||
|
||||
(void)printf("hp=%x seq=%d\n",hp,del);
|
||||
if (hp)
|
||||
{
|
||||
(void)printhostent(hp);
|
||||
if (!--lookup)
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if (FD_ISSET(0, &rd))
|
||||
return 2;
|
||||
return 0;
|
||||
}
|
10
bincheck.mf
10
bincheck.mf
@ -3,11 +3,11 @@
|
||||
# subdir to warn folks if there is another version there.
|
||||
|
||||
install-exec-hook:
|
||||
@case ${BINSUBDIR} in \
|
||||
bin) ODIR=${exec_prefix}/sbin ;; \
|
||||
sbin) ODIR=${exec_prefix}/bin ;; \
|
||||
esac; \
|
||||
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
|
||||
@case ${BINSUBDIR} in \
|
||||
bin) ODIR=${sbindir} ;; \
|
||||
sbin) ODIR=${bindir} ;; \
|
||||
esac; \
|
||||
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
|
||||
|| for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do \
|
||||
test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!"; \
|
||||
done
|
||||
|
35
bootstrap
35
bootstrap
@ -3,6 +3,8 @@
|
||||
# This "bootstrap" script performs various pre-autoreconf actions
|
||||
# that are required after pulling fresh sources from the repository.
|
||||
#
|
||||
# --force is supported and will be passed to autoreconf
|
||||
#
|
||||
# NOTE: THE NTP VERSION NUMBER COMES FROM packageinfo.sh
|
||||
#
|
||||
# all other instances of it anywhere in the source base have propagated
|
||||
@ -27,7 +29,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
scripts/genver
|
||||
scripts/genver || { echo scripts/genver failed ; exit 1; }
|
||||
|
||||
# autoreconf says:
|
||||
# The environment variables AUTOCONF, AUTOHEADER, AUTOMAKE, ACLOCAL,
|
||||
@ -78,9 +80,9 @@ prog_opt_files=`grep -l '^prog.name' $def_files`
|
||||
|
||||
## Non-AutoGen stuff
|
||||
|
||||
for i in autogen-version.def version.def
|
||||
for i in autogen-version.def version.def version.texi
|
||||
do
|
||||
cmp -s include/$i sntp/$i || cp -p include/$i sntp/$i
|
||||
cmp -s include/$i sntp/$i || cp -fp include/$i sntp/$i
|
||||
done
|
||||
|
||||
# touch the stuff generated by the opt files
|
||||
@ -89,27 +91,44 @@ for f in ${prog_opt_files}
|
||||
do
|
||||
f=`echo $f | sed -e 's/-opts.def//'`
|
||||
l=
|
||||
lh=
|
||||
for i in `ls -1 $f*`
|
||||
do
|
||||
case "$i" in
|
||||
*.c|*.h|*.1|*.texi|*.menu)
|
||||
l="$l $i"
|
||||
;;
|
||||
*.html)
|
||||
lh="$lh $i"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
case "$l" in
|
||||
'') ;;
|
||||
*) touch $l
|
||||
case "$l:$lh" in
|
||||
':') ;;
|
||||
*) touch $l $lh
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
## EOAutoGen stuff
|
||||
|
||||
# Yacc/bison files ntp_parser.[ch] so we don't require the tool if
|
||||
# ntp_parser.y hasn't been updated. At the same time, keyword-gen-utd
|
||||
# and ntp_keyword.h which are derived from ntp_parser.h and
|
||||
# keyword-gen.c.
|
||||
|
||||
touch ntpd/ntp_parser.[ch] ntpd/keyword-gen-utd ntpd/ntp_keyword.h
|
||||
|
||||
cp bincheck.mf sntp/
|
||||
cp depsver.mf sntp/
|
||||
|
||||
${AUTORECONF} -i -v
|
||||
${AUTORECONF} -i -v --no-recursive "$@"
|
||||
|
||||
# DH: 20101120: We are back to a single copy of libopts, and
|
||||
# once again it seems we need to run autoreconf in sntp after
|
||||
# the top-level run to get a correct sntp/libopts/Makefile.in.
|
||||
# To reduce redundancy, the top-level autoreconf uses --no-recursive.
|
||||
#
|
||||
# HMS: 20060618: Now that we use separate copies of libopts
|
||||
# we should only need the previous line.
|
||||
#
|
||||
@ -117,4 +136,4 @@ ${AUTORECONF} -i -v
|
||||
## we get the correct srcdir path in sntp/libopts/Makefile.in
|
||||
#rm -rf sntp/autom4te.cache
|
||||
#
|
||||
#(cd sntp && ${AUTORECONF} -i -v)
|
||||
(cd sntp && ${AUTORECONF} -i -v "$@")
|
||||
|
143
build
143
build
@ -18,8 +18,8 @@ case "$1" in
|
||||
echo "This is <`pwd`>"
|
||||
echo "SIG is <$SIG>"
|
||||
echo "KEY is <$KEY>"
|
||||
exit 1
|
||||
;;
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
@ -30,26 +30,55 @@ esac
|
||||
#set -e
|
||||
#set -x
|
||||
|
||||
CVO=`./config.guess`
|
||||
# scripts/cvo.sh invokes config.guess, and we want it to use the copy
|
||||
# in the top directory (alongside build) if there's not another
|
||||
# config.guess earlier on the path, so we invoke it using env to append
|
||||
# . to the PATH.
|
||||
|
||||
CVO=`env PATH="$PATH:." scripts/cvo.sh @cvo@`
|
||||
case "$CVO" in
|
||||
*-*-*-*) echo "scripts/cvo.sh returned <$CVO>, which makes no sense to me."
|
||||
exit 1
|
||||
;;
|
||||
*-*-*) ;;
|
||||
*) echo "config.guess returned <$CVO>, which makes no sense to me."
|
||||
*) echo "scripts/cvo.sh returned <$CVO>, which makes no sense to me."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$IAM" in
|
||||
*.udel.edu)
|
||||
BDIR=A.$MYNAME
|
||||
CONFIG_ARGS="$CONFIG_ARGS --enable-local-libopts"
|
||||
case "$CVO" in
|
||||
*-*-ultrix*)
|
||||
CONFIG_ARGS="$CONFIG_ARGS --with-libregex=/usr/local"
|
||||
case "$NTP_BDIR" in
|
||||
'')
|
||||
case "$IAM" in
|
||||
*.ntp.org)
|
||||
NTP_BDIR=host
|
||||
;;
|
||||
esac
|
||||
*.udel.edu)
|
||||
NTP_BDIR=host
|
||||
# HMS: --enable-local-libopts is the default now...
|
||||
#CONFIG_ARGS="$CONFIG_ARGS --enable-local-libopts"
|
||||
case "$CVO" in
|
||||
*-*-ultrix*)
|
||||
CONFIG_ARGS="$CONFIG_ARGS --with-libregex=/usr/local"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
NTP_BDIR=cvo
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$NTP_BDIR" in
|
||||
host)
|
||||
BASEDIR=A.$MYNAME
|
||||
;;
|
||||
cvo)
|
||||
BASEDIR=A.$CVO
|
||||
;;
|
||||
*)
|
||||
BDIR=A.$CVO
|
||||
echo "build: NTP_BDIR must be either 'cvo' or 'host'!" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
@ -76,15 +105,16 @@ case "$CONFIG_ARGS" in
|
||||
;;
|
||||
esac
|
||||
|
||||
CCSUF=""
|
||||
|
||||
case "$CC" in
|
||||
'') ;;
|
||||
*) CCSUF="-$CC"
|
||||
'')
|
||||
CCSUF=""
|
||||
;;
|
||||
*)
|
||||
CCSUF="-`echo $CC | sed -e 's: :_:g' -e's:/:+:g'`"
|
||||
;;
|
||||
esac
|
||||
|
||||
BDIR="$BDIR$KEYSUF$CCSUF"
|
||||
BDIR="$BASEDIR$KEYSUF$CCSUF"
|
||||
|
||||
[ -d "$BDIR" ] || mkdir $BDIR
|
||||
[ -f "$BDIR/.buildcvo" ] || echo $CVO > $BDIR/.buildcvo
|
||||
@ -94,29 +124,66 @@ BDIR="$BDIR$KEYSUF$CCSUF"
|
||||
cd $BDIR
|
||||
|
||||
#
|
||||
# make sure we have a nice that works,
|
||||
# Make sure we have a nice that works.
|
||||
# To disable use of nice, setenv NO_NICE_BUILD=1
|
||||
#
|
||||
nice true && NICEB=nice
|
||||
nice true || NICEB=./.nicebuild-$MYNAME-$SIG && (
|
||||
cat > .nicebuild-$MYNAME-$SIG <<UNLYKUHLY
|
||||
#! /bin/sh
|
||||
shift
|
||||
\$*
|
||||
UNLYKUHLY
|
||||
chmod +x .nicebuild-$MYNAME-$SIG
|
||||
)
|
||||
NICEB=
|
||||
[ "$NO_NICE_BUILD" != "1" ] && nice true && NICEB=nice
|
||||
[ -z "$NICEB" ] && {
|
||||
NICEB="./.nicebuild-$MYNAME-$SIG"
|
||||
cat > $NICEB <<-HEREDOC
|
||||
#! /bin/sh
|
||||
shift
|
||||
\$*
|
||||
HEREDOC
|
||||
chmod +x $NICEB
|
||||
}
|
||||
|
||||
#
|
||||
# Find a test which supports -nt, unlike Solaris /bin/sh builtin.
|
||||
#
|
||||
TEST="${TEST-}"
|
||||
if [ -z "$TEST" ] ; then
|
||||
for try in test /bin/test /usr/bin/test ; do
|
||||
case `$try config.status -nt ../configure 2>&1` in
|
||||
'')
|
||||
TEST="$try"
|
||||
# echo "Using $TEST"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
if [ -z "$TEST" ] ; then
|
||||
echo "build: need help finding test binary" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
(
|
||||
[ -f config.status ] || $NICEB -7 ../configure --config-cache \
|
||||
$CONFIG_ARGS
|
||||
CONFIGURE="../configure --cache-file=../config.cache-$IAM$CCSUF $CONFIG_ARGS"
|
||||
|
||||
$NICEB -5 ./config.status
|
||||
( # This sequence of commands is logged to make.log.
|
||||
# If config.status is newer than ../configure, and the same
|
||||
# is true for sntp, we do not need to re-run configure.
|
||||
# Solaris /bin/sh doesn't grok -nt.
|
||||
|
||||
case "$MAKE" in
|
||||
'') $NICEB -14 make && $NICEB -10 make check
|
||||
;;
|
||||
*) $NICEB -14 $MAKE && $NICEB -10 $MAKE check
|
||||
;;
|
||||
esac
|
||||
( "$TEST" config.status -nt ../configure &&
|
||||
$TEST sntp/config.status -nt ../sntp/configure ) ||
|
||||
"$NICEB" -7 $CONFIGURE
|
||||
"$NICEB" -5 ./config.status &&
|
||||
( cd sntp && "$NICEB" -5 ./config.status ) &&
|
||||
"$NICEB" -14 ${MAKE-make} &&
|
||||
"$NICEB" -11 ${MAKE-make} check
|
||||
) > $LOGF 2>&1
|
||||
|
||||
EXITCODE=$?
|
||||
|
||||
# clean up if we made a dummy nice script
|
||||
case "$NICEB" in
|
||||
nice)
|
||||
;;
|
||||
*)
|
||||
rm "$NICEB"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $EXITCODE
|
||||
|
@ -1,5 +1,5 @@
|
||||
#AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
|
||||
AUTOMAKE_OPTIONS = ../util/ansi2knr
|
||||
AUTOMAKE_OPTIONS =
|
||||
noinst_PROGRAMS = @PROPDELAY@ @CHUTEST@ @CLKTEST@
|
||||
EXTRA_PROGRAMS = propdelay chutest clktest
|
||||
|
||||
@ -10,9 +10,13 @@ chutest_LDADD = ../libntp/libntp.a
|
||||
clktest_LDADD = ../libntp/libntp.a
|
||||
ETAGS_ARGS = Makefile.am
|
||||
#EXTRA_DIST = TAGS
|
||||
BUILT_SOURCES =
|
||||
CLEANFILES =
|
||||
|
||||
# clktest-opts.def wants ../include/copyright.def ../include/homerc.def
|
||||
|
||||
chutest$(EXEEXT): ../libntp/libntp.a
|
||||
|
||||
clktest$(EXEEXT): ../libntp/libntp.a
|
||||
|
||||
include $(top_srcdir)/depsver.mf
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Makefile.in generated by automake 1.11 from Makefile.am.
|
||||
# Makefile.in generated by automake 1.11.1 from Makefile.am.
|
||||
# @configure_input@
|
||||
|
||||
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
||||
@ -34,14 +34,20 @@ PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
build_triplet = @build@
|
||||
host_triplet = @host@
|
||||
ANSI2KNR = ../util/ansi2knr
|
||||
EXTRA_PROGRAMS = propdelay$(EXEEXT) chutest$(EXEEXT) clktest$(EXEEXT)
|
||||
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
|
||||
$(top_srcdir)/depsver.mf
|
||||
subdir = clockstuff
|
||||
DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
am__aclocal_m4_deps = $(top_srcdir)/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 \
|
||||
$(top_srcdir)/m4/hs_ulong_const.m4 \
|
||||
am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \
|
||||
$(top_srcdir)/m4/define_dir.m4 $(top_srcdir)/m4/libtool.m4 \
|
||||
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
|
||||
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
|
||||
$(top_srcdir)/m4/ntp_cacheversion.m4 \
|
||||
$(top_srcdir)/m4/ntp_dir_sep.m4 \
|
||||
$(top_srcdir)/m4/ntp_lineeditlibs.m4 \
|
||||
$(top_srcdir)/m4/ntp_openssl.m4 \
|
||||
$(top_srcdir)/m4/ntp_vpathhack.m4 \
|
||||
$(top_srcdir)/m4/os_cflags.m4 $(top_srcdir)/version.m4 \
|
||||
$(top_srcdir)/configure.ac
|
||||
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
|
||||
@ -52,13 +58,13 @@ CONFIG_CLEAN_FILES =
|
||||
CONFIG_CLEAN_VPATH_FILES =
|
||||
PROGRAMS = $(noinst_PROGRAMS)
|
||||
chutest_SOURCES = chutest.c
|
||||
chutest_OBJECTS = chutest$U.$(OBJEXT)
|
||||
chutest_OBJECTS = chutest.$(OBJEXT)
|
||||
chutest_DEPENDENCIES = ../libntp/libntp.a
|
||||
clktest_SOURCES = clktest.c
|
||||
clktest_OBJECTS = clktest$U.$(OBJEXT)
|
||||
clktest_OBJECTS = clktest.$(OBJEXT)
|
||||
clktest_DEPENDENCIES = ../libntp/libntp.a
|
||||
propdelay_SOURCES = propdelay.c
|
||||
propdelay_OBJECTS = propdelay$U.$(OBJEXT)
|
||||
propdelay_OBJECTS = propdelay.$(OBJEXT)
|
||||
propdelay_DEPENDENCIES = ../libntp/libntp.a
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
@ -81,7 +87,6 @@ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AMTAR = @AMTAR@
|
||||
AR = @AR@
|
||||
ARLIB_DIR = @ARLIB_DIR@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
@ -98,14 +103,18 @@ CYGPATH_W = @CYGPATH_W@
|
||||
DCFD = @DCFD@
|
||||
DEFS = @DEFS@
|
||||
DEPDIR = @DEPDIR@
|
||||
ECHO = @ECHO@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
DSYMUTIL = @DSYMUTIL@
|
||||
DUMPBIN = @DUMPBIN@
|
||||
ECHO_C = @ECHO_C@
|
||||
ECHO_N = @ECHO_N@
|
||||
ECHO_T = @ECHO_T@
|
||||
EDITLINE_LIBS = @EDITLINE_LIBS@
|
||||
EF_LIBS = @EF_LIBS@
|
||||
EF_PROGS = @EF_PROGS@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
FGREP = @FGREP@
|
||||
GREP = @GREP@
|
||||
HAVE_INLINE = @HAVE_INLINE@
|
||||
INSTALL = @INSTALL@
|
||||
@ -114,6 +123,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
||||
LCRYPTO = @LCRYPTO@
|
||||
LD = @LD@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBOBJS = @LIBOBJS@
|
||||
LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
|
||||
@ -122,6 +132,7 @@ LIBOPTS_LDADD = @LIBOPTS_LDADD@
|
||||
LIBPARSE = @LIBPARSE@
|
||||
LIBS = @LIBS@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LIPO = @LIPO@
|
||||
LN_S = @LN_S@
|
||||
LSCF = @LSCF@
|
||||
LTLIBOBJS = @LTLIBOBJS@
|
||||
@ -133,15 +144,22 @@ MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
|
||||
MAKE_LIBPARSE = @MAKE_LIBPARSE@
|
||||
MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
|
||||
MAKE_NTPDSIM = @MAKE_NTPDSIM@
|
||||
MAKE_NTPSNMPD = @MAKE_NTPSNMPD@
|
||||
MAKE_NTPTIME = @MAKE_NTPTIME@
|
||||
MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
|
||||
MAKE_TICKADJ = @MAKE_TICKADJ@
|
||||
MAKE_TIMETRIM = @MAKE_TIMETRIM@
|
||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||
MKDIR_P = @MKDIR_P@
|
||||
NM = @NM@
|
||||
NMEDIT = @NMEDIT@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
OPENSSL = @OPENSSL@
|
||||
OPENSSL_INC = @OPENSSL_INC@
|
||||
OPENSSL_LIB = @OPENSSL_LIB@
|
||||
OTOOL = @OTOOL@
|
||||
OTOOL64 = @OTOOL64@
|
||||
PACKAGE = @PACKAGE@
|
||||
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
||||
PACKAGE_NAME = @PACKAGE_NAME@
|
||||
@ -149,23 +167,32 @@ PACKAGE_STRING = @PACKAGE_STRING@
|
||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||
PACKAGE_URL = @PACKAGE_URL@
|
||||
PACKAGE_VERSION = @PACKAGE_VERSION@
|
||||
PATH_NET_SNMP_CONFIG = @PATH_NET_SNMP_CONFIG@
|
||||
PATH_PERL = @PATH_PERL@
|
||||
PATH_SEPARATOR = @PATH_SEPARATOR@
|
||||
PATH_SH = @PATH_SH@
|
||||
PATH_TEST = @PATH_TEST@
|
||||
POSIX_SHELL = @POSIX_SHELL@
|
||||
PROPDELAY = @PROPDELAY@
|
||||
RANLIB = @RANLIB@
|
||||
READLINE_LIBS = @READLINE_LIBS@
|
||||
SED = @SED@
|
||||
SET_MAKE = @SET_MAKE@
|
||||
SHELL = @SHELL@
|
||||
SNMP_CFLAGS = @SNMP_CFLAGS@
|
||||
SNMP_CPPFLAGS = @SNMP_CPPFLAGS@
|
||||
SNMP_LIBS = @SNMP_LIBS@
|
||||
STRIP = @STRIP@
|
||||
TESTDCF = @TESTDCF@
|
||||
U = @U@
|
||||
VERSION = @VERSION@
|
||||
YACC = @YACC@
|
||||
YFLAGS = @YFLAGS@
|
||||
abs_builddir = @abs_builddir@
|
||||
abs_srcdir = @abs_srcdir@
|
||||
abs_top_builddir = @abs_top_builddir@
|
||||
abs_top_srcdir = @abs_top_srcdir@
|
||||
ac_ct_AR = @ac_ct_AR@
|
||||
ac_ct_CC = @ac_ct_CC@
|
||||
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
|
||||
am__include = @am__include@
|
||||
am__leading_dot = @am__leading_dot@
|
||||
am__quote = @am__quote@
|
||||
@ -214,7 +241,7 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
|
||||
#AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
|
||||
AUTOMAKE_OPTIONS = ../util/ansi2knr
|
||||
AUTOMAKE_OPTIONS =
|
||||
noinst_PROGRAMS = @PROPDELAY@ @CHUTEST@ @CLKTEST@
|
||||
INCLUDES = -I$(top_srcdir)/include
|
||||
# We need -lm (and perhaps $(COMPAT) for propdelay, -lntp for {chu,clk}test
|
||||
@ -222,11 +249,15 @@ propdelay_LDADD = -lm ../libntp/libntp.a
|
||||
chutest_LDADD = ../libntp/libntp.a
|
||||
clktest_LDADD = ../libntp/libntp.a
|
||||
ETAGS_ARGS = Makefile.am
|
||||
all: all-am
|
||||
#EXTRA_DIST = TAGS
|
||||
BUILT_SOURCES = .deps-ver
|
||||
CLEANFILES = .deps-ver
|
||||
all: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o .obj
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/depsver.mf $(am__configure_deps)
|
||||
@for dep in $?; do \
|
||||
case '$(am__configure_deps)' in \
|
||||
*$$dep*) \
|
||||
@ -274,15 +305,10 @@ mostlyclean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
../util/ansi2knr:
|
||||
$(am__cd) ../util && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
|
||||
|
||||
mostlyclean-kr:
|
||||
-test "$U" = "" || rm -f *_.c
|
||||
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chutest$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clktest$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propdelay$U.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chutest.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clktest.Po@am__quote@
|
||||
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/propdelay.Po@am__quote@
|
||||
|
||||
.c.o:
|
||||
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
|
||||
@ -304,14 +330,6 @@ mostlyclean-kr:
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
|
||||
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
||||
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
|
||||
chutest_.c: chutest.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/chutest.c; then echo $(srcdir)/chutest.c; else echo chutest.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
|
||||
clktest_.c: clktest.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/clktest.c; then echo $(srcdir)/clktest.c; else echo clktest.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
|
||||
propdelay_.c: propdelay.c $(ANSI2KNR)
|
||||
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/propdelay.c; then echo $(srcdir)/propdelay.c; else echo propdelay.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
|
||||
chutest_.$(OBJEXT) chutest_.lo clktest_.$(OBJEXT) clktest_.lo \
|
||||
propdelay_.$(OBJEXT) propdelay_.lo : $(ANSI2KNR)
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
@ -402,10 +420,12 @@ distdir: $(DISTFILES)
|
||||
fi; \
|
||||
done
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
check: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) check-am
|
||||
all-am: Makefile $(PROGRAMS)
|
||||
installdirs:
|
||||
install: install-am
|
||||
install: $(BUILT_SOURCES)
|
||||
$(MAKE) $(AM_MAKEFLAGS) install-am
|
||||
install-exec: install-exec-am
|
||||
install-data: install-data-am
|
||||
uninstall: uninstall-am
|
||||
@ -422,6 +442,7 @@ install-strip:
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
||||
|
||||
distclean-generic:
|
||||
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
|
||||
@ -430,6 +451,7 @@ distclean-generic:
|
||||
maintainer-clean-generic:
|
||||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
|
||||
@ -488,7 +510,7 @@ maintainer-clean-am: distclean-am maintainer-clean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic mostlyclean-kr \
|
||||
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
|
||||
mostlyclean-libtool
|
||||
|
||||
pdf: pdf-am
|
||||
@ -501,7 +523,7 @@ ps-am:
|
||||
|
||||
uninstall-am:
|
||||
|
||||
.MAKE: ../util/ansi2knr install-am install-strip
|
||||
.MAKE: all check install install-am install-strip
|
||||
|
||||
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
|
||||
clean-libtool clean-noinstPROGRAMS ctags distclean \
|
||||
@ -513,17 +535,79 @@ uninstall-am:
|
||||
install-pdf install-pdf-am install-ps install-ps-am \
|
||||
install-strip installcheck installcheck-am installdirs \
|
||||
maintainer-clean maintainer-clean-generic mostlyclean \
|
||||
mostlyclean-compile mostlyclean-generic mostlyclean-kr \
|
||||
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
|
||||
uninstall-am
|
||||
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
|
||||
pdf pdf-am ps ps-am tags uninstall uninstall-am
|
||||
|
||||
#EXTRA_DIST = TAGS
|
||||
|
||||
# clktest-opts.def wants ../include/copyright.def ../include/homerc.def
|
||||
|
||||
chutest$(EXEEXT): ../libntp/libntp.a
|
||||
|
||||
clktest$(EXEEXT): ../libntp/libntp.a
|
||||
$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ -f $@ ] || \
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
@[ -w $@ ] || \
|
||||
chmod ug+w $@
|
||||
@cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
|
||||
$(MAKE) clean && \
|
||||
echo -n "Prior $(subdir)/$(DEPDIR) version " && \
|
||||
cat $@ && \
|
||||
rm -rf $(DEPDIR) && \
|
||||
mkdir $(DEPDIR) && \
|
||||
case "$(top_builddir)" in \
|
||||
.) \
|
||||
./config.status Makefile depfiles \
|
||||
;; \
|
||||
..) \
|
||||
cd .. && \
|
||||
./config.status $(subdir)/Makefile depfiles && \
|
||||
cd $(subdir) \
|
||||
;; \
|
||||
*) \
|
||||
echo 'Fatal: depsver.mf Automake fragment limited' \
|
||||
'to immediate subdirectories.' && \
|
||||
echo "top_builddir: $(top_builddir)" && \
|
||||
echo "subdir: $(subdir)" && \
|
||||
exit 1 \
|
||||
;; \
|
||||
esac && \
|
||||
echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
|
||||
cat $(top_srcdir)/deps-ver \
|
||||
)
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
|
||||
.deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ ! -d $(DEPDIR) ] || $(MAKE) $(DEPDIR)/deps-ver
|
||||
@touch $@
|
||||
|
||||
#
|
||||
# depsver.mf included in Makefile.am for directories with .deps
|
||||
#
|
||||
# When building in the same directory with sources that change over
|
||||
# time, such as when tracking using bk, the .deps files can become
|
||||
# stale with respect to moved, deleted, or superceded headers. Most
|
||||
# commonly, this would exhibit as make reporting a failure to make a
|
||||
# header file which is no longer in the location given. To address
|
||||
# this issue, we use a deps-ver file which is updated with each change
|
||||
# that breaks old .deps files. A copy of deps-ver is made into
|
||||
# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
|
||||
# with different contents than deps-ver, we make clean to ensure all
|
||||
# .o files built before the incompatible change are rebuilt along with
|
||||
# their updated .deps files, then remove $(DEPDIR) and recreate it as
|
||||
# empty stubs.
|
||||
#
|
||||
# It is normal when configured with --disable-dependency-tracking for
|
||||
# the DEPDIR to not have been created. For this reason, we use the
|
||||
# intermediate target .deps-ver, which invokes make recursively if
|
||||
# DEPDIR exists.
|
||||
#
|
||||
# If you modify depsver.mf, please make the changes to the master
|
||||
# copy, the one in sntp is copied by the bootstrap script from it.
|
||||
#
|
||||
# This comment block follows rather than leads the related code so that
|
||||
# it stays with it in the generated Makefile.in and Makefile.
|
||||
#
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
|
@ -1,6 +1,6 @@
|
||||
#
|
||||
# NTP configuration file (ntp.conf)
|
||||
# bearegard.udel.edu
|
||||
# beauregard.udel.edu
|
||||
#
|
||||
server 127.127.18.1 # NIST ACTS modem driver
|
||||
fudge 127.127.18.1 time1 .0035
|
||||
|
502
config.guess
vendored
502
config.guess
vendored
@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
# Attempt to guess a canonical system name.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||
# 2011 Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2005-07-08'
|
||||
timestamp='2011-06-03'
|
||||
|
||||
# This file is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
@ -26,16 +27,16 @@ timestamp='2005-07-08'
|
||||
# the same distribution terms that you use for the rest of that program.
|
||||
|
||||
|
||||
# Originally written by Per Bothner <per@bothner.com>.
|
||||
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||
# diff and a properly formatted ChangeLog entry.
|
||||
# Originally written by Per Bothner. Please send patches (context
|
||||
# diff format) to <config-patches@gnu.org> and include a ChangeLog
|
||||
# entry.
|
||||
#
|
||||
# This script attempts to guess a canonical system name similar to
|
||||
# config.sub. If it succeeds, it prints the system name on stdout, and
|
||||
# exits with 0. Otherwise, it exits with 1.
|
||||
#
|
||||
# The plan is that this can be called by configure scripts if you
|
||||
# don't specify an explicit build system type.
|
||||
# You can get the latest version of this script from:
|
||||
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
||||
|
||||
me=`echo "$0" | sed -e 's,.*/,,'`
|
||||
|
||||
@ -55,8 +56,9 @@ version="\
|
||||
GNU config.guess ($timestamp)
|
||||
|
||||
Originally written by Per Bothner.
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
||||
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
@ -106,7 +108,7 @@ set_cc_for_build='
|
||||
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
|
||||
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
|
||||
: ${TMPDIR=/tmp} ;
|
||||
{ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
||||
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
|
||||
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
|
||||
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
|
||||
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
|
||||
@ -160,6 +162,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
arm*) machine=arm-unknown ;;
|
||||
sh3el) machine=shl-unknown ;;
|
||||
sh3eb) machine=sh-unknown ;;
|
||||
sh5el) machine=sh5le-unknown ;;
|
||||
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
|
||||
esac
|
||||
# The Operating System including object format, if it has switched
|
||||
@ -168,7 +171,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
||||
eval $set_cc_for_build
|
||||
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||
| grep __ELF__ >/dev/null
|
||||
| grep -q __ELF__
|
||||
then
|
||||
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
||||
# Return netbsd for either. FIX?
|
||||
@ -178,7 +181,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
os=netbsd
|
||||
os=netbsd
|
||||
;;
|
||||
esac
|
||||
# The OS release
|
||||
@ -206,8 +209,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
*:ekkoBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
|
||||
exit ;;
|
||||
*:SolidBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
|
||||
exit ;;
|
||||
macppc:MirBSD:*:*)
|
||||
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
|
||||
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
|
||||
exit ;;
|
||||
*:MirBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
|
||||
@ -218,7 +224,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
||||
;;
|
||||
*5.*)
|
||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
||||
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
||||
;;
|
||||
esac
|
||||
# According to Compaq, /usr/sbin/psrinfo has been available on
|
||||
@ -264,7 +270,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
# A Xn.n version is an unreleased experimental baselevel.
|
||||
# 1.2 uses "1.2" for uname -r.
|
||||
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||
exit ;;
|
||||
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
||||
exitcode=$?
|
||||
trap '' 0
|
||||
exit $exitcode ;;
|
||||
Alpha\ *:Windows_NT*:*)
|
||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||
# Should we change UNAME_MACHINE based on the output of uname instead
|
||||
@ -290,7 +299,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
echo s390-ibm-zvmoe
|
||||
exit ;;
|
||||
*:OS400:*:*)
|
||||
echo powerpc-ibm-os400
|
||||
echo powerpc-ibm-os400
|
||||
exit ;;
|
||||
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
||||
echo arm-acorn-riscix${UNAME_RELEASE}
|
||||
@ -319,14 +328,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
case `/usr/bin/uname -p` in
|
||||
sparc) echo sparc-icl-nx7; exit ;;
|
||||
esac ;;
|
||||
s390x:SunOS:*:*)
|
||||
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
sun4H:SunOS:5.*:*)
|
||||
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
||||
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
i86pc:SunOS:5.*:*)
|
||||
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
||||
echo i386-pc-auroraux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
||||
eval $set_cc_for_build
|
||||
SUN_ARCH="i386"
|
||||
# If there is a compiler, see if it is configured for 64-bit objects.
|
||||
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
||||
# This test works for both compilers.
|
||||
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
||||
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
||||
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||
grep IS_64BIT_ARCH >/dev/null
|
||||
then
|
||||
SUN_ARCH="x86_64"
|
||||
fi
|
||||
fi
|
||||
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
||||
exit ;;
|
||||
sun4*:SunOS:6*:*)
|
||||
# According to config.sub, this is the proper way to canonicalize
|
||||
@ -370,23 +398,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
||||
# MiNT. But MiNT is downward compatible to TOS, so this should
|
||||
# be no problem.
|
||||
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
||||
echo m68k-atari-mint${UNAME_RELEASE}
|
||||
echo m68k-atari-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
||||
echo m68k-atari-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
exit ;;
|
||||
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
||||
echo m68k-atari-mint${UNAME_RELEASE}
|
||||
echo m68k-atari-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
||||
echo m68k-milan-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
echo m68k-milan-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
||||
echo m68k-hades-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
echo m68k-hades-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
||||
echo m68k-unknown-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
echo m68k-unknown-mint${UNAME_RELEASE}
|
||||
exit ;;
|
||||
m68k:machten:*:*)
|
||||
echo m68k-apple-machten${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@ -456,8 +484,8 @@ EOF
|
||||
echo m88k-motorola-sysv3
|
||||
exit ;;
|
||||
AViiON:dgux:*:*)
|
||||
# DG/UX returns AViiON for all architectures
|
||||
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||
# DG/UX returns AViiON for all architectures
|
||||
UNAME_PROCESSOR=`/usr/bin/uname -p`
|
||||
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
||||
then
|
||||
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
||||
@ -470,7 +498,7 @@ EOF
|
||||
else
|
||||
echo i586-dg-dgux${UNAME_RELEASE}
|
||||
fi
|
||||
exit ;;
|
||||
exit ;;
|
||||
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
||||
echo m88k-dolphin-sysv3
|
||||
exit ;;
|
||||
@ -527,7 +555,7 @@ EOF
|
||||
echo rs6000-ibm-aix3.2
|
||||
fi
|
||||
exit ;;
|
||||
*:AIX:*:[45])
|
||||
*:AIX:*:[4567])
|
||||
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
||||
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
||||
IBM_ARCH=rs6000
|
||||
@ -570,52 +598,52 @@ EOF
|
||||
9000/[678][0-9][0-9])
|
||||
if [ -x /usr/bin/getconf ]; then
|
||||
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
||||
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
||||
case "${sc_cpu_version}" in
|
||||
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
||||
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
||||
532) # CPU_PA_RISC2_0
|
||||
case "${sc_kernel_bits}" in
|
||||
32) HP_ARCH="hppa2.0n" ;;
|
||||
64) HP_ARCH="hppa2.0w" ;;
|
||||
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
||||
case "${sc_cpu_version}" in
|
||||
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
||||
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
||||
532) # CPU_PA_RISC2_0
|
||||
case "${sc_kernel_bits}" in
|
||||
32) HP_ARCH="hppa2.0n" ;;
|
||||
64) HP_ARCH="hppa2.0w" ;;
|
||||
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
||||
esac ;;
|
||||
esac
|
||||
esac ;;
|
||||
esac
|
||||
fi
|
||||
if [ "${HP_ARCH}" = "" ]; then
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
|
||||
#define _HPUX_SOURCE
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#define _HPUX_SOURCE
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
#if defined(_SC_KERNEL_BITS)
|
||||
long bits = sysconf(_SC_KERNEL_BITS);
|
||||
#endif
|
||||
long cpu = sysconf (_SC_CPU_VERSION);
|
||||
int main ()
|
||||
{
|
||||
#if defined(_SC_KERNEL_BITS)
|
||||
long bits = sysconf(_SC_KERNEL_BITS);
|
||||
#endif
|
||||
long cpu = sysconf (_SC_CPU_VERSION);
|
||||
|
||||
switch (cpu)
|
||||
{
|
||||
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
||||
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
||||
case CPU_PA_RISC2_0:
|
||||
#if defined(_SC_KERNEL_BITS)
|
||||
switch (bits)
|
||||
{
|
||||
case 64: puts ("hppa2.0w"); break;
|
||||
case 32: puts ("hppa2.0n"); break;
|
||||
default: puts ("hppa2.0"); break;
|
||||
} break;
|
||||
#else /* !defined(_SC_KERNEL_BITS) */
|
||||
puts ("hppa2.0"); break;
|
||||
#endif
|
||||
default: puts ("hppa1.0"); break;
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
switch (cpu)
|
||||
{
|
||||
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
||||
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
||||
case CPU_PA_RISC2_0:
|
||||
#if defined(_SC_KERNEL_BITS)
|
||||
switch (bits)
|
||||
{
|
||||
case 64: puts ("hppa2.0w"); break;
|
||||
case 32: puts ("hppa2.0n"); break;
|
||||
default: puts ("hppa2.0"); break;
|
||||
} break;
|
||||
#else /* !defined(_SC_KERNEL_BITS) */
|
||||
puts ("hppa2.0"); break;
|
||||
#endif
|
||||
default: puts ("hppa1.0"); break;
|
||||
}
|
||||
exit (0);
|
||||
}
|
||||
EOF
|
||||
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
||||
test -z "$HP_ARCH" && HP_ARCH=hppa
|
||||
@ -635,7 +663,7 @@ EOF
|
||||
# => hppa64-hp-hpux11.23
|
||||
|
||||
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
||||
grep __LP64__ >/dev/null
|
||||
grep -q __LP64__
|
||||
then
|
||||
HP_ARCH="hppa2.0w"
|
||||
else
|
||||
@ -706,22 +734,22 @@ EOF
|
||||
exit ;;
|
||||
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
||||
echo c1-convex-bsd
|
||||
exit ;;
|
||||
exit ;;
|
||||
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
||||
if getsysinfo -f scalar_acc
|
||||
then echo c32-convex-bsd
|
||||
else echo c2-convex-bsd
|
||||
fi
|
||||
exit ;;
|
||||
exit ;;
|
||||
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
||||
echo c34-convex-bsd
|
||||
exit ;;
|
||||
exit ;;
|
||||
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
||||
echo c38-convex-bsd
|
||||
exit ;;
|
||||
exit ;;
|
||||
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
||||
echo c4-convex-bsd
|
||||
exit ;;
|
||||
exit ;;
|
||||
CRAY*Y-MP:*:*:*)
|
||||
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
||||
exit ;;
|
||||
@ -745,14 +773,14 @@ EOF
|
||||
exit ;;
|
||||
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
||||
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
exit ;;
|
||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
||||
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
exit ;;
|
||||
5000:UNIX_System_V:4.*:*)
|
||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
||||
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
||||
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
||||
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
||||
exit ;;
|
||||
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
||||
@ -764,27 +792,46 @@ EOF
|
||||
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
||||
exit ;;
|
||||
*:FreeBSD:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||
case ${UNAME_MACHINE} in
|
||||
pc98)
|
||||
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
||||
amd64)
|
||||
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
||||
*)
|
||||
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
||||
esac
|
||||
exit ;;
|
||||
i*:CYGWIN*:*)
|
||||
echo ${UNAME_MACHINE}-pc-cygwin
|
||||
exit ;;
|
||||
i*:MINGW*:*)
|
||||
*:MINGW*:*)
|
||||
echo ${UNAME_MACHINE}-pc-mingw32
|
||||
exit ;;
|
||||
i*:windows32*:*)
|
||||
# uname -m includes "-pc" on this system.
|
||||
echo ${UNAME_MACHINE}-mingw32
|
||||
# uname -m includes "-pc" on this system.
|
||||
echo ${UNAME_MACHINE}-mingw32
|
||||
exit ;;
|
||||
i*:PW*:*)
|
||||
echo ${UNAME_MACHINE}-pc-pw32
|
||||
exit ;;
|
||||
x86:Interix*:[34]*)
|
||||
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
|
||||
exit ;;
|
||||
*:Interix*:*)
|
||||
case ${UNAME_MACHINE} in
|
||||
x86)
|
||||
echo i586-pc-interix${UNAME_RELEASE}
|
||||
exit ;;
|
||||
authenticamd | genuineintel | EM64T)
|
||||
echo x86_64-unknown-interix${UNAME_RELEASE}
|
||||
exit ;;
|
||||
IA64)
|
||||
echo ia64-unknown-interix${UNAME_RELEASE}
|
||||
exit ;;
|
||||
esac ;;
|
||||
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
||||
echo i${UNAME_MACHINE}-pc-mks
|
||||
exit ;;
|
||||
8664:Windows_NT:*)
|
||||
echo x86_64-pc-mks
|
||||
exit ;;
|
||||
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
||||
# How do we know it's Interix rather than the generic POSIX subsystem?
|
||||
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
||||
@ -794,7 +841,7 @@ EOF
|
||||
i*:UWIN*:*)
|
||||
echo ${UNAME_MACHINE}-pc-uwin
|
||||
exit ;;
|
||||
amd64:CYGWIN*:*:*)
|
||||
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
|
||||
echo x86_64-unknown-cygwin
|
||||
exit ;;
|
||||
p*:CYGWIN*:*)
|
||||
@ -814,7 +861,37 @@ EOF
|
||||
i*86:Minix:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-minix
|
||||
exit ;;
|
||||
alpha:Linux:*:*)
|
||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
||||
EV5) UNAME_MACHINE=alphaev5 ;;
|
||||
EV56) UNAME_MACHINE=alphaev56 ;;
|
||||
PCA56) UNAME_MACHINE=alphapca56 ;;
|
||||
PCA57) UNAME_MACHINE=alphapca56 ;;
|
||||
EV6) UNAME_MACHINE=alphaev6 ;;
|
||||
EV67) UNAME_MACHINE=alphaev67 ;;
|
||||
EV68*) UNAME_MACHINE=alphaev68 ;;
|
||||
esac
|
||||
objdump --private-headers /bin/sh | grep -q ld.so.1
|
||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
||||
exit ;;
|
||||
arm*:Linux:*:*)
|
||||
eval $set_cc_for_build
|
||||
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||
| grep -q __ARM_EABI__
|
||||
then
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
else
|
||||
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
||||
| grep -q __ARM_PCS_VFP
|
||||
then
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
||||
else
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
||||
fi
|
||||
fi
|
||||
exit ;;
|
||||
avr32*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
cris:Linux:*:*)
|
||||
@ -824,7 +901,18 @@ EOF
|
||||
echo crisv32-axis-linux-gnu
|
||||
exit ;;
|
||||
frv:Linux:*:*)
|
||||
echo frv-unknown-linux-gnu
|
||||
echo frv-unknown-linux-gnu
|
||||
exit ;;
|
||||
i*86:Linux:*:*)
|
||||
LIBC=gnu
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#ifdef __dietlibc__
|
||||
LIBC=dietlibc
|
||||
#endif
|
||||
EOF
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
||||
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
||||
exit ;;
|
||||
ia64:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
@ -835,63 +923,33 @@ EOF
|
||||
m68*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
mips:Linux:*:*)
|
||||
mips:Linux:*:* | mips64:Linux:*:*)
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#undef CPU
|
||||
#undef mips
|
||||
#undef mipsel
|
||||
#undef ${UNAME_MACHINE}
|
||||
#undef ${UNAME_MACHINE}el
|
||||
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||
CPU=mipsel
|
||||
CPU=${UNAME_MACHINE}el
|
||||
#else
|
||||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||
CPU=mips
|
||||
CPU=${UNAME_MACHINE}
|
||||
#else
|
||||
CPU=
|
||||
#endif
|
||||
#endif
|
||||
EOF
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
||||
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
||||
;;
|
||||
mips64:Linux:*:*)
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#undef CPU
|
||||
#undef mips64
|
||||
#undef mips64el
|
||||
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
||||
CPU=mips64el
|
||||
#else
|
||||
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
||||
CPU=mips64
|
||||
#else
|
||||
CPU=
|
||||
#endif
|
||||
#endif
|
||||
EOF
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
|
||||
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
||||
;;
|
||||
ppc:Linux:*:*)
|
||||
echo powerpc-unknown-linux-gnu
|
||||
or32:Linux:*:*)
|
||||
echo or32-unknown-linux-gnu
|
||||
exit ;;
|
||||
ppc64:Linux:*:*)
|
||||
echo powerpc64-unknown-linux-gnu
|
||||
padre:Linux:*:*)
|
||||
echo sparc-unknown-linux-gnu
|
||||
exit ;;
|
||||
alpha:Linux:*:*)
|
||||
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
||||
EV5) UNAME_MACHINE=alphaev5 ;;
|
||||
EV56) UNAME_MACHINE=alphaev56 ;;
|
||||
PCA56) UNAME_MACHINE=alphapca56 ;;
|
||||
PCA57) UNAME_MACHINE=alphapca56 ;;
|
||||
EV6) UNAME_MACHINE=alphaev6 ;;
|
||||
EV67) UNAME_MACHINE=alphaev67 ;;
|
||||
EV68*) UNAME_MACHINE=alphaev68 ;;
|
||||
esac
|
||||
objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
||||
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
||||
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
||||
echo hppa64-unknown-linux-gnu
|
||||
exit ;;
|
||||
parisc:Linux:*:* | hppa:Linux:*:*)
|
||||
# Look for CPU level
|
||||
@ -901,14 +959,17 @@ EOF
|
||||
*) echo hppa-unknown-linux-gnu ;;
|
||||
esac
|
||||
exit ;;
|
||||
parisc64:Linux:*:* | hppa64:Linux:*:*)
|
||||
echo hppa64-unknown-linux-gnu
|
||||
ppc64:Linux:*:*)
|
||||
echo powerpc64-unknown-linux-gnu
|
||||
exit ;;
|
||||
ppc:Linux:*:*)
|
||||
echo powerpc-unknown-linux-gnu
|
||||
exit ;;
|
||||
s390:Linux:*:* | s390x:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-ibm-linux
|
||||
exit ;;
|
||||
sh64*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
sh*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
@ -916,68 +977,18 @@ EOF
|
||||
sparc:Linux:*:* | sparc64:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
tile*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
vax:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-dec-linux-gnu
|
||||
exit ;;
|
||||
x86_64:Linux:*:*)
|
||||
echo x86_64-unknown-linux-gnu
|
||||
exit ;;
|
||||
i*86:Linux:*:*)
|
||||
# The BFD linker knows what the default object file format is, so
|
||||
# first see if it will tell us. cd to the root directory to prevent
|
||||
# problems with other programs or directories called `ld' in the path.
|
||||
# Set LC_ALL=C to ensure ld outputs messages in English.
|
||||
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
||||
| sed -ne '/supported targets:/!d
|
||||
s/[ ][ ]*/ /g
|
||||
s/.*supported targets: *//
|
||||
s/ .*//
|
||||
p'`
|
||||
case "$ld_supported_targets" in
|
||||
elf32-i386)
|
||||
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
||||
;;
|
||||
a.out-i386-linux)
|
||||
echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
||||
exit ;;
|
||||
coff-i386)
|
||||
echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
||||
exit ;;
|
||||
"")
|
||||
# Either a pre-BFD a.out linker (linux-gnuoldld) or
|
||||
# one that does not give us useful --help.
|
||||
echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
||||
exit ;;
|
||||
esac
|
||||
# Determine whether the default compiler is a.out or elf
|
||||
eval $set_cc_for_build
|
||||
sed 's/^ //' << EOF >$dummy.c
|
||||
#include <features.h>
|
||||
#ifdef __ELF__
|
||||
# ifdef __GLIBC__
|
||||
# if __GLIBC__ >= 2
|
||||
LIBC=gnu
|
||||
# else
|
||||
LIBC=gnulibc1
|
||||
# endif
|
||||
# else
|
||||
LIBC=gnulibc1
|
||||
# endif
|
||||
#else
|
||||
#ifdef __INTEL_COMPILER
|
||||
LIBC=gnu
|
||||
#else
|
||||
LIBC=gnuaout
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __dietlibc__
|
||||
LIBC=dietlibc
|
||||
#endif
|
||||
EOF
|
||||
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
|
||||
test x"${LIBC}" != x && {
|
||||
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
||||
exit
|
||||
}
|
||||
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
||||
;;
|
||||
xtensa*:Linux:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
||||
exit ;;
|
||||
i*86:DYNIX/ptx:4*:*)
|
||||
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
||||
# earlier versions are messed up and put the nodename in both
|
||||
@ -985,11 +996,11 @@ EOF
|
||||
echo i386-sequent-sysv4
|
||||
exit ;;
|
||||
i*86:UNIX_SV:4.2MP:2.*)
|
||||
# Unixware is an offshoot of SVR4, but it has its own version
|
||||
# number series starting with 2...
|
||||
# I am not positive that other SVR4 systems won't match this,
|
||||
# Unixware is an offshoot of SVR4, but it has its own version
|
||||
# number series starting with 2...
|
||||
# I am not positive that other SVR4 systems won't match this,
|
||||
# I just have to hope. -- rms.
|
||||
# Use sysv4.2uw... so that sysv4* matches it.
|
||||
# Use sysv4.2uw... so that sysv4* matches it.
|
||||
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
||||
exit ;;
|
||||
i*86:OS/2:*:*)
|
||||
@ -1006,7 +1017,7 @@ EOF
|
||||
i*86:syllable:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-syllable
|
||||
exit ;;
|
||||
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
||||
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
||||
echo i386-unknown-lynxos${UNAME_RELEASE}
|
||||
exit ;;
|
||||
i*86:*DOS:*:*)
|
||||
@ -1021,7 +1032,7 @@ EOF
|
||||
fi
|
||||
exit ;;
|
||||
i*86:*:5:[678]*)
|
||||
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
||||
# UnixWare 7.x, OpenUNIX and OpenServer 6.
|
||||
case `/bin/uname -X | grep "^Machine"` in
|
||||
*486*) UNAME_MACHINE=i486 ;;
|
||||
*Pentium) UNAME_MACHINE=i586 ;;
|
||||
@ -1049,10 +1060,13 @@ EOF
|
||||
exit ;;
|
||||
pc:*:*:*)
|
||||
# Left here for compatibility:
|
||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||
# the processor, so we play safe by assuming i386.
|
||||
echo i386-pc-msdosdjgpp
|
||||
exit ;;
|
||||
# uname -m prints for DJGPP always 'pc', but it prints nothing about
|
||||
# the processor, so we play safe by assuming i586.
|
||||
# Note: whatever this is, it MUST be the same as what config.sub
|
||||
# prints for the "djgpp" host, or else GDB configury will decide that
|
||||
# this is a cross-build.
|
||||
echo i586-pc-msdosdjgpp
|
||||
exit ;;
|
||||
Intel:Mach:3*:*)
|
||||
echo i386-pc-mach3
|
||||
exit ;;
|
||||
@ -1087,8 +1101,18 @@ EOF
|
||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
||||
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& { echo i486-ncr-sysv4; exit; } ;;
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& { echo i486-ncr-sysv4; exit; } ;;
|
||||
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
||||
OS_REL='.3'
|
||||
test -r /etc/.relid \
|
||||
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
||||
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
||||
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
||||
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
||||
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
||||
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
||||
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
||||
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@ -1101,7 +1125,7 @@ EOF
|
||||
rs6000:LynxOS:2.*:*)
|
||||
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
||||
exit ;;
|
||||
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
||||
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
||||
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
||||
exit ;;
|
||||
SM[BE]S:UNIX_SV:*:*)
|
||||
@ -1121,10 +1145,10 @@ EOF
|
||||
echo ns32k-sni-sysv
|
||||
fi
|
||||
exit ;;
|
||||
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||
echo i586-unisys-sysv4
|
||||
exit ;;
|
||||
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
||||
# says <Richard.M.Bartel@ccMail.Census.GOV>
|
||||
echo i586-unisys-sysv4
|
||||
exit ;;
|
||||
*:UNIX_System_V:4*:FTX*)
|
||||
# From Gerald Hewes <hewes@openmarket.com>.
|
||||
# How about differentiating between stratus architectures? -djm
|
||||
@ -1150,11 +1174,11 @@ EOF
|
||||
exit ;;
|
||||
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
||||
if [ -d /usr/nec ]; then
|
||||
echo mips-nec-sysv${UNAME_RELEASE}
|
||||
echo mips-nec-sysv${UNAME_RELEASE}
|
||||
else
|
||||
echo mips-unknown-sysv${UNAME_RELEASE}
|
||||
echo mips-unknown-sysv${UNAME_RELEASE}
|
||||
fi
|
||||
exit ;;
|
||||
exit ;;
|
||||
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
||||
echo powerpc-be-beos
|
||||
exit ;;
|
||||
@ -1164,6 +1188,9 @@ EOF
|
||||
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||
echo i586-pc-beos
|
||||
exit ;;
|
||||
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
||||
echo i586-pc-haiku
|
||||
exit ;;
|
||||
SX-4:SUPER-UX:*:*)
|
||||
echo sx4-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@ -1173,6 +1200,15 @@ EOF
|
||||
SX-6:SUPER-UX:*:*)
|
||||
echo sx6-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
SX-7:SUPER-UX:*:*)
|
||||
echo sx7-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
SX-8:SUPER-UX:*:*)
|
||||
echo sx8-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
SX-8R:SUPER-UX:*:*)
|
||||
echo sx8r-nec-superux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
Power*:Rhapsody:*:*)
|
||||
echo powerpc-apple-rhapsody${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@ -1182,7 +1218,16 @@ EOF
|
||||
*:Darwin:*:*)
|
||||
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
||||
case $UNAME_PROCESSOR in
|
||||
*86) UNAME_PROCESSOR=i686 ;;
|
||||
i386)
|
||||
eval $set_cc_for_build
|
||||
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
||||
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
||||
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
||||
grep IS_64BIT_ARCH >/dev/null
|
||||
then
|
||||
UNAME_PROCESSOR="x86_64"
|
||||
fi
|
||||
fi ;;
|
||||
unknown) UNAME_PROCESSOR=powerpc ;;
|
||||
esac
|
||||
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
||||
@ -1198,6 +1243,9 @@ EOF
|
||||
*:QNX:*:4*)
|
||||
echo i386-pc-qnx
|
||||
exit ;;
|
||||
NEO-?:NONSTOP_KERNEL:*:*)
|
||||
echo neo-tandem-nsk${UNAME_RELEASE}
|
||||
exit ;;
|
||||
NSE-?:NONSTOP_KERNEL:*:*)
|
||||
echo nse-tandem-nsk${UNAME_RELEASE}
|
||||
exit ;;
|
||||
@ -1243,13 +1291,13 @@ EOF
|
||||
echo pdp10-unknown-its
|
||||
exit ;;
|
||||
SEI:*:*:SEIUX)
|
||||
echo mips-sei-seiux${UNAME_RELEASE}
|
||||
echo mips-sei-seiux${UNAME_RELEASE}
|
||||
exit ;;
|
||||
*:DragonFly:*:*)
|
||||
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
||||
exit ;;
|
||||
*:*VMS:*:*)
|
||||
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||
UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
||||
case "${UNAME_MACHINE}" in
|
||||
A*) echo alpha-dec-vms ; exit ;;
|
||||
I*) echo ia64-dec-vms ; exit ;;
|
||||
@ -1261,6 +1309,12 @@ EOF
|
||||
i*86:skyos:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
|
||||
exit ;;
|
||||
i*86:rdos:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-rdos
|
||||
exit ;;
|
||||
i*86:AROS:*:*)
|
||||
echo ${UNAME_MACHINE}-pc-aros
|
||||
exit ;;
|
||||
esac
|
||||
|
||||
#echo '(No uname command or uname output not recognized.)' 1>&2
|
||||
@ -1283,11 +1337,11 @@ main ()
|
||||
#include <sys/param.h>
|
||||
printf ("m68k-sony-newsos%s\n",
|
||||
#ifdef NEWSOS4
|
||||
"4"
|
||||
"4"
|
||||
#else
|
||||
""
|
||||
""
|
||||
#endif
|
||||
); exit (0);
|
||||
); exit (0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -1421,9 +1475,9 @@ This script, last modified $timestamp, has failed to recognize
|
||||
the operating system you are using. It is advised that you
|
||||
download the most up to date version of the config scripts from
|
||||
|
||||
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
|
||||
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
||||
and
|
||||
http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
|
||||
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
||||
|
||||
If the version you run ($0) is already up to date, please
|
||||
send the following data and any information you think might be
|
||||
|
282
config.h.in
282
config.h.in
@ -9,9 +9,6 @@
|
||||
/* CHU audio/decoder? */
|
||||
#undef AUDIO_CHU
|
||||
|
||||
/* Declare char *sys_errlist array */
|
||||
#undef CHAR_SYS_ERRLIST
|
||||
|
||||
/* ACTS modem service */
|
||||
#undef CLOCK_ACTS
|
||||
|
||||
@ -150,10 +147,10 @@
|
||||
/* Ultralink M320 WWVB receiver? */
|
||||
#undef CLOCK_ULINK
|
||||
|
||||
/* VARITEXT protocol */
|
||||
/* VARITEXT clock */
|
||||
#undef CLOCK_VARITEXT
|
||||
|
||||
/* WHARTON 400A Series protocol */
|
||||
/* WHARTON 400A Series clock */
|
||||
#undef CLOCK_WHARTON_400A
|
||||
|
||||
/* WWV audio driver */
|
||||
@ -162,7 +159,7 @@
|
||||
/* Zyfer GPStarplus */
|
||||
#undef CLOCK_ZYFER
|
||||
|
||||
/* Enable debugging? */
|
||||
/* Enable ntpd debugging code? */
|
||||
#undef DEBUG
|
||||
|
||||
/* Enable processing time debugging? */
|
||||
@ -267,17 +264,23 @@
|
||||
/* What is the fallback value for HZ? */
|
||||
#undef DEFAULT_HZ
|
||||
|
||||
/* Directory separator character, usually / or \\ */
|
||||
#undef DIR_SEP
|
||||
|
||||
/* use old autokey session key behavior? */
|
||||
#undef DISABLE_BUG1243_FIX
|
||||
|
||||
/* synch TODR hourly? */
|
||||
#undef DOSYNCTODR
|
||||
|
||||
/* The number of minutes in a DST adjustment */
|
||||
#undef DSTMINUTES
|
||||
|
||||
/* fopen(3) accepts a 'b' in the mode flag */
|
||||
#undef FOPEN_BINARY_FLAG
|
||||
/* number of args to el_init() */
|
||||
#undef EL_INIT_ARGS
|
||||
|
||||
/* fopen(3) accepts a 't' in the mode flag */
|
||||
#undef FOPEN_TEXT_FLAG
|
||||
/* Force deferred DNS lookups? */
|
||||
#undef FORCE_DEFER_DNS
|
||||
|
||||
/* force ntpdate to step the clock if !defined(STEP_SLEW) ? */
|
||||
#undef FORCE_NTPDATE_STEP
|
||||
@ -285,7 +288,7 @@
|
||||
/* What is getsockname()'s socklen type? */
|
||||
#undef GETSOCKNAME_SOCKLEN_TYPE
|
||||
|
||||
/* Do we have a routing socket (struct rt_msghdr)? */
|
||||
/* Do we have a routing socket (rt_msghdr or rtattr)? */
|
||||
#undef HAS_ROUTING_SOCKET
|
||||
|
||||
/* Define to 1 if you have the <arpa/nameser.h> header file. */
|
||||
@ -312,9 +315,6 @@
|
||||
/* Define to 1 if you have the `daemon' function. */
|
||||
#undef HAVE_DAEMON
|
||||
|
||||
/* Define this if /dev/zero is readable device */
|
||||
#undef HAVE_DEV_ZERO
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#undef HAVE_DIRENT_H
|
||||
@ -328,24 +328,21 @@
|
||||
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
||||
#undef HAVE_DOPRNT
|
||||
|
||||
/* [Can we drop root privileges?] */
|
||||
/* Can we drop root privileges? */
|
||||
#undef HAVE_DROPROOT
|
||||
|
||||
/* Define to 1 if you have the <errno.h> header file. */
|
||||
#undef HAVE_ERRNO_H
|
||||
|
||||
/* Define to 1 if you have the `EVP_md2' function. */
|
||||
#undef HAVE_EVP_MD2
|
||||
|
||||
/* Define to 1 if you have the `EVP_mdc2' function. */
|
||||
#undef HAVE_EVP_MDC2
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
|
||||
/* Define to 1 if you have the `finite' function. */
|
||||
#undef HAVE_FINITE
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#undef HAVE_FORK
|
||||
|
||||
/* Define to 1 if you have the `getbootfile' function. */
|
||||
#undef HAVE_GETBOOTFILE
|
||||
|
||||
@ -358,16 +355,25 @@
|
||||
/* Define to 1 if you have the `getifaddrs' function. */
|
||||
#undef HAVE_GETIFADDRS
|
||||
|
||||
/* Define to 1 if you have the `getpassphrase' function. */
|
||||
#undef HAVE_GETPASSPHRASE
|
||||
|
||||
/* Define to 1 if you have the `getrusage' function. */
|
||||
#undef HAVE_GETRUSAGE
|
||||
|
||||
/* Define to 1 if you have the `getuid' function. */
|
||||
#undef HAVE_GETUID
|
||||
|
||||
/* Define to 1 if you have the <histedit.h> header file. */
|
||||
#undef HAVE_HISTEDIT_H
|
||||
|
||||
/* Define to 1 if you have the <history.h> header file. */
|
||||
#undef HAVE_HISTORY_H
|
||||
|
||||
/* Define to 1 if you have the `hstrerror' function. */
|
||||
#undef HAVE_HSTRERROR
|
||||
|
||||
/* Obvious... */
|
||||
/* Obvious */
|
||||
#undef HAVE_HZ_IN_STRUCT_CLOCKINFO
|
||||
|
||||
/* Define to 1 if you have the <ieeefp.h> header file. */
|
||||
@ -376,6 +382,9 @@
|
||||
/* have iflist_sysctl? */
|
||||
#undef HAVE_IFLIST_SYSCTL
|
||||
|
||||
/* Define to 1 if you have the `if_nametoindex' function. */
|
||||
#undef HAVE_IF_NAMETOINDEX
|
||||
|
||||
/* inline keyword or macro available */
|
||||
#undef HAVE_INLINE
|
||||
|
||||
@ -400,21 +409,12 @@
|
||||
/* Define to 1 if you have the `isfinite' function. */
|
||||
#undef HAVE_ISFINITE
|
||||
|
||||
/* Define to 1 if you have the <kvm.h> header file. */
|
||||
#undef HAVE_KVM_H
|
||||
|
||||
/* Define to 1 if you have the `kvm_open' function. */
|
||||
#undef HAVE_KVM_OPEN
|
||||
|
||||
/* Define to 1 if you have the `K_open' function. */
|
||||
#undef HAVE_K_OPEN
|
||||
|
||||
/* Define to 1 if you have the `advapi32' library (-ladvapi32). */
|
||||
#undef HAVE_LIBADVAPI32
|
||||
|
||||
/* Do we have the curses library? */
|
||||
#undef HAVE_LIBCURSES
|
||||
|
||||
/* Do we have the edit library? */
|
||||
#undef HAVE_LIBEDIT
|
||||
|
||||
/* Define to 1 if you have the `elf' library (-lelf). */
|
||||
#undef HAVE_LIBELF
|
||||
|
||||
@ -436,8 +436,8 @@
|
||||
/* Define to 1 if you have the `posix4' library (-lposix4). */
|
||||
#undef HAVE_LIBPOSIX4
|
||||
|
||||
/* Define to 1 if you have the `readline' library (-lreadline). */
|
||||
#undef HAVE_LIBREADLINE
|
||||
/* Define to 1 if you have the `resolv' library (-lresolv). */
|
||||
#undef HAVE_LIBRESOLV
|
||||
|
||||
/* Define to 1 if you have the `rt' library (-lrt). */
|
||||
#undef HAVE_LIBRT
|
||||
@ -448,9 +448,15 @@
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#undef HAVE_LIMITS_H
|
||||
|
||||
/* [Do we have Linux capabilities?] */
|
||||
/* Do we have Linux capabilities? */
|
||||
#undef HAVE_LINUX_CAPABILITIES
|
||||
|
||||
/* Define to 1 if you have the <linux/if_addr.h> header file. */
|
||||
#undef HAVE_LINUX_IF_ADDR_H
|
||||
|
||||
/* Define to 1 if the system has the type `long'. */
|
||||
#undef HAVE_LONG
|
||||
|
||||
/* Define to 1 if you have the <machine/inline.h> header file. */
|
||||
#undef HAVE_MACHINE_INLINE_H
|
||||
|
||||
@ -508,6 +514,9 @@
|
||||
/* Define to 1 if you have the <netinet/in_systm.h> header file. */
|
||||
#undef HAVE_NETINET_IN_SYSTM_H
|
||||
|
||||
/* Define to 1 if you have the <netinet/in_var.h> header file. */
|
||||
#undef HAVE_NETINET_IN_VAR_H
|
||||
|
||||
/* Define to 1 if you have the <netinet/ip.h> header file. */
|
||||
#undef HAVE_NETINET_IP_H
|
||||
|
||||
@ -523,6 +532,12 @@
|
||||
/* Define to 1 if you have the <net/if.h> header file. */
|
||||
#undef HAVE_NET_IF_H
|
||||
|
||||
/* Define to 1 if you have the <net/if_var.h> header file. */
|
||||
#undef HAVE_NET_IF_VAR_H
|
||||
|
||||
/* Define to 1 if you have the <net/netmp.h> header file. */
|
||||
#undef HAVE_NET_NETMP_H
|
||||
|
||||
/* Define to 1 if you have the <net/route.h> header file. */
|
||||
#undef HAVE_NET_ROUTE_H
|
||||
|
||||
@ -532,6 +547,9 @@
|
||||
/* Define to 1 if you have the `nlist' function. */
|
||||
#undef HAVE_NLIST
|
||||
|
||||
/* Define to 1 if you have the <nlist.h> header file. */
|
||||
#undef HAVE_NLIST_H
|
||||
|
||||
/* Define to 1 if you have the `ntp_adjtime' function. */
|
||||
#undef HAVE_NTP_ADJTIME
|
||||
|
||||
@ -541,8 +559,8 @@
|
||||
/* Do we want support for Samba's signing daemon? */
|
||||
#undef HAVE_NTP_SIGND
|
||||
|
||||
/* Define this if pathfind(3) works */
|
||||
#undef HAVE_PATHFIND
|
||||
/* Define to 1 if the system has the type `pid_t'. */
|
||||
#undef HAVE_PID_T
|
||||
|
||||
/* Define to 1 if you have the `plock' function. */
|
||||
#undef HAVE_PLOCK
|
||||
@ -553,15 +571,18 @@
|
||||
/* Do we have the PPS API per the Draft RFC? */
|
||||
#undef HAVE_PPSAPI
|
||||
|
||||
/* Are function prototypes OK? */
|
||||
#undef HAVE_PROTOTYPES
|
||||
|
||||
/* Define to 1 if you have the `pututline' function. */
|
||||
#undef HAVE_PUTUTLINE
|
||||
|
||||
/* Define to 1 if you have the `pututxline' function. */
|
||||
#undef HAVE_PUTUTXLINE
|
||||
|
||||
/* Define to 1 if you have the <readline.h> header file. */
|
||||
#undef HAVE_READLINE_H
|
||||
|
||||
/* Define if your readline library has \`add_history' */
|
||||
#undef HAVE_READLINE_HISTORY
|
||||
|
||||
/* Define to 1 if you have the <readline/history.h> header file. */
|
||||
#undef HAVE_READLINE_HISTORY_H
|
||||
|
||||
@ -571,22 +592,25 @@
|
||||
/* Define to 1 if you have the `readlink' function. */
|
||||
#undef HAVE_READLINK
|
||||
|
||||
/* Define this if we have a functional realpath(3C) */
|
||||
#undef HAVE_REALPATH
|
||||
|
||||
/* Define to 1 if you have the `recvmsg' function. */
|
||||
#undef HAVE_RECVMSG
|
||||
|
||||
/* Define to 1 if you have the <resolv.h> header file. */
|
||||
#undef HAVE_RESOLV_H
|
||||
|
||||
/* Define to 1 if you have the `res_init' function. */
|
||||
#undef HAVE_RES_INIT
|
||||
|
||||
/* Do we have Linux routing socket? */
|
||||
#undef HAVE_RTNETLINK
|
||||
|
||||
/* Define to 1 if you have the `rtprio' function. */
|
||||
#undef HAVE_RTPRIO
|
||||
|
||||
/* Should be obvious... */
|
||||
#undef HAVE_SA_LEN_IN_STRUCT_SOCKADDR
|
||||
/* Define to 1 if you have the <runetype.h> header file. */
|
||||
#undef HAVE_RUNETYPE_H
|
||||
|
||||
/* Obvious... */
|
||||
/* Obvious */
|
||||
#undef HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION
|
||||
|
||||
/* Define to 1 if you have the <sched.h> header file. */
|
||||
@ -640,18 +664,15 @@
|
||||
/* Define to 1 if you have the `sigvec' function. */
|
||||
#undef HAVE_SIGVEC
|
||||
|
||||
/* Define to 1 if the system has the type `size_t'. */
|
||||
#undef HAVE_SIZE_T
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#undef HAVE_SNPRINTF
|
||||
|
||||
/* [Are Solaris privileges available?] */
|
||||
/* Are Solaris privileges available? */
|
||||
#undef HAVE_SOLARIS_PRIVS
|
||||
|
||||
/* Does struct sockaddr_storage have ss_family? */
|
||||
#undef HAVE_SS_FAMILY_IN_SS
|
||||
|
||||
/* Does struct sockaddr_storage have ss_len? */
|
||||
#undef HAVE_SS_LEN_IN_SS
|
||||
|
||||
/* Define to 1 if you have the <stdarg.h> header file. */
|
||||
#undef HAVE_STDARG_H
|
||||
|
||||
@ -673,9 +694,6 @@
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#undef HAVE_STRERROR
|
||||
|
||||
/* Define this if strftime() works */
|
||||
#undef HAVE_STRFTIME
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
@ -685,6 +703,9 @@
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#undef HAVE_STRRCHR
|
||||
|
||||
/* Define to 1 if you have the `strsignal' function. */
|
||||
#undef HAVE_STRSIGNAL
|
||||
|
||||
/* Define to 1 if you have the `strstr' function. */
|
||||
#undef HAVE_STRSTR
|
||||
|
||||
@ -703,7 +724,7 @@
|
||||
/* Does a system header define struct sockaddr_storage? */
|
||||
#undef HAVE_STRUCT_SOCKADDR_STORAGE
|
||||
|
||||
/* Do we have struct timespec? */
|
||||
/* struct timespec declared? */
|
||||
#undef HAVE_STRUCT_TIMESPEC
|
||||
|
||||
/* Define to 1 if you have the <sun/audioio.h> header file. */
|
||||
@ -858,6 +879,9 @@
|
||||
/* Define to 1 if you have the <sys/un.h> header file. */
|
||||
#undef HAVE_SYS_UN_H
|
||||
|
||||
/* Define to 1 if you have the <sys/var.h> header file. */
|
||||
#undef HAVE_SYS_VAR_H
|
||||
|
||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
||||
#undef HAVE_SYS_WAIT_H
|
||||
|
||||
@ -870,7 +894,7 @@
|
||||
/* Define to 1 if you have the <termio.h> header file. */
|
||||
#undef HAVE_TERMIO_H
|
||||
|
||||
/* Obvious... */
|
||||
/* Obvious */
|
||||
#undef HAVE_TICKADJ_IN_STRUCT_CLOCKINFO
|
||||
|
||||
/* Define to 1 if you have the `timegm' function. */
|
||||
@ -888,6 +912,9 @@
|
||||
/* Define to 1 if you have the <timex.h> header file. */
|
||||
#undef HAVE_TIMEX_H
|
||||
|
||||
/* Define to 1 if the system has the type `time_t'. */
|
||||
#undef HAVE_TIME_T
|
||||
|
||||
/* Do we have the TIOCGPPSEV ioctl (Solaris)? */
|
||||
#undef HAVE_TIOCGPPSEV
|
||||
|
||||
@ -948,6 +975,12 @@
|
||||
/* Define to 1 if you have the <varargs.h> header file. */
|
||||
#undef HAVE_VARARGS_H
|
||||
|
||||
/* Define to 1 if you have the `vfork' function. */
|
||||
#undef HAVE_VFORK
|
||||
|
||||
/* Define to 1 if you have the <vfork.h> header file. */
|
||||
#undef HAVE_VFORK_H
|
||||
|
||||
/* Define to 1 if you have the `vprintf' function. */
|
||||
#undef HAVE_VPRINTF
|
||||
|
||||
@ -957,6 +990,21 @@
|
||||
/* Define to 1 if you have the `vsprintf' function. */
|
||||
#undef HAVE_VSPRINTF
|
||||
|
||||
/* Define to 1 if you have the <wchar.h> header file. */
|
||||
#undef HAVE_WCHAR_H
|
||||
|
||||
/* Define to 1 if the system has the type `wchar_t'. */
|
||||
#undef HAVE_WCHAR_T
|
||||
|
||||
/* Define to 1 if the system has the type `wint_t'. */
|
||||
#undef HAVE_WINT_T
|
||||
|
||||
/* Define to 1 if `fork' works. */
|
||||
#undef HAVE_WORKING_FORK
|
||||
|
||||
/* Define to 1 if `vfork' works. */
|
||||
#undef HAVE_WORKING_VFORK
|
||||
|
||||
/* Define to 1 if you have the </sys/sync/queue.h> header file. */
|
||||
#undef HAVE__SYS_SYNC_QUEUE_H
|
||||
|
||||
@ -969,13 +1017,32 @@
|
||||
/* Define to 1 if you have the `__ntp_gettime' function. */
|
||||
#undef HAVE___NTP_GETTIME
|
||||
|
||||
/* Define to 1 if you have the `__res_init' function. */
|
||||
#undef HAVE___RES_INIT
|
||||
|
||||
/* Does struct sockaddr_storage have __ss_family? */
|
||||
#undef HAVE___SS_FAMILY_IN_SS
|
||||
|
||||
|
||||
/* Handle sockaddr_storage.__ss_family */
|
||||
#ifdef HAVE___SS_FAMILY_IN_SS
|
||||
# define ss_family __ss_family
|
||||
#endif /* HAVE___SS_FAMILY_IN_SS */
|
||||
|
||||
|
||||
|
||||
/* Does struct sockaddr_storage have __ss_len? */
|
||||
#undef HAVE___SS_LEN_IN_SS
|
||||
|
||||
/* [Retry queries on _any_ DNS error?] */
|
||||
|
||||
/* Handle sockaddr_storage.__ss_len */
|
||||
#ifdef HAVE___SS_LEN_IN_SS
|
||||
# define ss_len __ss_len
|
||||
#endif /* HAVE___SS_LEN_IN_SS */
|
||||
|
||||
|
||||
|
||||
/* Retry queries on _any_ DNS error? */
|
||||
#undef IGNORE_DNS_ERRORS
|
||||
|
||||
/* Should we use the IRIG sawtooth filter? */
|
||||
@ -999,15 +1066,12 @@
|
||||
/* have IPv6? */
|
||||
#undef ISC_PLATFORM_HAVEIPV6
|
||||
|
||||
/* ISC: struct sockaddr as sa_len? */
|
||||
/* struct sockaddr has sa_len? */
|
||||
#undef ISC_PLATFORM_HAVESALEN
|
||||
|
||||
/* have sin6_scope_id? */
|
||||
/* sin6_scope_id? */
|
||||
#undef ISC_PLATFORM_HAVESCOPEID
|
||||
|
||||
/* ISC: provide inet_aton() */
|
||||
#undef ISC_PLATFORM_NEEDATON
|
||||
|
||||
/* missing in6addr_any? */
|
||||
#undef ISC_PLATFORM_NEEDIN6ADDRANY
|
||||
|
||||
@ -1017,7 +1081,7 @@
|
||||
/* ISC: provide inet_ntop() */
|
||||
#undef ISC_PLATFORM_NEEDNTOP
|
||||
|
||||
/* Do we need our own in_port_t? */
|
||||
/* Declare in_port_t? */
|
||||
#undef ISC_PLATFORM_NEEDPORTT
|
||||
|
||||
/* ISC: provide inet_pton() */
|
||||
@ -1044,7 +1108,11 @@
|
||||
/* Should we align with the NIST lockclock scheme? */
|
||||
#undef LOCKCLOCK
|
||||
|
||||
/* Does the kernel support multicasting IP? */
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#undef LT_OBJDIR
|
||||
|
||||
/* Does the target support multicast IP? */
|
||||
#undef MCAST
|
||||
|
||||
/* Should we recommend a minimum value for tickadj? */
|
||||
@ -1056,10 +1124,13 @@
|
||||
/* Do we want the HPUX FindConfig()? */
|
||||
#undef NEED_HPUX_FINDCONFIG
|
||||
|
||||
/* We need to provide netsnmp_daemonize() */
|
||||
#undef NEED_NETSNMP_DAEMONIZE
|
||||
|
||||
/* Do we need the qnx adjtime call? */
|
||||
#undef NEED_QNX_ADJTIME
|
||||
|
||||
/* Do we need extra room for SO_RCVBUF? (HPUX <8) */
|
||||
/* Do we need extra room for SO_RCVBUF? (HPUX < 8) */
|
||||
#undef NEED_RCVBUF_SLOP
|
||||
|
||||
/* Do we need an s_char typedef? */
|
||||
@ -1080,13 +1151,10 @@
|
||||
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
|
||||
#undef NO_MINUS_C_MINUS_O
|
||||
|
||||
/* Define this if optional arguments are disallowed */
|
||||
#undef NO_OPTIONAL_OPT_ARGS
|
||||
|
||||
/* Should we avoid #warning on option name collisions? */
|
||||
#undef NO_OPTION_NAME_WARNINGS
|
||||
|
||||
/* Is there a problem using PARENB and IGNPAR (IRIX)? */
|
||||
/* Is there a problem using PARENB and IGNPAR? */
|
||||
#undef NO_PARENB_IGNPAR
|
||||
|
||||
/* Default location of crypto key info */
|
||||
@ -1113,8 +1181,7 @@
|
||||
/* need to recreate sockets on changed routing? */
|
||||
#undef OS_MISSES_SPECIFIC_ROUTE_UPDATES
|
||||
|
||||
/* wildcard socket needs to set REUSEADDR when binding to interface addresses
|
||||
*/
|
||||
/* wildcard socket needs REUSEADDR to bind interface addresses */
|
||||
#undef OS_NEEDS_REUSEADDR_FOR_IFADDRBIND
|
||||
|
||||
/* Do we need to override the system's idea of HZ? */
|
||||
@ -1141,12 +1208,12 @@
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* define to a working POSIX compliant shell */
|
||||
#undef POSIX_SHELL
|
||||
|
||||
/* Do we have the ppsclock streams module? */
|
||||
#undef PPS
|
||||
|
||||
/* PPS auxiliary interface for ATOM? */
|
||||
#undef PPS_SAMPLE
|
||||
|
||||
/* PARSE kernel PLL PPS support */
|
||||
#undef PPS_SYNC
|
||||
|
||||
@ -1156,9 +1223,6 @@
|
||||
/* Preset a value for 'tickadj'? */
|
||||
#undef PRESET_TICKADJ
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#undef PROTOTYPES
|
||||
|
||||
/* Does qsort expect to work on "void *" stuff? */
|
||||
#undef QSORT_USES_VOID_P
|
||||
|
||||
@ -1168,15 +1232,15 @@
|
||||
/* Basic refclock support? */
|
||||
#undef REFCLOCK
|
||||
|
||||
/* name of regex header file */
|
||||
#undef REGEX_HEADER
|
||||
|
||||
/* Do we want the ReliantUNIX clock hacks? */
|
||||
#undef RELIANTUNIX_CLOCK
|
||||
|
||||
/* Define as the return type of signal handlers (`int' or `void'). */
|
||||
#undef RETSIGTYPE
|
||||
|
||||
/* saveconfig mechanism */
|
||||
#undef SAVECONFIG
|
||||
|
||||
/* Do we want the SCO clock hacks? */
|
||||
#undef SCO5_CLOCK
|
||||
|
||||
@ -1216,9 +1280,6 @@
|
||||
/* canonical system (cpu-vendor-os) of where we should run */
|
||||
#undef STR_SYSTEM
|
||||
|
||||
/* Buggy syscall() (Solaris2.4)? */
|
||||
#undef SYSCALL_BUG
|
||||
|
||||
/* Does Xettimeofday take 1 arg? */
|
||||
#undef SYSV_TIMEOFDAY
|
||||
|
||||
@ -1252,9 +1313,6 @@ typedef unsigned int uintptr_t;
|
||||
/* Do we set process groups with -pid? */
|
||||
#undef UDP_BACKWARDS_SETOWN
|
||||
|
||||
/* How do we create unsigned long constants? */
|
||||
#undef ULONG_CONST
|
||||
|
||||
/* Must we have a CTTY for fsetown? */
|
||||
#undef USE_FSETOWNCTTY
|
||||
|
||||
@ -1292,12 +1350,6 @@ typedef unsigned int uintptr_t;
|
||||
/* configure --enable-ipv6 */
|
||||
#undef WANT_IPV6
|
||||
|
||||
/* Do we want the windows symmetric client hack? */
|
||||
#undef WINTIME
|
||||
|
||||
/* Define this if a working libregex can be found */
|
||||
#undef WITH_LIBREGEX
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
@ -1310,16 +1362,6 @@ typedef unsigned int uintptr_t;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Handle ss_family */
|
||||
#if !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE___SS_FAMILY_IN_SS)
|
||||
# define ss_family __ss_family
|
||||
#endif /* !defined(HAVE_SS_FAMILY_IN_SS) && defined(HAVE_SA_FAMILY_IN_SS) */
|
||||
|
||||
/* Handle ss_len */
|
||||
#if !defined(HAVE_SS_LEN_IN_SS) && defined(HAVE___SS_LEN_IN_SS)
|
||||
# define ss_len __ss_len
|
||||
#endif /* !defined(HAVE_SS_LEN_IN_SS) && defined(HAVE_SA_LEN_IN_SS) */
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#undef _MINIX
|
||||
|
||||
@ -1330,14 +1372,14 @@ typedef unsigned int uintptr_t;
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Are we _special_? */
|
||||
#undef __APPLE_USE_RFC_3542
|
||||
|
||||
/* Define to 1 if type `char' is unsigned and you are not using gcc. */
|
||||
#ifndef __CHAR_UNSIGNED__
|
||||
# undef __CHAR_UNSIGNED__
|
||||
#endif
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#undef __PROTOTYPES
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#undef const
|
||||
|
||||
@ -1353,17 +1395,27 @@ typedef unsigned int uintptr_t;
|
||||
/* Define to `long int' if <sys/types.h> does not define. */
|
||||
#undef off_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
#undef pid_t
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define to `long' if <sys/types.h> does not define. */
|
||||
#undef time_t
|
||||
|
||||
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||
#undef uid_t
|
||||
|
||||
/* Alternate uintptr_t for systems without it. */
|
||||
#undef uintptr_t
|
||||
/* Define as `fork' if `vfork' does not work. */
|
||||
#undef vfork
|
||||
|
||||
/* Does the compiler like "volatile"? */
|
||||
/* define away volatile? */
|
||||
#undef volatile
|
||||
|
||||
|
||||
#ifndef MPINFOU_PREDECLARED
|
||||
# define MPINFOU_PREDECLARED
|
||||
typedef union mpinfou { /* For lint */
|
||||
struct pdk_mpinfo *pdkptr;
|
||||
struct mpinfo *pikptr;
|
||||
} mpinfou_t;
|
||||
#endif
|
||||
|
||||
|
337
config.sub
vendored
337
config.sub
vendored
@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
# Configuration validation subroutine script.
|
||||
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
||||
# 2011 Free Software Foundation, Inc.
|
||||
|
||||
timestamp='2005-07-08'
|
||||
timestamp='2011-06-03'
|
||||
|
||||
# This file is (in principle) common to ALL GNU software.
|
||||
# The presence of a machine in this file suggests that SOME GNU software
|
||||
@ -31,13 +32,16 @@ timestamp='2005-07-08'
|
||||
|
||||
|
||||
# Please send patches to <config-patches@gnu.org>. Submit a context
|
||||
# diff and a properly formatted ChangeLog entry.
|
||||
# diff and a properly formatted GNU ChangeLog entry.
|
||||
#
|
||||
# Configuration subroutine to validate and canonicalize a configuration type.
|
||||
# Supply the specified configuration type as an argument.
|
||||
# If it is invalid, we print an error message on stderr and exit with code 1.
|
||||
# Otherwise, we print the canonical config type on stdout and succeed.
|
||||
|
||||
# You can get the latest version of this script from:
|
||||
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
||||
|
||||
# This file is supposed to be the same for all GNU packages
|
||||
# and recognize all the CPU types, system types and aliases
|
||||
# that are meaningful with *any* GNU software.
|
||||
@ -71,8 +75,9 @@ Report bugs and patches to <config-patches@gnu.org>."
|
||||
version="\
|
||||
GNU config.sub ($timestamp)
|
||||
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
Free Software Foundation, Inc.
|
||||
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
||||
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
|
||||
Software Foundation, Inc.
|
||||
|
||||
This is free software; see the source for copying conditions. There is NO
|
||||
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
|
||||
@ -119,8 +124,11 @@ esac
|
||||
# Here we must recognize all the valid KERNEL-OS combinations.
|
||||
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
||||
case $maybe_os in
|
||||
nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
|
||||
kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
|
||||
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
|
||||
linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
|
||||
knetbsd*-gnu* | netbsd*-gnu* | \
|
||||
kopensolaris*-gnu* | \
|
||||
storm-chaos* | os2-emx* | rtmk-nova*)
|
||||
os=-$maybe_os
|
||||
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
||||
;;
|
||||
@ -146,10 +154,13 @@ case $os in
|
||||
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
||||
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
||||
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
||||
-apple | -axis | -knuth | -cray)
|
||||
-apple | -axis | -knuth | -cray | -microblaze)
|
||||
os=
|
||||
basic_machine=$1
|
||||
;;
|
||||
-bluegene*)
|
||||
os=-cnk
|
||||
;;
|
||||
-sim | -cisco | -oki | -wec | -winbond)
|
||||
os=
|
||||
basic_machine=$1
|
||||
@ -164,13 +175,17 @@ case $os in
|
||||
os=-chorusos
|
||||
basic_machine=$1
|
||||
;;
|
||||
-chorusrdb)
|
||||
os=-chorusrdb
|
||||
-chorusrdb)
|
||||
os=-chorusrdb
|
||||
basic_machine=$1
|
||||
;;
|
||||
;;
|
||||
-hiux*)
|
||||
os=-hiuxwe2
|
||||
;;
|
||||
-sco6)
|
||||
os=-sco5v6
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco5)
|
||||
os=-sco3.2v5
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
@ -187,6 +202,10 @@ case $os in
|
||||
# Don't forget version if it is 3.2v4 or newer.
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco5v6*)
|
||||
# Don't forget version if it is 3.2v4 or newer.
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
;;
|
||||
-sco*)
|
||||
os=-sco3.2v2
|
||||
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
||||
@ -231,20 +250,24 @@ case $basic_machine in
|
||||
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
||||
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
||||
| am33_2.0 \
|
||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
|
||||
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
|
||||
| bfin \
|
||||
| c4x | clipper \
|
||||
| d10v | d30v | dlx | dsp16xx \
|
||||
| fr30 | frv \
|
||||
| fido | fr30 | frv \
|
||||
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
||||
| i370 | i860 | i960 | ia64 \
|
||||
| ip2k | iq2000 \
|
||||
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
|
||||
| lm32 \
|
||||
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
||||
| maxq | mb | microblaze | mcore | mep | metag \
|
||||
| mips | mipsbe | mipseb | mipsel | mipsle \
|
||||
| mips16 \
|
||||
| mips64 | mips64el \
|
||||
| mips64vr | mips64vrel \
|
||||
| mips64octeon | mips64octeonel \
|
||||
| mips64orion | mips64orionel \
|
||||
| mips64r5900 | mips64r5900el \
|
||||
| mips64vr | mips64vrel \
|
||||
| mips64vr4100 | mips64vr4100el \
|
||||
| mips64vr4300 | mips64vr4300el \
|
||||
| mips64vr5000 | mips64vr5000el \
|
||||
@ -257,35 +280,63 @@ case $basic_machine in
|
||||
| mipsisa64sr71k | mipsisa64sr71kel \
|
||||
| mipstx39 | mipstx39el \
|
||||
| mn10200 | mn10300 \
|
||||
| ms1 \
|
||||
| moxie \
|
||||
| mt \
|
||||
| msp430 \
|
||||
| nds32 | nds32le | nds32be \
|
||||
| nios | nios2 \
|
||||
| ns16k | ns32k \
|
||||
| open8 \
|
||||
| or32 \
|
||||
| pdp10 | pdp11 | pj | pjl \
|
||||
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
||||
| powerpc | powerpc64 | powerpc64le | powerpcle \
|
||||
| pyramid \
|
||||
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
|
||||
| rx \
|
||||
| score \
|
||||
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
||||
| sh64 | sh64le \
|
||||
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
|
||||
| sparcv8 | sparcv9 | sparcv9b \
|
||||
| strongarm \
|
||||
| tahoe | thumb | tic4x | tic80 | tron \
|
||||
| v850 | v850e \
|
||||
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
||||
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
||||
| spu \
|
||||
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
|
||||
| ubicom32 \
|
||||
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
|
||||
| we32k \
|
||||
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
|
||||
| z8k)
|
||||
| x86 | xc16x | xstormy16 | xtensa \
|
||||
| z8k | z80)
|
||||
basic_machine=$basic_machine-unknown
|
||||
;;
|
||||
m32c)
|
||||
basic_machine=$basic_machine-unknown
|
||||
c54x)
|
||||
basic_machine=tic54x-unknown
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12)
|
||||
c55x)
|
||||
basic_machine=tic55x-unknown
|
||||
;;
|
||||
c6x)
|
||||
basic_machine=tic6x-unknown
|
||||
;;
|
||||
m6811 | m68hc11 | m6812 | m68hc12 | picochip)
|
||||
# Motorola 68HC11/12.
|
||||
basic_machine=$basic_machine-unknown
|
||||
os=-none
|
||||
;;
|
||||
m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
|
||||
;;
|
||||
ms1)
|
||||
basic_machine=mt-unknown
|
||||
;;
|
||||
|
||||
strongarm | thumb | xscale)
|
||||
basic_machine=arm-unknown
|
||||
;;
|
||||
|
||||
xscaleeb)
|
||||
basic_machine=armeb-unknown
|
||||
;;
|
||||
|
||||
xscaleel)
|
||||
basic_machine=armel-unknown
|
||||
;;
|
||||
|
||||
# We use `pc' rather than `unknown'
|
||||
# because (1) that's what they normally are, and
|
||||
@ -305,25 +356,28 @@ case $basic_machine in
|
||||
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
||||
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
||||
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
||||
| avr-* \
|
||||
| avr-* | avr32-* \
|
||||
| bfin-* | bs2000-* \
|
||||
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
||||
| c[123]* | c30-* | [cjt]90-* | c4x-* \
|
||||
| clipper-* | craynv-* | cydra-* \
|
||||
| d10v-* | d30v-* | dlx-* \
|
||||
| elxsi-* \
|
||||
| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
|
||||
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
||||
| h8300-* | h8500-* \
|
||||
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
||||
| i*86-* | i860-* | i960-* | ia64-* \
|
||||
| ip2k-* | iq2000-* \
|
||||
| m32r-* | m32rle-* \
|
||||
| lm32-* \
|
||||
| m32c-* | m32r-* | m32rle-* \
|
||||
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
||||
| m88110-* | m88k-* | maxq-* | mcore-* \
|
||||
| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
|
||||
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
||||
| mips16-* \
|
||||
| mips64-* | mips64el-* \
|
||||
| mips64vr-* | mips64vrel-* \
|
||||
| mips64octeon-* | mips64octeonel-* \
|
||||
| mips64orion-* | mips64orionel-* \
|
||||
| mips64r5900-* | mips64r5900el-* \
|
||||
| mips64vr-* | mips64vrel-* \
|
||||
| mips64vr4100-* | mips64vr4100el-* \
|
||||
| mips64vr4300-* | mips64vr4300el-* \
|
||||
| mips64vr5000-* | mips64vr5000el-* \
|
||||
@ -336,30 +390,38 @@ case $basic_machine in
|
||||
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
|
||||
| mipstx39-* | mipstx39el-* \
|
||||
| mmix-* \
|
||||
| ms1-* \
|
||||
| mt-* \
|
||||
| msp430-* \
|
||||
| nds32-* | nds32le-* | nds32be-* \
|
||||
| nios-* | nios2-* \
|
||||
| none-* | np1-* | ns16k-* | ns32k-* \
|
||||
| open8-* \
|
||||
| orion-* \
|
||||
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
||||
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
|
||||
| pyramid-* \
|
||||
| romp-* | rs6000-* \
|
||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
|
||||
| romp-* | rs6000-* | rx-* \
|
||||
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
||||
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
||||
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
|
||||
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
||||
| sparclite-* \
|
||||
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
|
||||
| tahoe-* | thumb-* \
|
||||
| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
|
||||
| tahoe-* \
|
||||
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
||||
| tile*-* \
|
||||
| tron-* \
|
||||
| v850-* | v850e-* | vax-* \
|
||||
| ubicom32-* \
|
||||
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
|
||||
| vax-* \
|
||||
| we32k-* \
|
||||
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
|
||||
| xstormy16-* | xtensa-* \
|
||||
| x86-* | x86_64-* | xc16x-* | xps100-* \
|
||||
| xstormy16-* | xtensa*-* \
|
||||
| ymp-* \
|
||||
| z8k-*)
|
||||
| z8k-* | z80-*)
|
||||
;;
|
||||
m32c-*)
|
||||
# Recognize the basic CPU types without company name, with glob match.
|
||||
xtensa*)
|
||||
basic_machine=$basic_machine-unknown
|
||||
;;
|
||||
# Recognize the various machine names and aliases which stand
|
||||
# for a CPU type and a company and sometimes even an OS.
|
||||
@ -377,7 +439,7 @@ case $basic_machine in
|
||||
basic_machine=a29k-amd
|
||||
os=-udi
|
||||
;;
|
||||
abacus)
|
||||
abacus)
|
||||
basic_machine=abacus-unknown
|
||||
;;
|
||||
adobe68k)
|
||||
@ -423,6 +485,10 @@ case $basic_machine in
|
||||
basic_machine=m68k-apollo
|
||||
os=-bsd
|
||||
;;
|
||||
aros)
|
||||
basic_machine=i386-pc
|
||||
os=-aros
|
||||
;;
|
||||
aux)
|
||||
basic_machine=m68k-apple
|
||||
os=-aux
|
||||
@ -431,10 +497,35 @@ case $basic_machine in
|
||||
basic_machine=ns32k-sequent
|
||||
os=-dynix
|
||||
;;
|
||||
blackfin)
|
||||
basic_machine=bfin-unknown
|
||||
os=-linux
|
||||
;;
|
||||
blackfin-*)
|
||||
basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
os=-linux
|
||||
;;
|
||||
bluegene*)
|
||||
basic_machine=powerpc-ibm
|
||||
os=-cnk
|
||||
;;
|
||||
c54x-*)
|
||||
basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
c55x-*)
|
||||
basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
c6x-*)
|
||||
basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
c90)
|
||||
basic_machine=c90-cray
|
||||
os=-unicos
|
||||
;;
|
||||
cegcc)
|
||||
basic_machine=arm-unknown
|
||||
os=-cegcc
|
||||
;;
|
||||
convex-c1)
|
||||
basic_machine=c1-convex
|
||||
os=-bsd
|
||||
@ -463,8 +554,8 @@ case $basic_machine in
|
||||
basic_machine=craynv-cray
|
||||
os=-unicosmp
|
||||
;;
|
||||
cr16c)
|
||||
basic_machine=cr16c-unknown
|
||||
cr16 | cr16-*)
|
||||
basic_machine=cr16-unknown
|
||||
os=-elf
|
||||
;;
|
||||
crds | unos)
|
||||
@ -502,6 +593,10 @@ case $basic_machine in
|
||||
basic_machine=m88k-motorola
|
||||
os=-sysv3
|
||||
;;
|
||||
dicos)
|
||||
basic_machine=i686-pc
|
||||
os=-dicos
|
||||
;;
|
||||
djgpp)
|
||||
basic_machine=i586-pc
|
||||
os=-msdosdjgpp
|
||||
@ -656,6 +751,14 @@ case $basic_machine in
|
||||
basic_machine=m68k-isi
|
||||
os=-sysv
|
||||
;;
|
||||
m68knommu)
|
||||
basic_machine=m68k-unknown
|
||||
os=-linux
|
||||
;;
|
||||
m68knommu-*)
|
||||
basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
os=-linux
|
||||
;;
|
||||
m88k-omron*)
|
||||
basic_machine=m88k-omron
|
||||
;;
|
||||
@ -667,10 +770,17 @@ case $basic_machine in
|
||||
basic_machine=ns32k-utek
|
||||
os=-sysv
|
||||
;;
|
||||
microblaze)
|
||||
basic_machine=microblaze-xilinx
|
||||
;;
|
||||
mingw32)
|
||||
basic_machine=i386-pc
|
||||
os=-mingw32
|
||||
;;
|
||||
mingw32ce)
|
||||
basic_machine=arm-unknown
|
||||
os=-mingw32ce
|
||||
;;
|
||||
miniframe)
|
||||
basic_machine=m68000-convergent
|
||||
;;
|
||||
@ -696,6 +806,9 @@ case $basic_machine in
|
||||
basic_machine=i386-pc
|
||||
os=-msdos
|
||||
;;
|
||||
ms1-*)
|
||||
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
||||
;;
|
||||
mvs)
|
||||
basic_machine=i370-ibm
|
||||
os=-mvs
|
||||
@ -764,6 +877,12 @@ case $basic_machine in
|
||||
np1)
|
||||
basic_machine=np1-gould
|
||||
;;
|
||||
neo-tandem)
|
||||
basic_machine=neo-tandem
|
||||
;;
|
||||
nse-tandem)
|
||||
basic_machine=nse-tandem
|
||||
;;
|
||||
nsr-tandem)
|
||||
basic_machine=nsr-tandem
|
||||
;;
|
||||
@ -794,6 +913,14 @@ case $basic_machine in
|
||||
basic_machine=i860-intel
|
||||
os=-osf
|
||||
;;
|
||||
parisc)
|
||||
basic_machine=hppa-unknown
|
||||
os=-linux
|
||||
;;
|
||||
parisc-*)
|
||||
basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
os=-linux
|
||||
;;
|
||||
pbd)
|
||||
basic_machine=sparc-tti
|
||||
;;
|
||||
@ -803,6 +930,12 @@ case $basic_machine in
|
||||
pc532 | pc532-*)
|
||||
basic_machine=ns32k-pc532
|
||||
;;
|
||||
pc98)
|
||||
basic_machine=i386-pc
|
||||
;;
|
||||
pc98-*)
|
||||
basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
pentium | p5 | k5 | k6 | nexgen | viac3)
|
||||
basic_machine=i586-pc
|
||||
;;
|
||||
@ -832,9 +965,10 @@ case $basic_machine in
|
||||
;;
|
||||
power) basic_machine=power-ibm
|
||||
;;
|
||||
ppc) basic_machine=powerpc-unknown
|
||||
ppc | ppcbe) basic_machine=powerpc-unknown
|
||||
;;
|
||||
ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
ppc-* | ppcbe-*)
|
||||
basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
ppcle | powerpclittle | ppc-le | powerpc-little)
|
||||
basic_machine=powerpcle-unknown
|
||||
@ -859,6 +993,10 @@ case $basic_machine in
|
||||
basic_machine=i586-unknown
|
||||
os=-pw32
|
||||
;;
|
||||
rdos)
|
||||
basic_machine=i386-pc
|
||||
os=-rdos
|
||||
;;
|
||||
rom68k)
|
||||
basic_machine=m68k-rom68k
|
||||
os=-coff
|
||||
@ -885,6 +1023,10 @@ case $basic_machine in
|
||||
sb1el)
|
||||
basic_machine=mipsisa64sb1el-unknown
|
||||
;;
|
||||
sde)
|
||||
basic_machine=mipsisa32-sde
|
||||
os=-elf
|
||||
;;
|
||||
sei)
|
||||
basic_machine=mips-sei
|
||||
os=-seiux
|
||||
@ -896,6 +1038,9 @@ case $basic_machine in
|
||||
basic_machine=sh-hitachi
|
||||
os=-hms
|
||||
;;
|
||||
sh5el)
|
||||
basic_machine=sh5le-unknown
|
||||
;;
|
||||
sh64)
|
||||
basic_machine=sh64-unknown
|
||||
;;
|
||||
@ -917,6 +1062,9 @@ case $basic_machine in
|
||||
basic_machine=i860-stratus
|
||||
os=-sysv4
|
||||
;;
|
||||
strongarm-* | thumb-*)
|
||||
basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
|
||||
;;
|
||||
sun2)
|
||||
basic_machine=m68000-sun
|
||||
;;
|
||||
@ -973,17 +1121,9 @@ case $basic_machine in
|
||||
basic_machine=t90-cray
|
||||
os=-unicos
|
||||
;;
|
||||
tic54x | c54x*)
|
||||
basic_machine=tic54x-unknown
|
||||
os=-coff
|
||||
;;
|
||||
tic55x | c55x*)
|
||||
basic_machine=tic55x-unknown
|
||||
os=-coff
|
||||
;;
|
||||
tic6x | c6x*)
|
||||
basic_machine=tic6x-unknown
|
||||
os=-coff
|
||||
tile*)
|
||||
basic_machine=$basic_machine-unknown
|
||||
os=-linux-gnu
|
||||
;;
|
||||
tx39)
|
||||
basic_machine=mipstx39-unknown
|
||||
@ -1052,6 +1192,9 @@ case $basic_machine in
|
||||
xps | xps100)
|
||||
basic_machine=xps100-honeywell
|
||||
;;
|
||||
xscale-* | xscalee[bl]-*)
|
||||
basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
|
||||
;;
|
||||
ymp)
|
||||
basic_machine=ymp-cray
|
||||
os=-unicos
|
||||
@ -1060,6 +1203,10 @@ case $basic_machine in
|
||||
basic_machine=z8k-unknown
|
||||
os=-sim
|
||||
;;
|
||||
z80-*-coff)
|
||||
basic_machine=z80-unknown
|
||||
os=-sim
|
||||
;;
|
||||
none)
|
||||
basic_machine=none-none
|
||||
os=-none
|
||||
@ -1098,10 +1245,10 @@ case $basic_machine in
|
||||
we32k)
|
||||
basic_machine=we32k-att
|
||||
;;
|
||||
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
||||
basic_machine=sh-unknown
|
||||
;;
|
||||
sparc | sparcv8 | sparcv9 | sparcv9b)
|
||||
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
||||
basic_machine=sparc-sun
|
||||
;;
|
||||
cydra)
|
||||
@ -1145,9 +1292,12 @@ esac
|
||||
if [ x"$os" != x"" ]
|
||||
then
|
||||
case $os in
|
||||
# First match some system type aliases
|
||||
# that might get confused with valid system types.
|
||||
# First match some system type aliases
|
||||
# that might get confused with valid system types.
|
||||
# -solaris* is a basic system type, with this one exception.
|
||||
-auroraux)
|
||||
os=-auroraux
|
||||
;;
|
||||
-solaris1 | -solaris1.*)
|
||||
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
||||
;;
|
||||
@ -1168,27 +1318,31 @@ case $os in
|
||||
# Each alternative MUST END IN A *, to match a version number.
|
||||
# -sysv* is not here because it comes later, after sysvr4.
|
||||
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
||||
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||
| -sym* | -kopensolaris* \
|
||||
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
||||
| -aos* \
|
||||
| -aos* | -aros* \
|
||||
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
||||
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
||||
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
|
||||
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
||||
| -openbsd* | -solidbsd* \
|
||||
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
||||
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
||||
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
||||
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
||||
| -chorusos* | -chorusrdb* \
|
||||
| -chorusos* | -chorusrdb* | -cegcc* \
|
||||
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
||||
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
| -mingw32* | -linux-gnu* | -linux-android* \
|
||||
| -linux-newlib* | -linux-uclibc* \
|
||||
| -uxpv* | -beos* | -mpeix* | -udk* \
|
||||
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
||||
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
||||
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
||||
| -skyos* | -haiku*)
|
||||
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
|
||||
# Remember, each alternative MUST END IN *, to match a version number.
|
||||
;;
|
||||
-qnx*)
|
||||
@ -1227,7 +1381,7 @@ case $os in
|
||||
-opened*)
|
||||
os=-openedition
|
||||
;;
|
||||
-os400*)
|
||||
-os400*)
|
||||
os=-os400
|
||||
;;
|
||||
-wince*)
|
||||
@ -1276,7 +1430,7 @@ case $os in
|
||||
-sinix*)
|
||||
os=-sysv4
|
||||
;;
|
||||
-tpf*)
|
||||
-tpf*)
|
||||
os=-tpf
|
||||
;;
|
||||
-triton*)
|
||||
@ -1318,6 +1472,11 @@ case $os in
|
||||
-zvmoe)
|
||||
os=-zvmoe
|
||||
;;
|
||||
-dicos*)
|
||||
os=-dicos
|
||||
;;
|
||||
-nacl*)
|
||||
;;
|
||||
-none)
|
||||
;;
|
||||
*)
|
||||
@ -1340,6 +1499,12 @@ else
|
||||
# system, and we'll never get to this point.
|
||||
|
||||
case $basic_machine in
|
||||
score-*)
|
||||
os=-elf
|
||||
;;
|
||||
spu-*)
|
||||
os=-elf
|
||||
;;
|
||||
*-acorn)
|
||||
os=-riscix1.2
|
||||
;;
|
||||
@ -1349,9 +1514,18 @@ case $basic_machine in
|
||||
arm*-semi)
|
||||
os=-aout
|
||||
;;
|
||||
c4x-* | tic4x-*)
|
||||
os=-coff
|
||||
;;
|
||||
c4x-* | tic4x-*)
|
||||
os=-coff
|
||||
;;
|
||||
tic54x-*)
|
||||
os=-coff
|
||||
;;
|
||||
tic55x-*)
|
||||
os=-coff
|
||||
;;
|
||||
tic6x-*)
|
||||
os=-coff
|
||||
;;
|
||||
# This must come before the *-dec entry.
|
||||
pdp10-*)
|
||||
os=-tops20
|
||||
@ -1377,6 +1551,9 @@ case $basic_machine in
|
||||
m68*-cisco)
|
||||
os=-aout
|
||||
;;
|
||||
mep-*)
|
||||
os=-elf
|
||||
;;
|
||||
mips*-cisco)
|
||||
os=-elf
|
||||
;;
|
||||
@ -1401,7 +1578,7 @@ case $basic_machine in
|
||||
*-ibm)
|
||||
os=-aix
|
||||
;;
|
||||
*-knuth)
|
||||
*-knuth)
|
||||
os=-mmixware
|
||||
;;
|
||||
*-wec)
|
||||
@ -1506,7 +1683,7 @@ case $basic_machine in
|
||||
-sunos*)
|
||||
vendor=sun
|
||||
;;
|
||||
-aix*)
|
||||
-cnk*|-aix*)
|
||||
vendor=ibm
|
||||
;;
|
||||
-beos*)
|
||||
|
6322
configure.ac
6322
configure.ac
File diff suppressed because it is too large
Load Diff
67
depsver.mf
Normal file
67
depsver.mf
Normal file
@ -0,0 +1,67 @@
|
||||
$(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ -f $@ ] || \
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
@[ -w $@ ] || \
|
||||
chmod ug+w $@
|
||||
@cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
|
||||
$(MAKE) clean && \
|
||||
echo -n "Prior $(subdir)/$(DEPDIR) version " && \
|
||||
cat $@ && \
|
||||
rm -rf $(DEPDIR) && \
|
||||
mkdir $(DEPDIR) && \
|
||||
case "$(top_builddir)" in \
|
||||
.) \
|
||||
./config.status Makefile depfiles \
|
||||
;; \
|
||||
..) \
|
||||
cd .. && \
|
||||
./config.status $(subdir)/Makefile depfiles && \
|
||||
cd $(subdir) \
|
||||
;; \
|
||||
*) \
|
||||
echo 'Fatal: depsver.mf Automake fragment limited' \
|
||||
'to immediate subdirectories.' && \
|
||||
echo "top_builddir: $(top_builddir)" && \
|
||||
echo "subdir: $(subdir)" && \
|
||||
exit 1 \
|
||||
;; \
|
||||
esac && \
|
||||
echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
|
||||
cat $(top_srcdir)/deps-ver \
|
||||
)
|
||||
cp $(top_srcdir)/deps-ver $@
|
||||
|
||||
.deps-ver: $(top_srcdir)/deps-ver
|
||||
@[ ! -d $(DEPDIR) ] || $(MAKE) $(DEPDIR)/deps-ver
|
||||
@touch $@
|
||||
|
||||
BUILT_SOURCES += .deps-ver
|
||||
CLEANFILES += .deps-ver
|
||||
|
||||
#
|
||||
# depsver.mf included in Makefile.am for directories with .deps
|
||||
#
|
||||
# When building in the same directory with sources that change over
|
||||
# time, such as when tracking using bk, the .deps files can become
|
||||
# stale with respect to moved, deleted, or superceded headers. Most
|
||||
# commonly, this would exhibit as make reporting a failure to make a
|
||||
# header file which is no longer in the location given. To address
|
||||
# this issue, we use a deps-ver file which is updated with each change
|
||||
# that breaks old .deps files. A copy of deps-ver is made into
|
||||
# $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
|
||||
# with different contents than deps-ver, we make clean to ensure all
|
||||
# .o files built before the incompatible change are rebuilt along with
|
||||
# their updated .deps files, then remove $(DEPDIR) and recreate it as
|
||||
# empty stubs.
|
||||
#
|
||||
# It is normal when configured with --disable-dependency-tracking for
|
||||
# the DEPDIR to not have been created. For this reason, we use the
|
||||
# intermediate target .deps-ver, which invokes make recursively if
|
||||
# DEPDIR exists.
|
||||
#
|
||||
# If you modify depsver.mf, please make the changes to the master
|
||||
# copy, the one in sntp is copied by the bootstrap script from it.
|
||||
#
|
||||
# This comment block follows rather than leads the related code so that
|
||||
# it stays with it in the generated Makefile.in and Makefile.
|
||||
#
|
@ -1,13 +1,14 @@
|
||||
;; This is how Dave Mills likes to see the code formatted.
|
||||
;; This is how Dave Mills likes to see the NTP code formatted.
|
||||
|
||||
(defconst ntp-c-style
|
||||
'((c-basic-offset . 8)
|
||||
'((c-basic-offset . 8)
|
||||
(fill-column . 72)
|
||||
(c-offsets-alist . ((arglist-intro . +)
|
||||
(case-label . *)
|
||||
(statement-case-intro . *)
|
||||
(statement-cont . *)
|
||||
(substatement-open . 0))))
|
||||
"Dave L. Mills; programming style for use with ntp")
|
||||
"David L. Mills; NTP code indentation style")
|
||||
|
||||
(defun ntp-c-mode-common-hook ()
|
||||
;; add ntp c style
|
||||
|
114
flock-build
114
flock-build
@ -1,14 +1,32 @@
|
||||
#! /bin/sh
|
||||
|
||||
IAM=`hostname || uname -n`
|
||||
MYNAME=`IFS=. ; set $IAM ; echo $1`
|
||||
|
||||
case "$1" in
|
||||
'--one'|'-1')
|
||||
shift
|
||||
FB_FIRSTONLY=1
|
||||
LIST=$MYNAME
|
||||
;;
|
||||
*)
|
||||
FB_FIRSTONLY=0
|
||||
esac
|
||||
|
||||
BUILD_ARGS="$@"
|
||||
PARSE="--enable-parse-clocks"
|
||||
#PARSE=
|
||||
STD="--enable-simulator"
|
||||
|
||||
case "$SIMUL" in
|
||||
'') PARALLEL_BUILDS=1
|
||||
;;
|
||||
*) PARALLEL_BUILDS=$SIMUL
|
||||
case "$SIMUL::$FB_FIRSTONLY" in
|
||||
::*)
|
||||
PARALLEL_BUILDS=1
|
||||
;;
|
||||
*::0)
|
||||
PARALLEL_BUILDS=$SIMUL
|
||||
;;
|
||||
*)
|
||||
PARALLEL_BUILDS=1
|
||||
esac
|
||||
|
||||
case "$PARALLEL_BUILDS" in
|
||||
@ -30,7 +48,6 @@ esac
|
||||
# Campus:
|
||||
# * baldwin sparc-sun-solaris2.10
|
||||
# * bridgeport sparc-sun-solaris2.10
|
||||
# * cowbird freebsd-6.1
|
||||
# * malarky sparc-sun-solaris2.10
|
||||
# * pogo sparc-sun-solaris2.10
|
||||
# * rackety freebsd-6.1
|
||||
@ -42,7 +59,7 @@ c_d=${PWD:-`pwd`}
|
||||
SIG=`perl -e 'print rand'`
|
||||
|
||||
case "$LIST" in
|
||||
'') LIST="baldwin bridgeport cowbird malarky pogo rackety" ;;
|
||||
'') LIST="malarky rackety" ;;
|
||||
esac
|
||||
|
||||
for i in $LIST
|
||||
@ -51,56 +68,61 @@ do
|
||||
[ -f .buildkey-$i ] && SKIPTHIS=1
|
||||
case "$SKIPTHIS" in
|
||||
1)
|
||||
echo flock-build running on $i? check LIST, skipping
|
||||
;;
|
||||
0)
|
||||
echo $i
|
||||
echo $SIG > .buildkey-$i
|
||||
case "1" in
|
||||
0)
|
||||
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
|
||||
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
|
||||
ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks $BUILD_ARGS" &
|
||||
;;
|
||||
1)
|
||||
cat > .flockbuild-$i-$SIG <<ENDQUOT
|
||||
#!/bin/sh
|
||||
echo flock-build running on $i? check LIST, skipping
|
||||
;;
|
||||
0)
|
||||
echo $i
|
||||
echo $SIG > .buildkey-$i
|
||||
case "1" in
|
||||
0)
|
||||
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
|
||||
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
|
||||
ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks $BUILD_ARGS" &
|
||||
;;
|
||||
1)
|
||||
cat > .flockbuild-$i-$SIG <<-ENDQUOT
|
||||
#!/bin/sh
|
||||
|
||||
# depends on job control and expects to be invoked under ssh -tt
|
||||
# script uses job control and expects to be invoked
|
||||
# in a ssh session started with the -tt option,
|
||||
# which forces a pseudo-tty to be used.
|
||||
|
||||
cd $c_d
|
||||
COUNT=0
|
||||
|
||||
cd $c_d
|
||||
COUNT=0
|
||||
./build $SIG $PARSE $STD $BUILD_ARGS &
|
||||
|
||||
./build $SIG $PARSE $STD $BUILD_ARGS &
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
case $FB_FIRSTONLY in
|
||||
'0')
|
||||
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS &
|
||||
|
||||
./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS &
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS &
|
||||
|
||||
./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS &
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo $i started build \$COUNT of 4
|
||||
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
|
||||
./build $SIG $STD --disable-all-clocks $BUILD_ARGS &
|
||||
|
||||
./build $SIG $STD --disable-all-clocks $BUILD_ARGS &
|
||||
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo $i started build \$COUNT of 4
|
||||
wait
|
||||
echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
|
||||
rm .buildkey-$i
|
||||
COUNT=\`expr \$COUNT + 1\`
|
||||
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
|
||||
wait
|
||||
esac
|
||||
echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
|
||||
rm .buildkey-$i
|
||||
ENDQUOT
|
||||
chmod +x .flockbuild-$i-$SIG
|
||||
ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
|
||||
rm $c_d/.flockbuild-$i-$SIG" 2>/dev/null &
|
||||
esac
|
||||
chmod +x .flockbuild-$i-$SIG
|
||||
ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
|
||||
rm $c_d/.flockbuild-$i-$SIG" 2>/dev/null &
|
||||
esac
|
||||
esac
|
||||
done
|
||||
echo `date -u '+%H:%M:%S'` flock-build launched
|
||||
|
259
html/accopt.html
259
html/accopt.html
@ -1,73 +1,202 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Access Control Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.style1 {
|
||||
color: #FF0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Access Control Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<body>
|
||||
<h3>Access Control Options</h3>
|
||||
<img src="pic/pogo6.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>The skunk watches for intruders and sprays.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:35</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links7.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#acx">Access Control Support</a>
|
||||
<li class="inline"><a href="#kiss">The Kiss-of-Death Packet</a>
|
||||
<li class="inline"><a href="#cmd">Access Control Commands</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="acx">Access Control Support</h4>
|
||||
The<tt> ntpd</tt> daemon implements a general purpose address/mask based restriction list. The list contains address/match entries sorted first by increasing address values and and then by increasing mask values. A match occurs when the bitwise AND of the mask and the packet source address is equal to the bitwise AND of the mask and address in the list. The list is searched in order with the last match found defining the restriction flags associated with the entry. Additional information and examples can be found in the <a href="notes.html">Notes on Configuring NTP and Setting up a NTP Subnet</a> page.
|
||||
<p>The restriction facility was implemented in conformance with the access policies for the original NSFnet backbone time servers. Later the facility was expanded to deflect cryptographic and clogging attacks. While this facility may be useful for keeping unwanted or broken or malicious clients from congesting innocent servers, it should not be considered an alternative to the NTP authentication facilities. Source address based restrictions are easily circumvented by a determined cracker.</p>
|
||||
<p>Clients can be denied service because they are explicitly included in the restrict list created by the <tt>restrict</tt> command or implicitly as the result of cryptographic or rate limit violations. Cryptographic violations include certificate or identity verification failure; rate limit violations generally result from defective NTP implementations that send packets at abusive rates. Some violations cause denied service only for the offending packet, others cause denied service for a timed period and others cause the denied service for an indefinate period. When a client or network is denied access for an indefinate period, the only way at present to remove the restrictions is by restarting the server.</p>
|
||||
<h4 id="kiss">The Kiss-of-Death Packet</h4>
|
||||
<p>Ordinarily, packets denied service are simply dropped with no further action except incrementing statistics counters. Sometimes a more proactive response is needed, such as a server message that explicitly requests the client to stop sending and leave a message for the system operator. A special packet format has been created for this purpose called the "kiss-o'-death" (KoD) packet. KoD packets have the leap bits set unsynchronized and stratum set to zero and the reference identifier field set to a four-byte ASCII code. If the <tt>noserve</tt> or <tt>notrust</tt> flag of the matching restrict list entry is set, the code is "DENY"; if the <tt>limited</tt> flag is set and the rate limit is exceeded, the code is "RATE". Finally, if a cryptographic violation occurs, the code is "CRYP".</p>
|
||||
<p>A client receiving a KoD performs a set of sanity checks to minimize security exposure, then updates the stratum and reference identifier peer variables, sets the access denied (TEST4) bit in the peer flash variable and sends a message to the log. As long as the TEST4 bit is set, the client will send no further packets to the server. The only way at present to recover from this condition is to restart the protocol at both the client and server. This happens automatically at the client when the association times out. It will happen at the server only if the server operator cooperates.</p>
|
||||
<h4 id="cmd">Access Control Commands</h4>
|
||||
<dl>
|
||||
<dt><tt>discard [ average <i>avg</i> ][ minimum <i>min</i> ] [ monitor <i>prob</i> ]</tt>
|
||||
<dd>Set the parameters of the <tt>limited</tt> facility which protects the server from client abuse. The <tt>average</tt> subcommand specifies the minimum average packet spacing, while the <tt>minimum</tt> subcommand specifies the minimum packet spacing. Packets that violate these minima are discarded and a kiss-o'-death packet returned if enabled. The default minimum average and minimum are 5 and 2, respectively. The monitor subcommand specifies the probability of discard for packets that overflow the rate-control window.
|
||||
<dt><tt>restrict <i>address</i> [mask <i>mask</i>] [<i>flag</i>][...]</tt>
|
||||
<dd>The <i><tt>address</tt></i> argument expressed in dotted-quad form is the address of a host or network. Alternatively, the <tt><i>address</i></tt> argument can be a valid host DNS name. The <i><tt>mask</tt></i> argument expressed in dotted-quad form defaults to <tt>255.255.255.255</tt>, meaning that the <i><tt>address</tt></i> is treated as the address of an individual host. A default entry (address <tt>0.0.0.0</tt>, mask <tt>0.0.0.0</tt>) is always included and is always the first entry in the list. Note that text string <tt>default</tt>, with no mask option, may be used to indicate the default entry.
|
||||
<dd>In the current implementation, <i><tt>flag</tt></i> always restricts access, i.e., an entry with no flags indicates that free access to the server is to be given. The flags are not orthogonal, in that more restrictive flags will often make less restrictive ones redundant. The flags can generally be classed into two catagories, those which restrict time service and those which restrict informational queries and attempts to do run-time reconfiguration of the server. One or more of the following flags may be specified:
|
||||
<dl>
|
||||
<dt><tt>ignore</tt>
|
||||
<dd>Deny packets of all kinds, including <tt>ntpq</tt> and <tt>ntpdc</tt> queries.
|
||||
<dt><tt>kod</tt>
|
||||
<dd>If this flag is set when an access violation occurs, a kiss-o'-death (KoD) packet is sent. KoD packets are rate limited to no more than one per second. If another KoD packet occurs within one second after the last one, the packet is dropped
|
||||
<dt><tt>limited</tt>
|
||||
<dd>Deny service if the packet spacing violates the lower limits specified in the <tt>discard</tt> command. A history of clients is kept using the monitoring capability of <tt>ntpd</tt>. Thus, monitoring is always active as long as there is a restriction entry with the <tt>limited</tt> flag.
|
||||
<dt><tt>lowpriotrap</tt>
|
||||
<dd>Declare traps set by matching hosts to be low priority. The number of traps a server can maintain is limited (the current limit is 3). Traps are usually assigned on a first come, first served basis, with later trap requestors being denied service. This flag modifies the assignment algorithm by allowing low priority traps to be overridden by later requests for normal priority traps.
|
||||
<dt><tt>nomodify</tt>
|
||||
<dd>Deny <tt>ntpq</tt> and <tt>ntpdc</tt> queries which attempt to modify the state of the server (i.e., run time reconfiguration). Queries which return information are permitted.
|
||||
<dt><tt>noquery</tt>
|
||||
<dd>Deny <tt>ntpq</tt> and <tt>ntpdc</tt> queries. Time service is not affected.
|
||||
<dt><tt>nopeer</tt>
|
||||
<dd>Deny packets which would result in mobilizing a new association. This includes broadcast, symmetric-active and manycast client packets when a configured association does not exist.
|
||||
<dt><tt>noserve</tt>
|
||||
<dd>Deny all packets except <tt>ntpq</tt> and <tt>ntpdc</tt> queries.
|
||||
<dt><tt>notrap</tt>
|
||||
<dd>Decline to provide mode 6 control message trap service to matching hosts. The trap service is a subsystem of the <tt>ntpdq</tt> control message protocol which is intended for use by remote event logging programs.
|
||||
<dt><tt>notrust</tt>
|
||||
<dd>Deny packets unless the packet is cryptographically authenticated.
|
||||
<dt><tt>ntpport</tt>
|
||||
<dd>This is actually a match algorithm modifier, rather than a restriction flag. Its presence causes the restriction entry to be matched only if the source port in the packet is the standard NTP UDP port (123). Both <tt>ntpport</tt> and <tt>non-ntpport</tt> may be specified. The <tt>ntpport</tt> is considered more specific and is sorted later in the list.
|
||||
<dt><tt>version</tt>
|
||||
<dd>Deny packets that do not match the current NTP version.
|
||||
</dl>
|
||||
<dd>Default restriction list entries with the flags <tt>ignore, interface, ntpport</tt>, for each of the local host's interface addresses are inserted into the table at startup to prevent the server from attempting to synchronize to its own time. A default entry is also always present, though if it is otherwise unconfigured; no flags are associated with the default entry (i.e., everything besides your own NTP server is unrestricted).
|
||||
<h3>Access Control Options</h3>
|
||||
|
||||
<img src="pic/pogo6.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
|
||||
<p>The skunk watches for intruders and sprays.</p>
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->30-Sep-2009 17:16<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<br clear="left">
|
||||
|
||||
<h4>Related Links</h4>
|
||||
|
||||
<script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/accopt.txt"></script>
|
||||
|
||||
<h4>Table of Contents</h4>
|
||||
|
||||
<ul>
|
||||
<li class="inline"><a href="#acx">Access Control Support</a></li>
|
||||
<li class="inline"><a href="#cmd">Access Control Commands</a></li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4 id="acx">Access Control Support</h4>
|
||||
|
||||
<p>The <tt>ntpd</tt> daemon implements a general purpose access control list
|
||||
(ACL) containing address/match entries sorted first by increasing address
|
||||
values and then by increasing mask values. A match occurs when the bitwise
|
||||
AND of the mask and the packet source address is equal to the bitwise AND of
|
||||
the mask and address in the list. The list is searched in order with the last
|
||||
match found defining the restriction flags associated with the entry.</p>
|
||||
|
||||
<p>An example may clarify how it works. Our campus has two class-B networks,
|
||||
128.4 for the ECE and CIS departments and 128.175 for the rest of campus.
|
||||
Let's assume (not true!) that subnet 128.4.1 homes critical services like class
|
||||
rosters and spread sheets. A suitable ACL might be</p>
|
||||
<pre>
|
||||
restrict default nopeer # deny new associations
|
||||
restrict 128.175.0.0 mask 255.255.0.0 # allow campus access
|
||||
restrict 128.4.0.0 mask 255.255.0.0 none # allow ECE and CIS access
|
||||
restrict 128.4.1.0 mask 255.255.255.0 notrust # require authentication on subnet 1
|
||||
restrict time.nist.gov # allow access
|
||||
</pre>
|
||||
|
||||
<p>While this facility may be useful for keeping unwanted, broken or malicious clients from congesting innocent servers, it should not be considered an alternative to the NTP authentication facilities. Source address based restrictions are easily circumvented by a determined cracker.</p>
|
||||
|
||||
<h4 id="cmd">Access Control Commands</h4>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt id="discard"><tt>discard [ average <i>avg</i> ][ minimum <i>min</i> ] [ monitor <i>prob</i> ]</tt></dt>
|
||||
<dd>Set the parameters of the rate control facility which protects the server
|
||||
from client abuse. If the <tt>limited</tt> flag is present in the ACL, packets
|
||||
that violate these limits are discarded. If in addition the <tt>kod</tt> restriction
|
||||
is present, a kiss-o'-death packet is returned.</dd>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><tt>average <i>avg</i></tt></dt>
|
||||
<dd>Specify the minimum average interpacket spacing (minimum average headway
|
||||
time) in log<sub>2</sub> s with default 3.</dd>
|
||||
|
||||
<dt><tt>minimum <i>min</i></tt></dt>
|
||||
<dd>Specify the minimum interpacket spacing (guard time) in log<sub>2</sub> s
|
||||
with default 1.</dd>
|
||||
|
||||
<dt><tt>monitor</tt></dt>
|
||||
<dd>Specify the probability of discard for packets that overflow the rate-control
|
||||
window. This is a performance optimization for servers with aggregate arrivals
|
||||
of 1000 packets per second or more.</dd>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt id="restrict"><tt>restrict <i>address</i> [mask <i>mask</i>] [<i>flag</i>][...]</tt></dt>
|
||||
<dd>The <tt><i>address</i></tt> argument expressed in dotted-quad form is the
|
||||
address of a host or network. Alternatively, the <tt><i>address</i></tt> argument
|
||||
can be a valid host DNS name. The <tt><i>mask</i></tt> argument expressed in
|
||||
dotted-quad form defaults to 255.255.255.255, meaning that the <tt><i>address</i></tt> is
|
||||
treated as the address of an individual host. A default entry (address 0.0.0.0,
|
||||
mask 0.0.0.0) is always included and is always the first entry in the list.
|
||||
Note that the text string <tt>default</tt>, with no mask option, may be used
|
||||
to indicate the default entry.</dd>
|
||||
|
||||
<dd>Some flags have the effect to deny service, some have the effect to
|
||||
enable service and some are conditioned by other flags. The flags. are
|
||||
not orthogonal, in that more restrictive flags will often make less restrictive
|
||||
ones redundant. The flags that deny service are classed in two categories,
|
||||
those that restrict time service and those that restrict informational queries
|
||||
and attempts to do run-time reconfiguration of the server. One or more of the
|
||||
following flags may be specified:</dd>
|
||||
<dd><dl>
|
||||
|
||||
<dt><tt>flake</tt></dt>
|
||||
<dd>Discard received NTP packets with probability 0.1; that is, on average drop
|
||||
one packet in ten. This is for testing and amusement. The name comes from Bob
|
||||
Braden's <i>flakeway</i>, which once did a similar thing for early Internet
|
||||
testing.</dd>
|
||||
|
||||
<dt><tt>ignore</tt></dt>
|
||||
<dd>Deny packets of all kinds, including <tt>ntpq</tt> and <tt>ntpdc</tt> queries.</dd>
|
||||
|
||||
<dt><tt>kod</tt></dt>
|
||||
<dd>Send a kiss-o'-death (KoD) packet if the <tt>limited</tt> flag is present
|
||||
and a packet violates the rate limits established by the <tt>discard</tt> command.
|
||||
KoD packets are themselves rate limited for each source address separately.
|
||||
If this flag is not present, packets that violate the rate limits are discarded.</dd>
|
||||
|
||||
<dt><tt>limited</tt></dt>
|
||||
<dd>Deny time service if the packet violates the rate limits established by the <tt>discard</tt> command.
|
||||
This does not apply to <tt>ntpq</tt> and <tt>ntpdc</tt> queries.</dd>
|
||||
|
||||
<dt><tt>lowpriotrap</tt></dt>
|
||||
<dd>Declare traps set by matching hosts to be low priority. The number of traps
|
||||
a server can maintain is limited (the current limit is 3). Traps are usually
|
||||
assigned on a first come, first served basis, with later trap requestors being
|
||||
denied service. This flag modifies the assignment algorithm by allowing low
|
||||
priority traps to be overridden by later requests for normal priority traps.</dd>
|
||||
<dt><tt>mssntp</tt></dt>
|
||||
<dd>Enable Microsoft Windows MS-SNTP authentication using Active Directory services.
|
||||
<span class="style1">Note: Potential users should be aware that these services
|
||||
involve a TCP connection to another process that could potentially block,
|
||||
denying services to other users. Therefore, this flag should be used only
|
||||
for a dedicated server with no clients other than MS-SNTP.</span></dd>
|
||||
<dt><tt>nomodify</tt></dt>
|
||||
<dd>Deny <tt>ntpq</tt> and <tt>ntpdc</tt> queries which attempt to modify the
|
||||
state of the server (i.e., run time reconfiguration). Queries which return information
|
||||
are permitted.</dd>
|
||||
|
||||
<dt><tt>noquery</tt></dt>
|
||||
<dd>Deny <tt>ntpq</tt> and <tt>ntpdc</tt> queries. Time service is not affected.</dd>
|
||||
|
||||
<dt><tt>nopeer</tt></dt>
|
||||
<dd>Deny packets that might mobilize an association unless authenticated. This
|
||||
includes broadcast, symmetric-active and manycast server packets when a configured
|
||||
association does not exist. Note that this flag does not apply to packets
|
||||
that do not attempt to mobilize an association. </dd>
|
||||
|
||||
<dt><tt>noserve</tt></dt>
|
||||
<dd>Deny all packets except <tt>ntpq</tt> and <tt>ntpdc</tt> queries.</dd>
|
||||
|
||||
<dt><tt>notrap</tt></dt>
|
||||
<dd>Decline to provide mode 6 control message trap service to matching hosts.
|
||||
The trap service is a subsystem of the <tt>ntpdc</tt> control message protocol
|
||||
which is intended for use by remote event logging programs.</dd>
|
||||
|
||||
<dt><tt>notrust</tt></dt>
|
||||
<dd>Deny packets that are not cryptographically authenticated. Note carefully
|
||||
how this flag interacts with the <tt>auth</tt> option of the <tt>enable</tt> and <tt>disable</tt> commands.
|
||||
If <tt>auth</tt> is enabled, which is the default, authentication is required
|
||||
for all packets that might mobilize an association.
|
||||
If <tt>auth</tt> is
|
||||
disabled, but the <tt>notrust</tt> flag is not present, an association can be
|
||||
mobilized whether or not authenticated. If <tt>auth</tt> is disabled, but the <tt>notrust</tt> flag
|
||||
is present, authentication is required only for the specified address/mask
|
||||
range. </dd>
|
||||
|
||||
<dt><tt>ntpport</tt></dt>
|
||||
<dt><tt>non-ntpport</tt></dt>
|
||||
<dd>This is actually a match algorithm modifier, rather than a restriction
|
||||
flag. Its presence causes the restriction entry to be matched only if the
|
||||
source port in the packet is the standard NTP UDP port (123). Both <tt>ntpport</tt> and <tt>non-ntpport</tt> may
|
||||
be specified. The <tt>ntpport</tt> is considered more specific and is sorted
|
||||
later in the list.</dd>
|
||||
<dt><tt>version</tt></dt>
|
||||
<dd>Deny packets that do not match the current NTP version.</dd>
|
||||
</dl>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
</dd>
|
||||
<dd>Default restriction list entries with the flags <tt>ignore, ntpport</tt>,
|
||||
for each of the local host's interface addresses are inserted into the table
|
||||
at startup to prevent the server from attempting to synchronize to its own time.
|
||||
A default entry is also always present, though if it is otherwise unconfigured;
|
||||
no flags are associated with the default entry (i.e., everything besides your
|
||||
own NTP server is unrestricted).</dd>
|
||||
</dl>
|
||||
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -13,45 +13,82 @@
|
||||
<h3>Association Management</h3>
|
||||
<img src="pic/alice51.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>Make sure who your friends are.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:35</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">21:56</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="277">Friday, December 28, 2007</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links7.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/config.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#modes">Association Modes</a>
|
||||
<li class="inline"><a href="#client">Client/Server Mode</a>
|
||||
<li class="inline"><a href="#symact">Symmetric Active/Passive Mode</a>
|
||||
<li class="inline"><a href="#broad">Broadcast/Multicast Modes</a>
|
||||
<li class="inline"><a href="#umlt">Multicasting</a>
|
||||
<li class="inline"><a href="#umlt">Multicasting</a>
|
||||
<li class="inline"><a href="#burst">Burst Modes</a>
|
||||
<li class="inline"><a href="#many">Manycast Mode</a>
|
||||
<li class="inline"><a href="#orphan">Orphan Mode</a>
|
||||
<li class="inline"><a href="#burst">Burst Options</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="modes">Association Modes</h4>
|
||||
<p>NTP Version 4 (NTPv4) incorporates new features and refinements to the NTP Version 3 (NTPv3) algorithms; however, it continues the tradition of backwards compatibility with older versions. A number of new operating modes for automatic server discovery and improved accuracy in occasionally connected networks are provided. Following is an overview of the new features; additional information is available on the <a href="confopt.html">Configuration Options</a> and <a href="authopt.html">Authentication Options</a> pages and in the papers, reports, memoranda and briefings at <a href="http://www.ntp.org">www.ntp.org</a>.</p>
|
||||
<p>There are two types of associations: persistent associations, which result from configuration file commands, and ephemeral associations, which result from protocol operations described below. A persistent association is never demobilized, although it may become dormant when the associated server becomes unreachable. An ephemeral association is mobilized when a message arrives from a server; for instance, a symmetric passive association is mobilized upon arrival of a symmetric active message. A broadcast client association is mobilized upon arrival of a broadcast server message, while a Manycast client association is mobilized upon arrival of a Manycast server message.</p>
|
||||
<p>Ordinarily, successful mobilization of an ephemeral association requires the server to be cryptographically authenticated to the dependent client. This can be done using either symmetric-key or public-key cryptography, as described in the <a href="authopt.html">Authentication Options</a> page. The cryptographic means insure an unbroken chain of trust between the dependent client and the primary servers at the root of the synchronization subnet. We call this chain the <i>provenance</i> of the client and define new vocabulary as to proventicate a client or provide proventic credentials. Once mobilized, ephemeral associations are demobilized when either (a) the server becomes unreachable or (b) the server refreshes the key media without notifying the client.</p>
|
||||
<p>There are three principal modes of operation: client/server, symmetric active/passive and broadcast. In addition, there are two modes using IP multicast support: multicast and manycast. These modes are selected based on the scope of service, intended flow of time and proventic values and means of configuration. Following is a summary of the operations in each mode.</p>
|
||||
<p>This page describes the various modes of operation provided in NTPv4. Details about the configuration commands and options are given on the <a href="confopt.html">Configuration Options</a> page. Details about the cryptographic authentication schemes are given on the <a href="authopt.html">Authentication Options</a> page. Details about the automatic server discovery schemes are described on the <a href="manyopt.html">Automatic Server Discovery Schemes</a> page. Additional information is available in the papers, reports, memoranda and briefings on the <a href="http://www.eecis.udel.edu/~mills/ntp.html"> NTP Project</a> page.</p>
|
||||
<p>There are three types of associations in NTP: persistent, preemptable and ephemeral. Persistent associations are mobilized by a configuration command and never demobilized. Preemptable associations, which are new to NTPv4, are mobilized by a configuration command which includes the <tt>prempt</tt> option and are demobilized by a "better" server or by timeout, but only if the number of survivors exceeds the threshold set by the <tt>tos maxclock</tt> configuration command. Ephemeral associations are mobilized upon arrival of designated messages and demobilized by timeout.</p>
|
||||
<p>Ordinarily, successful mobilization of ephemeral associations requires the server to be cryptographically authenticated to the client. This can be done using either symmetric key or Autokey public key cryptography, as described in the <a href="authopt.html">Authentication Options</a> page.</p>
|
||||
<p>There are three principal modes of operation in NTP: client/server, symmetric active/passive and broadcast/multicast. There are three automatic server discovery schemes in NTP: broadcast/multicast, manycast and pool described on the <a href="manyopt.html">Automatic Server Discovery Schemes</a> page. In addition, the orphan mode and burst options described on this page can be used in appropriate cases.</p>
|
||||
<p>Following is a summary of the operations in each mode. Note that reference to option applies to the commands described on the <a href="confopt.html">Configuration Options</a> page. See that page for applicability and defaults.</p>
|
||||
<h4 id="client">Client/Server Mode</h4>
|
||||
<p>Client/server mode is probably the most common configuration in the Internet today. It operates in the classic remote-procedure-call (RPC) paradigm with stateless servers. In this mode a client sends a request to the server and expects a reply at some future time. In some contexts this would be described as a "pull" operation, in that the client pulls the time and proventic values from the server. A client is configured in client mode using the <tt>server</tt> (sic) command and specifying the server IPv4 or IPv6 DNS name or address; the server requires no prior configuration. The original NTPv3 authentication scheme is applicable in this mode, as well as the new NTPv4 Autokey proventication scheme. In addition, two burst modes described below can be used in appropriate cases.</p>
|
||||
<p>Client/server mode is the most common configuration in the Internet today. It operates in the classic remote-procedure-call (RPC) paradigm with stateless servers and stateful clients. In this mode a host sends a client (mode 3) request to the specified server and expects a server (mode 4) reply at some future time. In some contexts this would be described as a "pull" operation, in that the host pulls the time and related values from the server.</p>
|
||||
<p>A host is configured in client mode using the <tt>server</tt> (sic) command and specifying the server DNS name or IPv4 or IPv6 address; the server requires no prior configuration. The <tt>iburst</tt> option described later on this page is recommended for clients, as this speeds up initial synchronization from several minutes to several seconds. The <tt>burst</tt> option described later on this page can be useful to reduce jitter on very noisy dial-up or ISDN network links.</p>
|
||||
<p>Ordinarily, the program automatically manages the poll interval between the default minimum and maximum values. The <tt>minpoll</tt> and <tt>maxpoll</tt> options can be used to bracket the range. Unless noted otherwise, these options should not be used with reference clock drivers.</p>
|
||||
<h4 id="symact">Symmetric Active/Passive Mode</h4>
|
||||
<p>Symmetric active/passive mode is intended for configurations were a clique of low-stratum peers operate as mutual backups for each other. Each peer operates with one or more primary reference sources, such as a radio clock, or a subset of secondary servers known to be reliable and proventicated. Should one of the peers lose all reference sources or simply cease operation, the other peers will automatically reconfigure so that time and proventication values can flow from the surviving peers to all the others in the clique. In some contexts this would be described as a "push-pull" operation, in that the peer either pulls or pushes the time and proventic values depending on the particular configuration.</p>
|
||||
<p>Symmetric peers operate with their sources in some NTP mode and with each other in symmetric mode. A peer is configured in symmetric active mode using the <tt>peer</tt> command and specifying the other peer IPv4 or IPv6 DNS name or address. The other peer can also be configured in symmetric active mode in a similar way. However, if the other peer is not specifically configured in this way, a symmetric passive association is mobilized upon arrival of a symmetric active message. Since an intruder can impersonate a symmetric active peer and inject false time values, symmetric mode should always be cryptographically validated. The original NTPv3 authentication scheme is applicable in this mode, as well as the new NTPv4 Autokey proventication scheme.</p>
|
||||
<p>Symmetric active/passive mode is intended for configurations were a clique
|
||||
of low-stratum peers operate as mutual backups for each other. Each peer operates
|
||||
with one or more primary reference sources, such as a radio clock, or a set
|
||||
of secondary (stratum, 2) servers known to be reliable and authentic. Should
|
||||
one of the peers lose all reference sources or simply cease operation, the
|
||||
other peers will automatically reconfigure so that time and related values
|
||||
can flow from the surviving peers to all hosts in the subnet. In some contexts
|
||||
this would be described as a "push-pull" operation, in that the
|
||||
peer either pulls or pushes the time and related values depending on the particular
|
||||
configuration.</p>
|
||||
<p>In symmetric active mode a peer symmetric active (mode 1) message to a designated peer. If a matching configured symmetric active association is found, the designated peer returns a symmetric active message. If no matching association is found, the designated peer mobilizes a ephemeral symmetric passive association and returns a symmetric passive (mode 2) message. Since an intruder can impersonate a symmetric active peer and cause a spurious symmetric passive association to be mobilized, symmetric passive mode should always be cryptographically validated.</p>
|
||||
<p>A peer is configured in symmetric active mode using the <tt>peer</tt> command and specifying the other peer DNS name or IPv4 or IPv6 address. The <tt>burst</tt> and <tt>iburst</tt> options should not be used in symmetric modes, as this can upset the intended symmetry of the protocol and result in spurious duplicate or dropped messages.</p>
|
||||
<p>As symmetric modes are most often used as root servers for moderate to large subnets where rapid response is required, it is generally best to set the minimum and maximum poll intervals of each root server to the same value using the <tt>minpoll</tt> and <tt>maxpoll</tt> options.</p>
|
||||
<h4 id="broad">Broadcast/Multicast Modes</h4>
|
||||
<p>IPv4 broadcast mode in both NTPv3 and NTPv4 is limited to directly connected subnets such as Ethernets which support broadcast technology. Ordinarily, this technology does not operate beyond the first hop router or gateway. In IPv6 and where service is intended beyond the local subnet, IP multicasting can be used where supported by the operating system and the routers support the Internet Group Management Protocol (IGMP). Most current kernels and available routers do support IP multicast technology, although service providers are sometimes reluctant to deploy it.</p>
|
||||
<p>IPv4 broadcast mode is intended for configurations involving one or a few servers and a possibly very large client population on the same subnet. A broadcast server is configured using the <tt>broadcast</tt> command and a IPv4 local subnet broadcast address. A broadcast client is configured using the <tt>broadcastclient</tt> command, in which case it responds to broadcast messages received on any interface. Since an intruder can impersonate a broadcast server and inject false time values, this mode should always be cryptographically validated. The original NTPv3 authentication scheme is applicable in this mode, as well as the new NTPv4 Autokey proventication scheme.</p>
|
||||
<p>The server generates broadcast messages continuously at intervals specified by the <tt>minpoll</tt> keyword and with a time-to-live span specified by the <tt>ttl</tt> keyword. A broadcast client responds to the first message received by waiting a short interval to avoid implosion at the server. Then, the client polls the server in burst mode in order to quickly set the host clock and validate the source. This normally results in a volley of eight client/server cycles at 2-s intervals during which both the synchronization and cryptographic protocols run concurrently. Following the volley, the client computes the offset between the apparent broadcast time and the (unicast) client time. This offset is used to compensate for the propagation time between the broadcast server and client. Once the offset is computed, the server continues as before and the client sends no further messages. If for some reason the broadcast server does not respond to client messages, the client will time out the volley and continue in listen-only mode with a default propagation delay.</p>
|
||||
<h4 id="umlt">Multicasting</h4>
|
||||
<p>Multicasting can be used to extend the scope of a timekeeping subnet in two ways: multicasting and manycasting. A general discussion of IP multicast technology is beyond the scope of this page. In simple terms a host or router sending to a IPv4 or IPv6 multicast group address expects all hosts or routers listening on this address to receive the message. There is no intrinsic limit on the number of senders or receivers and senders can be receivers and vice versa. The IANA has assigned multicast group address IPv4 224.0.1.1 and IPv6 FF05::101 (site local) to NTP, but these addresses should be used only where the multicast span can be reliably constrained to protect neighbor networks. In general, administratively scoped IPv4 group addresses should be used, as described in RFC-2365, or GLOP group addresses, as described in RFC-2770.</p>
|
||||
<p>A multicast server is configured using the <tt>broadcast</tt> command, but with a multicast group address instead of a broadcast address. A multicast client is configured using the <tt>multicastclient</tt> command with a multicast group address. However, there is a subtle difference between IPv4 broadcasting and multicasting. IPv4 broadcasting is specific to each interface and local subnet address. If more than one interface is attached to a machine, a separate <tt>broadcast</tt> command applies to each one separately. This provides a way to limit exposure in a firewall, for example. For IPv6 the same distinction can be made using link-local prefix FF02 for each interface and site-local FF05 for all interfacesl.</p>
|
||||
<p>IP multicasting is a different paradigm. By design, multicast messages travel from the sender via a shortest-path or shared tree to the receivers, which may require these messages emit from one or all interfaces, but carry a common source address. However, it is possible to configure multiple multicast group addresses using multiple <tt>broadcast</tt> or <tt>multicastclient</tt> commands. Other than these particulars, multicast messages are processed just like broadcast messages. Note that the calibration feature in broadcast mode is extremely important, since IP multicast messages can travel far different paths through the IP routing fabric than ordinary IP unicast messages.</p>
|
||||
<h4 id="many">Manycasting</h4>
|
||||
<p>Manycasting is a automatic discovery and configuration paradigm new to NTPv4. It is intended as a means for a multicast client to troll the nearby network neighborhood to find cooperating manycast servers, validate them using cryptographic means and evaluate their time values with respect to other servers that might be lurking in the vicinity. The intended result is that each manycast client mobilizes client associations with some number of the "best" of the nearby anycast servers, yet automatically reconfigures to sustain this number of servers should one or another fail. Additional information is on the <a href="manyopt.html">Automatic NTP Configuration Options</a> page.</p>
|
||||
<h4 id="burst">Burst Modes</h4>
|
||||
<p>There are two burst modes where a single poll event triggers a burst of eight packets at 2-s intervals instead of the usual one. The <tt>burst</tt> mode sends a burst when the server is reachable, while the <tt>iburst</tt> mode sends a burst when the server is unreachable. Each mode is independently of the other and both can be used if necessary. The <tt>calldelay</tt> command can be used to increase the interval between the first and second packets in the burst in order to allow a modem to complete a call. Received server packets update the clock filter, which selects the best (most accurate) time values. When the last packet in the burst is sent, the next received packet updates the system variables and sets the system clock in the usual manner, as if only a single client/server cycle had occurred. The result is not only a rapid and reliable setting of the system clock, but a considerable reduction in network jitter.</p>
|
||||
<p>The <tt>iburst</tt> keyword is used where it is important to set the clock quickly when an association is first mobilized or first becomes reachable or when the network attachment requires an initial calling or training procedure. The burst is initiated only when the server first becomes reachable and results in good accuracy with intermittent connections typical of PPP and ISDN services. Outlyers due to initial dial-up delays, etc., are avoided and the client sets the clock within a few seconds after the first message.</p>
|
||||
<p>The <tt>burst</tt> keyword can be configured in cases of excessive network jitter or when the network attachment requires an initial calling or training procedure. The burst is initiated at each poll interval when the server is reachable. The burst does produce additional network overhead and can cause trouble if used indiscriminately. It should only be used where the poll interval is expected to settle to values at or above 1024 s.</p>
|
||||
<p>NTP broadcast and multicast modes are intended for configurations involving one or a few servers and a possibly very large client population. Broadcast mode can be used with Ethernet, FDDI and WiFi spans interconnected by hubs or switches. Ordinarily, broadcast packets do not extend beyond a level-3 router. Where service is intended beyond a level-3 router, multicast mode can be used. Additional information is on the <a href="manyopt.html">Automatic NTP Configuration Options</a> page.</p>
|
||||
<h4 id="many">Manycast Mode</h4>
|
||||
<p>Manycast mode is a automatic discovery and configuration paradigm new to NTPv4. It is intended as a means for a multicast client to troll the nearby network neighborhood to find cooperating manycast servers, validate them using cryptographic means and evaluate their time values with respect to other servers that might be lurking in the vicinity. The intended result is that each manycast client mobilizes ephemeral client associations with some number of the "best" of the nearby manycast servers, yet automatically reconfigures to sustain this number of servers should one or another fail. Additional information is on the <a href="manyopt.html">Automatic NTP Configuration Options</a> page.</p>
|
||||
<h4 id="orphan">Orphan Mode</h4>
|
||||
<p>Sometimes an NTP subnet becomes isolated from all UTC sources such as local reference clocks or Internet time servers. In such cases it may be necessary that the subnet servers and clients remain synchronized to a common timescale, not necessarily the UTC timescale. Previously, this function was provided by the local clock driver to simulate a UTC source. A server with this driver could be used to synchronize other hosts in the subnet directly or indirectly.</p>
|
||||
<p>There are many disadvantages using the local clock driver, primarily that the subnet is vulnerable to single-point failures and multiple server redundancy is not possible. Orphan mode is intended to replace the local clock driver. It provides a single simulated UTC source with multiple servers and provides seamless switching as servers fail and recover.</p>
|
||||
<p>A common configuration for private networks includes one or more core servers operating at the lowest stratum. Good practice is to configure each of these servers as backup for the others using symmetric or broadcast modes. As long as at least one core server can reach a UTC source, the entire subnet can synchronize to it.</p>
|
||||
<p>If no UTC sources are available to any core server, one of them can provide a simulated UTC source for all other hosts in the subnet. However, only one core server can simulate the UTC source and all direct dependents, called orphan children, must select the same one, called the orphan parent.</p>
|
||||
<p>A host is enabled for orphan mode using the <tt>tos orphan <i>stratum</i></tt> command, where <tt><i>stratum</i></tt> is some stratum less than 16 and greater than any anticipated stratum that might occur with configured Internet time servers. However, sufficient headroom should remain so every subnet host dependent on the orphan children has stratum less than 16. Where no associations for other servers or reference clocks are configured, the orphan stratum can be set to 1. These are the same considerations that guide the local clock driver stratum selection.</p>
|
||||
<p>A orphan parent with no sources shows reference ID <font face="Courier New, Courier, Monaco, monospace">LOOP</font> if
|
||||
operating at stratum 1 and 127.0.0.1 (Unix loopback address) otherwise.
|
||||
While ordinary NTP clients use a selection metric based on delay
|
||||
and dispersion, orphan children use a metric computed from the IP
|
||||
address of each core server. Each orphan child chooses the orphan
|
||||
parent as the root server with the smallest metric.</p>
|
||||
<p>For orphan mode to work well, each core server with available sources should operate at the same stratum. All core servers and orphan children should include the same <font face="Courier New, Courier, Monaco, monospace">tos</font> command in the configuration file. Each orphan child should include in the configuration file all root servers.</p>
|
||||
<div align-"center">
|
||||
<img src="pic/peer.gif" alt="gif">
|
||||
</div>
|
||||
<p>For example, consider the peer network configuration above, where two or more campus primary or secondary (stratum 2) servers are configured with reference clocks or public Internet primary servers and with each other using symmetric modes. With this configuration a server that loses all sources continues to discipline the system clock using the other servers as backup. Only the core servers and orphan children need to be enabled for orphan mode.</p>
|
||||
<div align-"center">
|
||||
<img src="pic/broad.gif" alt="gif">
|
||||
</div>
|
||||
<p>For broadcast networks each core server is configured in both broadcast server and broadcast client modes as shown above. Orphan children operate as broadcast clients of all core servers. As in peer networks, the core servers back up each other and only they and the orphan children need to be enabled for orphan mode.</p>
|
||||
<p>In normal operation subnet hosts operate below stratum 5, so the subnet is automatically configured as described in the NTP specification. If all UTC sources are lost, all core servers become orphans and the orphan children will select the same root server to become the orphan parent.</p>
|
||||
<h4 id="burst">Burst Options</h4>
|
||||
<p>There are two burst options where a single poll event triggers a burst of eight packets at 2-s intervals instead of the normal one packet. They should be used only with the <tt>server</tt> and <tt>pool</tt> commands, but not with reference clock drivers nor symmetric peers. The <tt>burst</tt> option sends a burst when the server is reachable, while the <tt>iburst</tt> option sends a burst when the server is unreachable. Each mode is independently of the other and both can be used at the same time. In either mode the client sends one packet, waits for the reply, then sends the remaining packets in the burst. This may be useful to allow a modem to complete a call.</p>
|
||||
<p>In both modes received server packets update the clock filter, which selects the best (most accurate) time values. When the last packet in the burst is sent, the next received packet updates the system variables and adjusts the system clock as if only a single packet exchange had occurred.</p>
|
||||
<p>The <tt>iburst</tt> option is useful where the system clock must be set quickly or when the network attachment requires an initial calling or training sequence. The burst is initiated only when the server first becomes reachable. This improves accuracy with intermittent connections typical of PPP and ISDN services. Outliers due to initial dial-up delays, etc., are avoided and the client sets the clock within a few seconds after the first received packet.</p>
|
||||
<p>The <tt>burst</tt> option can be configured in cases of excessive network
|
||||
jitter or when the network attachment requires an initial calling or training
|
||||
sequence. The burst is initiated at each poll interval when the server is
|
||||
reachable. The number of packets in the burst is determined by the poll interval
|
||||
so that the average interval between packets is no less than 16. At a poll
|
||||
interval of 16 s, only one packet is sent in the burst; at 32 s, two packets
|
||||
are sent and so forth until at 128 s and above eight packets are sent.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
@ -12,10 +12,11 @@
|
||||
<body>
|
||||
<h3>Reference Clock Audio Drivers</h3>
|
||||
<img src="pic/radio2.jpg" alt="jpg" align="left">ICOM R-72 shortwave receiver and Sure audio mixer
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:36</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">00:48</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="308">Saturday, November 24, 2007</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links8.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/refclock.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/audio.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#sound">Sound Card Drivers</a>
|
||||
@ -25,11 +26,17 @@
|
||||
<hr>
|
||||
<h4 id="sound">Sound Card Drivers</h4>
|
||||
<p>There are some applications in which the computer time can be disciplined to an audio signal, rather than a serial timecode and communications port or special purpose bus peripheral. This is useful in such cases where the audio signal is sent over a telephone circuit, for example, or received directly from a shortwave receiver. In such cases the audio signal can be connected via an ordinary sound card or baseboard audio codec. The suite of NTP reference clock drivers currently includes three drivers suitable for these applications. They include a driver for the Inter Range Instrumentation Group (IRIG) signals produced by many radio clocks and timing devices, another for the Canadian time/frequency radio station CHU and a third for the NIST time/frequency radio stations WWV and WWVH. The radio drivers are designed to work with ordinary inexpensive shortwave radios and may be one of the least expensive ways to build a good primary time server.</p>
|
||||
<p>All three drivers make ample use of sophisticated digital signal processing algorithms designed to efficiently extract timing signals from noise and interference. The radio station drivers in particular implement optimum linear demodulation and decoding techniques, including maximum likelihood and soft-decision methods. The documentation page for each driver contains an in-depth discussion on the algorithms and performance expectations. In some cases the algorithms are further analyzed, modelled and evaluated in a technical report.</p>
|
||||
<p>All three drivers make ample use of sophisticated digital signal processing
|
||||
algorithms designed to efficiently extract timing signals from noise and interference.
|
||||
The radio station drivers in particular implement optimum linear demodulation
|
||||
and decoding techniques, including maximum-likelihood and soft-decision methods.
|
||||
The documentation page for each driver contains an in-depth discussion on
|
||||
the algorithms and performance expectations. In some cases the algorithms
|
||||
are further analyzed, modeled and evaluated in a technical report.</p>
|
||||
<p>Currently, the audio drivers work with with Sun operating systems and audio codecs, including SunOS 4.1.3 and Solaris from 2.6 and probably all others in between. They also work with FreeBSD from 4.1 with compatible sound card. In fact, the interface is quite generic and support for other systems, in particular the various Unix generics, should not be difficult. Volunteers are solicited.</p>
|
||||
<p>The audio drivers include a number of common features designed to groom input signals, suppress spikes and normalize signal levels. An automatic gain control (AGC) feature provides protection against overdriven or underdriven input signals. It is designed to maintain adequate demodulator signal amplitude while avoiding occasional noise spikes. In order to assure reliable operation, the signal level must be in the range where the audio gain control is effective. In general, this means the input signal level must be such as to cause the AGC to set the gain somewhere in the middle of the range from 0 to 255, as indicated in the timecode displayed by the <tt>ntpq</tt> program.</p>
|
||||
<p>The drivers operate by disciplining a logical clock based on the codec sample clock to the audio signal as received. This is done by stuffing or slipping samples as required to maintain exact frequency to the order of 0.1 PPM. In order for the driver to reliably lock on the audio signal, the sample clock frequency tolerance must be less than 250 PPM (.025 percent) for the IRIG driver and half that for the radio drivers. The largest error observed so far is about 60 PPM, but it is possible some sound cards or codecs may exceed that value.</p>
|
||||
<p>The drivers include provisions to select the input port and to monitor the input signal. The <tt>fudge flag 2</tt> selects the microphone port if set to zero or the line-in port if set to one. It does not seem useful to specify the compact disc player port. The <tt>fudge flag 3</tt> enables the input signal monitor using the previously selected output port and output gain. Both of these flags can be set in the configuration file or remotely using the <tt>ntpdc</tt> utility program.</p>
|
||||
<p>The IRIG and WWV drivers operate by disciplining a logical clock based on the codec sample clock to the audio signal as received. This is done by stuffing or slipping samples as required to maintain exact frequency to the order of 0.1 PPM. In order for the driver to reliably lock on the audio signal, the sample clock frequency tolerance must be less than 250 PPM (.025 percent) for the IRIG driver and half that for the WWV driver. The largest error observed so far is about 60 PPM, but it is possible some sound cards or codecs may exceed that value. In any case, the configuration file command <tt>tinker codec</tt> command can be used to change the systematic offset in units of 125 PPM.</p>
|
||||
<p>The drivers include provisions to select the input port and to monitor the input signal. The <tt>fudge flag 2</tt> command selects the microphone port if set to zero or the line-in port if set to one. It does not seem useful to specify the compact disc player port. The <tt>fudge flag 3</tt> command enables the input signal monitor using the previously selected output port and output gain. Both of these flags can be set in the configuration file or remotely using the <tt>ntpdc</tt> utility program.</p>
|
||||
<h4 id="short">Shortwave Radio Drivers</h4>
|
||||
<p>The WWV/H and CHU audio drivers require an external shortwave radio with the radio output - speaker or headphone jack - connected to either the microphone or line-in port on the computer. There is some degree of art in setting up the radio and antenna and getting the setup to work. While the drivers are highly sophisticated and efficient in extracting timing signals from noise and interference, it always helps to have as clear a signal as possible.</p>
|
||||
<p>The most important factor affecting the radio signal is the antenna. It need not be long - even 15 feet is enough if it is located outside of a metal frame building, preferably on the roof, and away from metallic objects. An ordinary CB whip mounted on a PVC pipe and wooden X-frame on the roof should work well with most portable radios, as they are optimized for small antennas.</p>
|
||||
@ -38,12 +45,13 @@
|
||||
<p>Shortwave (3-30 MHz) radio propagation phenomena are well known to shortwave enthusiasts. The phenomena generally obey the following rules:</p>
|
||||
<ul>
|
||||
<li>The optimum frequency is higher in daytime than nighttime, stays high longer on summer days and low longer on winter nights.
|
||||
<li>Transitions between daytime and nightime conditions generally occur somewhat after sunrise and sunset at the midpoint of the path from transmitter to receiver.
|
||||
<li>Transitions between daytime and nighttime conditions generally occur somewhat
|
||||
after sunrise and sunset at the midpoint of the path from transmitter to
|
||||
receiver.
|
||||
<li>Ambient noise (static) on the lower frequencies follows the thunderstorm season, so is higher on summer afternoons and evenings.
|
||||
<li>The lower frequency bands are best for shorter distances, while the higher bands are best for longer distances.
|
||||
<li>The optimum frequencies are higher at the peak of the 11-year sunspot cycle and lower at the trough. The current sunspot cycle should peak in the first couple of years beginning the century.
|
||||
</ul>
|
||||
<p>The best way to choose a frequency is to listen at various times over the day and determine the best highest (daytime) and lowest (nighttime) frequencies. Then, assuming one is available, choose the highest frequency between these frequencies. This strategy assumes that the high frequency is more problematic than the low, that the low frequency probably comes with severe multipath and static, and insures that probably twice a day the chosen frequency will work. For instance, on the east coast the best compromise CHU frequency is probably 7335 kHz and the best WWV frequency is probably 15 MHz.</p>
|
||||
<li>The optimum frequencies are higher at the peak of the 11-year sunspot cycle and lower at the trough. The current sunspot cycle began at the minimum in late 2006 and should reach its peak in 2012.</ul>
|
||||
<p>The best way to choose a frequency is to listen at various times over the day and determine the highest (daytime) and lowest (nighttime) frequencies that work well. Choose the frequency that works for the most number of hours in the day, usually the highest frequency. For instance, on the east coast the best compromise CHU frequency is 7335 kHz and the best WWV frequency is 15 MHz.</p>
|
||||
<h4>Autotune Modes</h4>
|
||||
<p>The shortwave drivers include support for an optional autotune function compatible with ICOM receivers and transceivers. The <tt>mode</tt> keyword of the <tt>server</tt> configuration command specifies the ICOM ID select code in decimal. A missing or zero argument disables the CI-V interface. Since all ICOM select codes are less than 128, the high order bit of the code is used by the driver to specify the baud rate. If this bit is not set, the rate is 9600 bps for the newer radios; if set, the rate is 1200 bps for the older radios. Following are the ID select codes for the known radios.</p>
|
||||
<table width="100%" cols="6">
|
||||
@ -83,54 +91,62 @@
|
||||
<td>726</td>
|
||||
<td>0x30</td>
|
||||
<td>48</td>
|
||||
<td>R71</td>
|
||||
<td>0x1A</td>
|
||||
<td>26</td>
|
||||
<td>7000</td>
|
||||
<td>0x70</td>
|
||||
<td>113</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>735</td>
|
||||
<td>0x04</td>
|
||||
<td>4</td>
|
||||
<td>R72</td>
|
||||
<td>0x32</td>
|
||||
<td>50</td>
|
||||
<td>R71</td>
|
||||
<td>0x1A</td>
|
||||
<td>26</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>746</td>
|
||||
<td>0x66</td>
|
||||
<td>102</td>
|
||||
<td>R75</td>
|
||||
<td>0x5a</td>
|
||||
<td>90</td>
|
||||
<td>R72</td>
|
||||
<td>0x32</td>
|
||||
<td>50</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>751</td>
|
||||
<td>0x1c</td>
|
||||
<td>28</td>
|
||||
<td>R7000</td>
|
||||
<td>0x08</td>
|
||||
<td>8</td>
|
||||
<td>R75</td>
|
||||
<td>0x5a</td>
|
||||
<td>90</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>756PROII</td>
|
||||
<td>0x64</td>
|
||||
<td>100</td>
|
||||
<td>R7100</td>
|
||||
<td>0x34</td>
|
||||
<td>52</td>
|
||||
<td>R7000</td>
|
||||
<td>0x08</td>
|
||||
<td>8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>761</td>
|
||||
<td>0x1e</td>
|
||||
<td>30</td>
|
||||
<td>R8500</td>
|
||||
<td>0x4a</td>
|
||||
<td>74</td>
|
||||
<td>R7100</td>
|
||||
<td>0x34</td>
|
||||
<td>52</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>765</td>
|
||||
<td>0x2c</td>
|
||||
<td>44</td>
|
||||
<td>R8500</td>
|
||||
<td>0x4a</td>
|
||||
<td>74</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>R9000</td>
|
||||
<td>0x2a</td>
|
||||
<td>42</td>
|
||||
@ -138,8 +154,25 @@
|
||||
</table>
|
||||
<h4 id="setup">Setup and Debugging Aids</h4>
|
||||
<p>The audio drivers include extensive setup and debugging support to help hook up the audio signals and monitor the driver operations. The documentation page for each driver describes the various messages that can be produced either in real time or written to the <tt>clockstats</tt> file for later analysis. Of particular help in verifying signal connections and compatibility is a provision to monitor the signal via headphones or speaker.</p>
|
||||
<p>Connecting radios and IRIG devices to the computer and verifying correct configuration is somewhat of a black art. The signals have to be connected to the correct ports and the signal level maintained within tolerances. Some radios have recorder outputs which produce a line level signal not affected by the volume control. These signals can be connected to the line-in port on the computer. If the level is too low, connect to the microphone-in port instead. If the radio does not have a recorder output, connect the headphone or speaker output to the line-in port and adjust the volume control so the driver indicates comfortably above the minimum specified and the AGC level somewhere in the middle of the range 0-255. IRIG signals are usually much larger than radio outputs, usually in the range to several volts and may even overload the line-in port. In such cases an attenuator must be used to reduce the signal level below the overload point.</p>
|
||||
<p>It is very easy to underdrive or overdrive the audio codec, in which case the drivers will not synchronize to the signal. The drivers use <tt>fudge flag2</tt> to enable audio monitoring of the input signal. This is useful during setup to confirm the signal is actually reaching the audio codec and generally free of hum and interference. This feature is not intended for regular use, since it does increase the processor load on the system. Note that the speaker volume must be set before the driver is started.</p>
|
||||
<p>Connecting radios and IRIG devices to the computer and verifying correct
|
||||
configuration is somewhat of a black art. The signals have to be connected
|
||||
to the correct ports and the signal level maintained within tolerances. Some
|
||||
radios have recorder outputs which produce a microphone-level signal not affected
|
||||
by the volume control. These signals can be connected to the microphone port
|
||||
on the computer. If the radio does not have a recorder output, connect the
|
||||
headphone or speaker output to the line-in port and adjust the volume control
|
||||
so the driver indicates comfortably above the minimum specified and the AGC
|
||||
level somewhere in the middle of the range 0-255. IRIG signals are usually
|
||||
much larger than radio outputs, usually in the range to several volts and
|
||||
may even overload the line-in port. In such cases the signal is designed to
|
||||
drive a cable terminated with a 50-ohm resistor, which results in a level
|
||||
the line-in port can handle..</p>
|
||||
<p>It is very easy to underdriven or overdrive the audio codec, in which case
|
||||
the drivers will not synchronize to the signal. The drivers use <tt>fudge
|
||||
flag2</tt> to enable audio monitoring of the input signal. This is useful
|
||||
during setup to confirm the signal is actually reaching the audio
|
||||
codec and generally free of noise and interference. Note that the monitor
|
||||
volume must be set before the driver is started.</p>
|
||||
<p>The drivers write a synthesized timecode to the <tt>clockstats</tt> file each time the clock is set or verified and at other times if verbose monitoring is enabled. The format includes several fixed-length fields defining the UTC time to the millisecond, together with additional variable-length fields specific to each driver. The data include the intervals since the clock was last set or verified, the audio gain and various state variables and counters specific to each driver.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
@ -2,154 +2,492 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Authentication Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Authentication Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.style1 { color: #FF0000;
|
||||
font-weight: bold;
|
||||
}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Authentication Options</h3>
|
||||
<img src="pic/alice44.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>Our resident cryptographer; now you see him, now you don't.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">01:29</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="338">Wednesday, September 13, 2006</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links9.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#auth">Authentication Support</a>
|
||||
<li class="inline"><a href="#symm">Symmetric Key Cryptography</a>
|
||||
<li class="inline"><a href="#pub">Public Key Cryptography</a>
|
||||
<li class="inline"><a href="#cfg">Configuration</a>
|
||||
<li class="inline"><a href="#inter">Operation</a>
|
||||
<li class="inline"><a href="#key">Key Management</a>
|
||||
<li class="inline"><a href="#cmd">Authentication Commands</a>
|
||||
<li class="inline"><a href="#err">Error Codes</a>
|
||||
<li class="inline"><a href="#file">Files</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="auth">Authentication Support</h4>
|
||||
<p>Authentication support allows the NTP client to verify that the server is in fact known and trusted and not an intruder intending accidentally or on purpose to masquerade as that server. The NTPv3 specification RFC-1305 defines a scheme which provides cryptographic authentication of received NTP packets. Originally, this was done using the Data Encryption Standard (DES) algorithm operating in Cipher Block Chaining (CBC) mode, commonly called DES-CBC. Subsequently, this was replaced by the RSA Message Digest 5 (MD5) algorithm using a private key, commonly called keyed-MD5. Either algorithm computes a message digest, or one-way hash, which can be used to verify the server has the correct private key and key identifier.</p>
|
||||
<p>NTPv4 retains the NTPv3 scheme, properly described as symmetric key cryptography, and, in addition, provides a new Autokey scheme based on public key cryptography. Public key cryptography is generally considered more secure than symmetric key cryptography, since the security is based on a private value which is generated by each host and never revealed. With the exception of the group key described later, all key distribution and management functions involve only public values, which considerably simplifies key distribution and storage. Public key management is based on X.509 certificates, which can be provided by commercial services or produced by utility programs in the OpenSSL software library or the NTPv4 distribution.</p>
|
||||
<p>While the algorithms for symmetric key cryptography are included in the NTPv4 distribution, public key cryptography requires the OpenSSL software library to be installed before building the NTP distribution. This library is available from <a href="http://www.openssl.org">http://www.openssl.org</a> and can be installed using the procedures outlined in the <a href="build/build.html">Building and Installing the Distribution</a> page. Once installed, the configure and build process automatically detects the library and links the library routines required.</p>
|
||||
<p>Authentication is configured separately for each association using the <tt>key</tt> or <tt>autokey</tt> subcommand on the <tt>peer</tt>, <tt>server</tt>, <tt>broadcast</tt> and <tt>manycastclient</tt> configuration commands as described in the <a href="confopt.html">Configuration Options</a> page. The authentication options described below specify the locations of the key files, if other than default, which symmetric keys are trusted and the interval between various operations, if other than default.</p>
|
||||
<p>Authentication is always enabled, although ineffective if not configured as described below. If a NTP packet arrives including a message authentication code (MAC), it is accepted only if it passes all cryptographic checks. The checks require correct key ID, key value and message digest. If the packet has been modified in any way or replayed by an intruder, it will fail one or more of these checks and be discarded. Furthermore, the Autokey scheme requires a preliminary protocol exchange to obtain the server certificate, verify its credentials and initialize the protocol</p>
|
||||
<p>The <tt>auth</tt> flag controls whether new associations or remote configuration commands require cryptographic authentication. This flag can be set or reset by the <tt>enable</tt> and <tt>disable</tt> commands and also by remote configuration commands sent by a <tt>ntpdc</tt> program running on another machine. If this flag is enabled, which is the default case, new broadcast/manycast client and symmetric passive associations and remote configuration commands must be cryptographically authenticated using either symmetric key or public key cryptography. If this flag is disabled, these operations are effective even if not cryptographic authenticated. It should be understood that operating with the <tt>auth</tt> flag disabled invites a significant vulnerability where a rogue hacker can masquerade as a truechimer and seriously disrupt system timekeeping. It is important to note that this flag has no purpose other than to allow or disallow a new association in response to new broadcast and symmetric active messages and remote configuration commands and, in particular, the flag has no effect on the authentication process itself.</p>
|
||||
<p>The security model and protocol schemes for both symmetric key and public key cryptography are summarized below; further details are in the briefings, papers and reports at the NTP project page linked from <a href="http://www.ntp.org">www.ntp.org</a>.</p>
|
||||
<h4 id="symm">Symmetric Key Cryptography</h4>
|
||||
|
||||
The original RFC-1305 specification allows any one of possibly 65,534 keys, each distinguished by a 32-bit key identifier, to authenticate an association. The servers and clients involved must agree on the key and key identifier to authenticate NTP packets. Keys and related information are specified in a key file, usually called <tt>ntp.keys</tt>, which must be distributed and stored using secure means beyond the scope of the NTP protocol itself. Besides the keys used for ordinary NTP associations, additional keys can be used as passwords for the <tt><a href="ntpq.html">ntpq</a></tt> and <tt><a href="ntpdc.html">ntpdc</a></tt> utility programs. Ordinarily, the <tt>ntp.keys</tt> file is generated by the <tt><a href="keygen.html">ntp-keygen</a></tt> program.
|
||||
<p>When <tt>ntpd</tt> is first started, it reads the key file specified in the <tt>keys</tt> configuration command and installs the keys in the key cache. However, individual keys must be activated with the <tt>trustedkey</tt> command before use. This allows, for instance, the installation of possibly several batches of keys and then activating or deactivating each batch remotely using <tt>ntpdc</tt>. This also provides a revocation capability that can be used if a key becomes compromised. The <tt>requestkey</tt> command selects the key used as the password for the <tt>ntpdc</tt> utility, while the <tt>controlkey</tt> command selects the key used as the password for the <tt>ntpq</tt> utility.</p>
|
||||
<h4 id="pub">Public Key Cryptography</h4>
|
||||
<p>NTPv4 supports the original NTPv3 symmetric key scheme described in RFC-1305 and in addition the Autokey protocol, which is based on public key cryptography. The Autokey Version 2 protocol described on the <a href="http://www.eecis.udel.edu/%7emills/proto.html">Autokey Protocol</a> page verifies packet integrity using MD5 message digests and verifies the source with digital signatures and any of several digest/signature schemes. Optional identity schemes described on the <a href="http://www.eecis.udel.edu/%7emills/ident.html">Identity Schemes</a> page and based on cryptographic challenge/response algorithms are also available. Using these schemes provides strong security against replay with or without modification, spoofing, masquerade and most forms of clogging attacks.</p>
|
||||
<p>The Autokey protocol has several modes of operation corresponding to the various NTP modes supported. Most modes use a special cookie which can be computed independently by the client and server, but encrypted in transmission. All modes use in addition a variant of the S-KEY scheme, in which a pseudo-random key list is generated and used in reverse order. These schemes are described along with an executive summary, current status, briefing slides and reading list on the <a href="http://www.eecis.udel.edu/%7emills/autokey.html">Autonomous Authentication</a> page.</p>
|
||||
<p>The specific cryptographic environment used by Autokey servers and clients is determined by a set of files and soft links generated by the <a href="keygen.html"><tt>ntp-keygen</tt></a> program. This includes a required host key file, required host certificate file and optional sign key file, leapsecond file and identity scheme files. The digest/signature scheme is specified in the X.509 certificate along with the matching sign key. There are several schemes available in the OpenSSL software library, each identified by a specific string such as <tt>md5WithRSAEncryption</tt>, which stands for the MD5 message digest with RSA encryption scheme. The current NTP distribution supports all the schemes in the OpenSSL library, including those based on RSA and DSA digital signatures.</p>
|
||||
<p>NTP secure groups can be used to define cryptographic compartments and security hierarchies. It is important that every host in the group be able to construct a certificate trail to one or more trusted hosts in the same group. Each group host runs the Autokey protocol to obtain the certificates for all hosts along the trail to one or more trusted hosts. This requires the configuration file in all hosts to be engineered so that, even under anticipated failure conditions, the NTP subnet will form such that every group host can find a trail to at least one trusted host.</p>
|
||||
<h4>Naming and Addressing</h4>
|
||||
<p>It is important to note that Autokey does not use DNS to resolve addresses, since DNS can't be completely trusted until the name servers have synchronized clocks. The cryptographic name used by Autokey to bind the host identity credentials and cryptographic values must be independent of interface, network and any other naming convention. The name appears in the host certificate in either or both the subject and issuer fields, so protection against DNS compromise is essential.</p>
|
||||
<p>By convention, the name of an Autokey host is the name returned by the Unix <tt>gethostname()</tt> system call or equivalent in other systems. By the system design model, there are no provisions to allow alternate names or aliases. However, this is not to say that DNS aliases, different names for each interface, etc., are constrained in any way.</p>
|
||||
<p>It is also important to note that Autokey verifies authenticity using the host name, network address and public keys, all of which are bound together by the protocol specifically to deflect masquerade attacks. For this reason Autokey includes the source and destinatino IP addresses in message digest computations and so the same addresses must be available at both the server and client. For this reason operation with network address translation schemes is not possible. This reflects the intended robust security model where government and corporate NTP servers are operated outside firewall perimeters.</p>
|
||||
<h4 id="cfg">Configuration</h4>
|
||||
<p>Autokey has an intimidating number of options, most of which are not necessary in typical scenarios. The simplest configuration consists of a subnet with one or more servers at the same low stratum acting as trusted hosts and with dependent clients at higher strata and sharing a single secure group and identity scheme. Each trusted host generates a host key, trusted certificate and group key. Each client generates a host key, normal certificate and installs the group key of each trusted host using secure means and renames it as the name of the trusted host.</p>
|
||||
<p>For example, trusted host Alice generates keys using</p>
|
||||
<p><tt>ntp-keygen -H -T -I -p xyz</tt></p>
|
||||
<p>where H specifies a new host key, T the trusted certificate, I the IFF identity scheme and p the password used to encrypt the private key files. The group key file is <tt>ntpkey_IFFpar_alice.<i>filestamp</i></tt><i>, </i>where <i>filestamp </i>represents the NTP time in seconds when the file was generated.</p>
|
||||
<p>Host Bob generate keys using</p>
|
||||
<p><tt>ntp-keygen -H -p abc</tt></p>
|
||||
<p>where <tt>abc</tt> is different for each group host. The trusted host generates a password-protected group key using</p>
|
||||
<p><tt>ntp-keygen -q xyz -p abc -e ><i>temp</i></tt></p>
|
||||
<p>where <tt>xyz</tt> is the trusted host password, <tt>abc</tt> is the password supplied by the client and <i><tt>temp</tt></i> is a temporary file. This file is transmitted to Bob using secure means and renamed to the fully qualified host name for Alice preceded by the string <tt>ntpkey_iff_</tt>.</p>
|
||||
<h4>Operation</h4>
|
||||
<p>A specific combination of authentication scheme (none, symmetric key, public key) and identity scheme is called a cryptotype, although not all combinations are compatible. There may be management configurations where the clients, servers and peers may not all support the same cryptotypes. A secure NTPv4 subnet can be configured in many ways while keeping in mind the principles explained above and in this section. Note however that some cryptotype combinations may successfully interoperate with each other, but may not represent good security practice.</p>
|
||||
<p>The cryptotype of an association is determined at the time of mobilization, either at configuration time or some time later when a message of appropriate cryptotype arrives. When mobilized by a <tt>server</tt> or <tt>peer</tt> configuration command and no <tt>key</tt> or <tt>autokey</tt> subcommands are present, the association is not authenticated; if the <tt>key</tt> subcommand is present, the association is authenticated using the symmetric key ID specified; if the <tt>autokey</tt> subcommand is present, the association is authenticated using Autokey.</p>
|
||||
<h4 id="key">Key Management</h4>
|
||||
<p>The cryptographic values used by the Autokey protocol are incorporated as a set of files generated by the <a href="keygen.html"><tt>ntp-keygen</tt></a> utility program, including symmetric key, host key and public certificate files, as well as sign key, identity parameters and leapseconds files. Alternatively, host and sign keys and certificate files can be generated by the OpenSSL utilities and certificates can be imported from public certificate authorities. Note that symmetric keys are necessary for the <tt>ntpq</tt> and <tt>ntpdc</tt> utility programs. The remaining files are necessary only for the Autokey protocol.</p>
|
||||
<p>Certificates imported from OpenSSL or public certificate authorities have certian limitations. The certificate should be in ASN.1 syntax, X.509 Version 3 format and encoded in PEM, which is the same format used by OpenSSL. The overall length of the certificate encoded in ASN.1 must not exceed 1024 bytes. The subject distinguished name field (<tt>CN</tt>) is the fully qualified name of the host on which it is used; the remaining subject fields are ignored. The certificate extension fields must not contain either a subject key identifier or a issuer key identifier field; however, an extended key usage field for a trusted host must contain the value <tt>trustRoot</tt>;. Other extension fields are ignored.</p>
|
||||
<h4 id="cmd">Authentication Commands</h4>
|
||||
<dl>
|
||||
<dt><tt>autokey [<i>logsec</i>]</tt>
|
||||
<dd>Specifies the interval between regenerations of the session key list used with the Autokey protocol. Note that the size of the key list for each association depends on this interval and the current poll interval. The default value is 12 (4096 s or about 1.1 hours). For poll intervals above the specified interval, a session key list with a single entry will be regenerated for every message sent.
|
||||
<dt><tt>controlkey <i>key</i></tt>
|
||||
<dd>Specifies the key identifier to use with the <a href="ntpq.html"><tt>ntpq</tt></a> utility, which uses the standard protocol defined in RFC-1305. The <tt><i>key</i></tt> argument is the key identifier for a trusted key, where the value can be in the range 1 to 65,534, inclusive.
|
||||
<dt><tt>crypto [cert <i>file</i>] [leap <i>file</i>] [randfile <i>file</i>] [host <i>file</i>] [sign <i>file</i>] [ident <i>scheme</i>] [iffpar <i>file</i>] [gqpar <i>file</i>] [mvpar <i>file</i>] [pw <i>password</i>]</tt>
|
||||
<dd>This command requires the OpenSSL library. It activates public key cryptography, selects the message digest and signature encryption scheme and loads the required private and public values described above. If one or more files are left unspecified, the default names are used as described above. Unless the complete path and name of the file are specified, the location of a file is relative to the keys directory specified in the <tt>keysdir</tt> command or default <tt>/usr/local/etc</tt>. Following are the subcommands:
|
||||
<dl>
|
||||
<dt><tt>cert <i>file</i></tt>
|
||||
<dd>Specifies the location of the required host public certificate file. This overrides the link <tt>ntpkey_cert_<i>hostname</i></tt> in the keys directory.
|
||||
|
||||
<dt><tt>gqpar <i>file</i></tt>
|
||||
<dd>Specifies the location of the client GQ parameters file. This overrides the link <tt>ntpkey_gq_<i>hostname</i></tt> in the keys directory.
|
||||
|
||||
<dt><tt>host <i>file</i></tt>
|
||||
<dd>Specifies the location of the required host key file. This overrides the link <tt>ntpkey_key_<i>hostname</i></tt> in the keys directory.
|
||||
<dt><tt>ident <i>scheme</i></tt>
|
||||
<dd>Requests the server identity <i><tt>scheme</tt></i>, which can be <tt>IFF</tt>, <tt>GQ</tt> or <tt>MV</tt>. This is used when the host will not be a server for a dependent client.<dt><tt>iffpar <i>file</i></tt>
|
||||
<dd>Specifies the location of the optional IFF parameters file.This overrides the link <tt>ntpkey_iff_<i>hostname</i></tt> in the keys directory.
|
||||
<dt><tt>leap <i>file</i></tt>
|
||||
<dd>Specifies the location of the client leapsecond file. This overrides the link <tt>ntpkey_leap</tt> in the keys directory.
|
||||
<dt><tt>mv</tt>
|
||||
<dd>Requests the MV server identity scheme.
|
||||
<dt><tt>mvpar <i>file</i></tt>
|
||||
<dd>Specifies the location of the client MV parameters file. This overrides the link <tt>ntpkey_mv_<i>hostname</i></tt> in the keys directory.
|
||||
<dt><tt>pw <i>password</i></tt>
|
||||
<dd>Specifies the password to decrypt files containing private keys and identity parameters. This is required only if these files have been encrypted.
|
||||
<dt><tt>randfile <i>file</i></tt>
|
||||
<dd>Specifies the location of the random seed file used by the OpenSSL library. The defaults are described in the main text above.
|
||||
<dt><tt>sign <i>file</i></tt>
|
||||
<dd>Specifies the location of the optional sign key file. This overrides the link <tt>ntpkey_sign_<i>hostname</i></tt> in the keys directory. If this file is not found, the host key is also the sign key.
|
||||
</dl>
|
||||
<dt><tt>keys <i>keyfile</i></tt>
|
||||
<dd>Specifies the complete path and location of the MD5 key file containing the keys and key identifiers used by <tt>ntpd</tt>, <tt>ntpq</tt> and <tt>ntpdc</tt> when operating with symmetric key cryptography. This is the same operation as the <tt>-k </tt>command line option.
|
||||
<dt><tt>keysdir <i>path</i></tt>
|
||||
<dd>This command specifies the default directory path for cryptographic keys, parameters and certificates. The default is <tt>/usr/local/etc/</tt>.
|
||||
<dt><tt>requestkey <i>key</i></tt>
|
||||
<dd>Specifies the key identifier to use with the <a href="ntpdc.html"><tt>ntpdc</tt></a> utility program, which uses a proprietary protocol specific to this implementation of <tt>ntpd</tt>. The <tt><i>key</i></tt> argument is a key identifier for the trusted key, where the value can be in the range 1 to 65,534, inclusive.
|
||||
<dt><tt>revoke [<i>logsec</i>]</tt>
|
||||
<dd>Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in seconds. These values need to be updated frequently in order to deflect brute-force attacks on the algorithms of the scheme; however, updating some values is a relatively expensive operation. The default interval is 16 (65,536 s or about 18 hours). For poll intervals above the specified interval, the values will be updated for every message sent.
|
||||
<dt><tt>trustedkey <i>key</i> [...]</tt>
|
||||
<dd>Specifies the key identifiers which are trusted for the purposes of authenticating peers with symmetric key cryptography, as well as keys used by the <tt>ntpq</tt> and <tt>ntpdc</tt> programs. The authentication procedures require that both the local and remote servers share the same key and key identifier for this purpose, although different keys can be used with different servers. The <tt><i>key</i></tt> arguments are 32-bit unsigned integers with values from 1 to 65,534.
|
||||
</dl>
|
||||
<h4 id="err">Error Codes</h4>
|
||||
<p>Errors can occur due to mismatched configurations, unexpected restarts, expired certificates and unfriendly people. In most cases the protocol state machine recovers automatically by retransmission, timeout and restart, where necessary. Some errors are due to mismatched keys, digest schemes or identity schemes and must be corrected by installing the correct media and/or correcting the configuration file. One of the most common errors is expired certificates, which must be regenerated and signed at least once per year using the <tt><a href="keygen.html">ntp-keygen</a></tt> program.</p>
|
||||
<p>The following error codes are reported via the NTP control and monitoring protocol trap mechanism.</p>
|
||||
<dl>
|
||||
<dt>101 (bad field format or length)
|
||||
<dd>The packet has invalid version, length or format.
|
||||
<dt>102 (bad timestamp)
|
||||
<dd>The packet timestamp is the same or older than the most recent received. This could be due to a replay or a server clock time step.
|
||||
<dt>103 (bad filestamp)
|
||||
<dd>The packet filestamp is the same or older than the most recent received. This could be due to a replay or a key file generation error.
|
||||
<dt>104 (bad or missing public key)
|
||||
<dd>The public key is missing, has incorrect format or is an unsupported type.
|
||||
<dt>105 (unsupported digest type)
|
||||
<dd>The server requires an unsupported digest/signature scheme.
|
||||
<dt>106 (unsupported identity type)<dd>The client or server has requested an identity scheme the other does not support.<dt>107 (bad signature length)
|
||||
<dd>The signature length does not match the current public key.
|
||||
<dt>108 (signature not verified)
|
||||
<dd>The message fails the signature check. It could be bogus or signed by a different private key.
|
||||
<dt>109 (certificate not verified)
|
||||
<dd>The certificate is invalid or signed with the wrong key.<dt>110 (host certificate expired)<dd>The old server certificate has expired.<dt>111 (bad or missing cookie)
|
||||
<dd>The cookie is missing, corrupted or bogus.
|
||||
<dt>112 (bad or missing leapseconds table)
|
||||
<dd>The leapseconds table is missing, corrupted or bogus.
|
||||
<dt>113 (bad or missing certificate)
|
||||
<dd>The certificate is missing, corrupted or bogus.
|
||||
<dt>114 (bad or missing group key)<dd>The identity key is missing, corrupt or bogus.
|
||||
|
||||
<dt>115 (protocol error)
|
||||
<dd>The protocol state machine has wedged due to unexpected restart
|
||||
<dt>116 (server certificate expired)
|
||||
<dd>The old server certificate has expired.
|
||||
</dl>
|
||||
<h4 id="file">Files</h4>
|
||||
<p>See the <a href="keygen.html"><tt>ntp-keygen</tt></a> page.</p>
|
||||
<h4 id="leap">Leapseconds Table</h4>
|
||||
<p>The NIST provides a file documenting the epoch for all historic occasions of leap second insertion since 1972. The leapsecond table shows each epoch of insertion along with the offset of International Atomic Time (TAI) with respect to Coordinated Universal Time (UTC), as disseminated by NTP. The table can be obtained directly from NIST national time servers using <tt>ftp</tt> as the ASCII file <tt>pub/leap-seconds</tt>.</p>
|
||||
<p>While not strictly a security function, the Autokey protocol provides means to securely retrieve the leapsecond table from a server or peer. Servers load the leapsecond table directly from the file specified in the <tt>crypto</tt> command, with default <tt>ntpkey_leap</tt>, while clients can obtain the table indirectly from the servers using the Autokey protocol. Once loaded, the table can be provided on request to other clients and servers.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<body>
|
||||
<h3>Authentication Options</h3>
|
||||
<img src="pic/alice44.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
|
||||
<p>Our resident cryptographer; now you see him, now you don't.</p>
|
||||
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->14-Apr-2010 20:49<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<br clear="left">
|
||||
|
||||
<h4>Related Links</h4>
|
||||
|
||||
<script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/authopt.txt"></script>
|
||||
|
||||
<h4>Table of Contents</h4>
|
||||
|
||||
<ul>
|
||||
<li class="inline"><a href="#auth">Introduction</a></li>
|
||||
<li class="inline"><a href="#symm">Symmetric Key Cryptography</a></li>
|
||||
<li class="inline"><a href="#pub">Public Key Cryptography</a></li>
|
||||
<li class="inline"><a href="#group">NTP Secure Groups</a></li>
|
||||
<li class="inline"><a href="#ident">Identity Schemes and Cryptotypes</a></li>
|
||||
<li class="inline"><a href="#cfg">Configuration</a></li>
|
||||
<li class="inline"><a href="#exam">Examples</a></li>
|
||||
<li class="inline"><a href="#cmd">Authentication Commands</a></li>
|
||||
<li class="inline"><a href="#err">Error Codes</a></li>
|
||||
<li class="inline"><a href="#file">Files</a></li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4 id="auth">Introduction</h4>
|
||||
|
||||
<p>This page describes the various cryptographic authentication provisions in
|
||||
NTPv4. Details about the configuration commands and options are given on
|
||||
the <a href="confopt.html">Configuration
|
||||
Options</a> page. Details about the automatic server discovery schemes are described
|
||||
on the <a href="manyopt.html">Automatic Server Discovery Schemes</a> page. Additional
|
||||
information is available in the papers, reports, memoranda and briefings
|
||||
cited on the <a href="http://www.eecis.udel.edu/~mills/ntp.html"> NTP Project</a> page.
|
||||
Authentication support allows the NTP client to verify that servers are in
|
||||
fact known and trusted and not intruders intending accidentally or intentionally
|
||||
to masquerade as a legitimate server.</p>
|
||||
|
||||
<p> The NTPv3 specification RFC-1305 defines a scheme properly described as
|
||||
symmetric key cryptography. It uses the Data Encryption Standard (DES)
|
||||
algorithm operating in cipher-block chaining (CBC) mode. Subsequently, this
|
||||
scheme was replaced by the RSA Message Digest 5 (MD5) algorithm commonly
|
||||
called keyed-MD5. Either algorithm computes a message digest or one-way hash
|
||||
which can be used to verify the client has the same key and key identifier
|
||||
as the server. If the OpenSSL cryptographic library is installed, support
|
||||
is available for all algorithms included in the library. Note however, if
|
||||
conformance to FIPS 140-2 is required, only a limited subset of these algorithms
|
||||
is available.</p>
|
||||
|
||||
<p>NTPv4 includes the NTPv3 scheme
|
||||
and optionally a new scheme based on public key cryptography and called
|
||||
Autokey. Public key cryptography is generally considered more secure than
|
||||
symmetric key cryptography, since the security is based on private and public
|
||||
values which are generated by each participant and where the private value
|
||||
is never revealed. Autokey uses X.509 public certificates, which can be produced
|
||||
by commercial services, utility programs in the OpenSSL software library
|
||||
or the <a href="keygen.html"><tt>ntp-keygen</tt></a> utility
|
||||
program in the NTP software distribution.</p>
|
||||
|
||||
<p>While the algorithms for MD5 symmetric key cryptography are included in the
|
||||
NTPv4 software distribution, modern algorithms for symmetric key and public
|
||||
key cryptograpny requires the OpenSSL software library
|
||||
to be installed before building the NTP distribution. This library is available
|
||||
from <a href="http://www.openssl.org">http://www.openssl.org</a> and
|
||||
can be installed using the procedures outlined in the <a href="build.html">Building
|
||||
and Installing the Distribution</a> page. Once installed, the configure and
|
||||
build process automatically detects the library and links the library routines
|
||||
required.</p>
|
||||
|
||||
<p>Note that according to US law, NTP binaries including OpenSSL library components,
|
||||
including the OpenSSL library itself, cannot be exported outside the
|
||||
US without license from the US Department of Commerce. Builders outside the
|
||||
US are advised to obtain the OpenSSL library directly from OpenSSL, which
|
||||
is outside the US, and build outside the US.</p>
|
||||
|
||||
<p>Authentication is configured separately for each association using the <tt>key</tt> or <tt>autokey</tt> option of the <tt>server</tt> configuration command, as described in the <a href="confopt.html">Server Options</a> page, and the options described on this page. The <a href="keygen.html">ntp-keygen</a> page describes the files required for the various authentication schemes. Further details are in the briefings, papers and reports at the NTP project page linked from <a href="http://www.ntp.org">www.ntp.org</a>.</p>
|
||||
|
||||
<h4 id="symm">Symmetric Key Cryptography</h4>
|
||||
|
||||
<p>The original RFC-1305 specification allows any one of possibly 65,534 keys
|
||||
(excluding zero), each distinguished by a 32-bit key ID, to authenticate
|
||||
an association. The servers and clients involved must agree on the key, key
|
||||
ID and key type to authenticate NTP packets. If an NTP packet includes a
|
||||
message authentication code (MAC), consisting of a key ID and message digest,
|
||||
it is accepted only if the key ID matches a trusted key and the message digest
|
||||
is verified with this key. Note that for historic reasons the message digest
|
||||
algorithm is not consistent with RFC-1828. The digest is computed directly
|
||||
from the concatenation of the key string followed by the packet contents
|
||||
with the exception of the MAC itself.</p>
|
||||
|
||||
<p>Keys and related information are specified in a keys file, usually called <tt>ntp.keys</tt>,
|
||||
which must be distributed and stored using secure means beyond the scope
|
||||
of the NTP protocol itself. Besides the keys used for ordinary NTP associations,
|
||||
additional keys can be used as passwords for the <tt><a href="ntpq.html">ntpq</a></tt> and <tt><a href="ntpdc.html">ntpdc</a></tt> utility
|
||||
programs. Ordinarily, the <tt>ntp.keys</tt> file is generated by the <tt><a href="keygen.html">ntp-keygen</a></tt> program,
|
||||
but it can be constructed and edited using an ordinary text editor. The
|
||||
program generates pseudo-random keys, one key for each line. Each line consists
|
||||
of three fields, the key identifier as a decimal number from 1 to 65534 inclusive,
|
||||
a key type chosen from the keywords of the <tt>digest</tt> option of the <tt>crypto</tt> command,
|
||||
and a 20-character printable ASCII string or a 40-character hex string as
|
||||
the key itself.</p>
|
||||
|
||||
<p>When <tt>ntpd</tt> is first started, it reads the key file specified by the <tt>keys</tt> command and installs the keys in the key cache. However, individual keys must be activated with the <tt>trustedkey</tt> configuration command before use. This allows, for instance, the installation of possibly several batches of keys and then activating a key remotely using <tt>ntpdc</tt>. The <tt>requestkey</tt> command selects the key ID used as the password for the <tt>ntpdc</tt> utility, while the <tt>controlkey</tt> command selects the key ID used as the password for the <tt>ntpq</tt> utility.</p>
|
||||
<p>By default, the message digest algorithm is MD5 selected by the key type
|
||||
<tt>M</tt> in the keys file. However, if the OpenSSL library is installed,
|
||||
any message digest algorithm supported by that library can be used. The key
|
||||
type is selected as the algorithm name given in the OpenSSL documentation.
|
||||
The key type is associated with the key and can be different for different
|
||||
keys. The server and client
|
||||
must share the same key, key ID and key type and both must be trusted. Note
|
||||
that if conformance to FIPS 140-2 is required, the message digest algorithm
|
||||
must conform to the Secure Hash Standard (SHS), which requires an algorithm
|
||||
from the Secure Hash Algorithm (SHA) family, and the digital signature encryption
|
||||
algorithm, if used, must conform to the Digital Signature Standard (DSS),
|
||||
which requires the Digital Signature Algorithm (DSA).</p>
|
||||
<p>In addition to the above means, <tt>ntpd</tt> now supports
|
||||
Microsoft Windows MS-SNTP authentication using Active Directory services.
|
||||
This support was contributed by the Samba Team and is still in development.
|
||||
It is enabled using the <tt>mssntp</tt> flag
|
||||
of the <tt>restrict</tt> command described on
|
||||
the <a href="authopt.html">Access Control Options</a> page. <span class="style1">Note:
|
||||
Potential users should be aware that these services involve a TCP connection
|
||||
to another process that could potentially block, denying services to other
|
||||
users. Therefore, this flag should be used only for a dedicated server with
|
||||
no clients other than MS-SNTP.</span></p>
|
||||
<h4 id="pub">Public Key Cryptography</h4>
|
||||
|
||||
<p>NTPv4 supports the Autokey security protocol, which is based on public key cryptography. The Autokey Version 2 protocol described on the <a href="http://www.eecis.udel.edu/%7emills/proto.html">Autokey Protocol</a> page verifies packet integrity using MD5 message digests and verifies the source using digital signatures and any of several digest/signature schemes. Optional identity schemes described on the <a href="http://www.eecis.udel.edu/~mills/ident.html">Autokey Identity Schemes</a> page are based on cryptographic challenge/response exchanges. These schemes provide strong security against replay with or without message modification, spoofing, masquerade and most forms of clogging attacks. These schemes are described along with an executive summary, current status, briefing slides and reading list on the <a href="http://www.eecis.udel.edu/~mills/autokey.html">Autonomous Authentication</a> page.</p>
|
||||
|
||||
<p>Autokey authenticates individual packets using cookies bound to the IP source and destination addresses. The cookies must have the same addresses at both the server and client. For this reason operation with network address translation schemes is not possible. This reflects the intended robust security model where government and corporate NTP servers are operated outside firewall perimeters.</p>
|
||||
|
||||
<p>There are three timeouts associated with the Autokey scheme. The key list timeout, which defaults to about 1.1 h, specifies the interval between generating new key lists. The revoke timeout, which defaults to about 36 h, specifies the interval between generating new private values. The restart timeout, with default about 5 d, specifies the interval between protocol restarts to refresh public values. In general, the behavior when these timeouts expire is not affected by the issues discussed on this page.</p>
|
||||
|
||||
<h4 id="group">NTP Secure Groups</h4>
|
||||
|
||||
<p>NTP secure groups are used to define cryptographic compartments and security
|
||||
hierarchies. All hosts belonging to a secure group have the same group name
|
||||
but different host names. The string specified in the <tt>host</tt> option of
|
||||
the <tt>crypto</tt> command is the name of the host and the name used in the
|
||||
host key, sign key and certificate files. The string specified in the <tt>ident</tt> option
|
||||
of the <tt>crypto</tt> command is the group name of all group hosts and the
|
||||
name used in the identity files. The file naming conventions are described on
|
||||
the <a href="keygen.html">ntp-keygen</a> page.</p>
|
||||
|
||||
<p>Each group includes one or more trusted hosts (THs) operating at the root, or lowest stratum in the group. The group name is used in the subject and issuer fields of the TH self-signed trusted certificate for these hosts. The host name is used in the subject and issuer fields of the self-signed certificates for all other hosts.</p>
|
||||
|
||||
<p>All group hosts are configured to provide an unbroken path, called a certificate trail, from each host, possibly via intermediate hosts and ending at a TH. When a host starts up, it recursively retrieves the certificates along the trail in order to verify group membership and avoid masquerade and middleman attacks.</p>
|
||||
|
||||
<p>Secure groups can be configured as hierarchies where a TH of one group can be a client of one or more other groups operating at a lower stratum. A certificate trail consist of a chain of hosts starting at a client, leading through secondary servers of progressively lower stratum and ending at a TH. In one scenario, groups RED and GREEN can be cryptographically distinct, but both be clients of group BLUE operating at a lower stratum. In another scenario, group CYAN can be a client of multiple groups YELLOW and MAGENTA, both operating at a lower stratum. There are many other scenarios, but all must be configured to include only acyclic certificate trails.</p>
|
||||
|
||||
<h4 id="ident">Identity Schemes and Cryptotypes</h4>
|
||||
|
||||
<p>All configurations include a public/private host key pair and matching certificate. Absent an identity scheme, this is a Trusted Certificate (TC) scheme. There are three identity schemes, IFF, GQ and MV described on the <a href="http://www.eecis.udel.edu/%7emills/ident.html">Identity Schemes</a> page. With these schemes all servers in the group have encrypted server identity keys, while clients have nonencrypted client identity parameters. The client parameters can be obtained from a trusted agent (TA), usually one of the THs of the lower stratum group. Further information on identity schemes is on the <a href="http://www.eecis.udel.edu/~mills/ident.html">Autokey Identity Schemes</a> page.</p>
|
||||
|
||||
<p>A specific combination of authentication and identity schemes is called a
|
||||
cryptotype, which applies to clients and servers separately. A group can be
|
||||
configured using more than one cryptotype combination, although not all combinations
|
||||
are interoperable. Note however that some cryptotype combinations may successfully
|
||||
intemperate with each other, but may not represent good security practice. The
|
||||
server and client cryptotypes are defined by the the following codes.</p>
|
||||
|
||||
<dl>
|
||||
<dt>NONE</dt>
|
||||
<dd>A client or server is type NONE if authentication is not available or not configured. Packets exchanged between client and server have no MAC.</dd>
|
||||
|
||||
<dt>AUTH</dt>
|
||||
<dd>A client or server is type AUTH if the <tt>key</tt> option is specified with the <tt>server</tt> configuration command and the client and server keys are compatible. Packets exchanged between clients and servers have a MAC.</dd>
|
||||
|
||||
<dt>PC</dt>
|
||||
<dd>A client or server is type PC if the <tt>autokey</tt> option is specified with the <tt>server</tt> configuration command and compatible host key and private certificate files are present. Packets exchanged between clients and servers have a MAC.</dd>
|
||||
|
||||
<dt>TC</dt>
|
||||
<dd>A client or server is type TC if the <tt>autokey</tt> option is specified with the <tt>server</tt> configuration command and compatible host key and public certificate files are present. Packets exchanged between clients and servers have a MAC.</dd>
|
||||
|
||||
<dt>IDENT</dt>
|
||||
<dd>A client or server is type IDENT if the <tt>autokey</tt> option is specified with the <tt>server</tt> configuration command and compatible host key, public certificate and identity scheme files are present. Packets exchanged between clients and servers have a MAC.</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
<p>The compatible cryptotypes for clients and servers are listed in the following table.</p>
|
||||
|
||||
<table width="100%" border="1" cellpadding="4">
|
||||
|
||||
<tr>
|
||||
<td align="center">Client/Server</td>
|
||||
<td align="center">NONE</td>
|
||||
<td align="center">AUTH</td>
|
||||
<td align="center">PC</td>
|
||||
<td align="center">TC</td>
|
||||
<td align="center">IDENT</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center">NONE</td>
|
||||
<td align="center">yes</td>
|
||||
<td align="center">yes*</td>
|
||||
<td align="center">yes*</td>
|
||||
<td align="center">yes*</td>
|
||||
<td align="center">yes*</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center">AUTH</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">yes</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center">PC</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">yes</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center">TC</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">yes</td>
|
||||
<td align="center">yes</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center">IDENT</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">no</td>
|
||||
<td align="center">yes</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>* These combinations are not valid if the restriction list includes the <tt>notrust</tt> option.</p>
|
||||
|
||||
<h4 id="cfg">Configuration</h4>
|
||||
|
||||
<p>Autokey has an intimidating number of configuration options, most of which are not necessary in typical scenarios. The simplest scenario consists of a TH where the host name of the TH is also the name of the group. For the simplest identity scheme TC, the TH generates host key and trusted certificate files using the <tt>ntp-keygen -T</tt> command, while the remaining group hosts use the same command with no options to generate the host key and public certificate files. All hosts use the <tt>crypto</tt> configuration command with no options. Configuration with passwords is described in the <a href="keygen.html">ntp-keygen</a> page. All group hosts are configured as an acyclic tree with root the TH.</p>
|
||||
|
||||
<p>When an identity scheme is included, for example IFF, the TH generates host
|
||||
key, trusted certificate and private server identity key files using the <tt>ntp-keygen
|
||||
-T -I -i <i>group</i></tt> command, where <tt><i>group</i></tt> is the group
|
||||
name. The remaining group hosts use the same command as above. All hosts
|
||||
use the <tt>crypto ident group<i></i></tt> configuration command.</p>
|
||||
|
||||
<p>Hosts with no dependent clients can retrieve client parameter files from an
|
||||
archive or web page. The <tt>ntp-keygen</tt> can export these data using the <tt>-e</tt> option.
|
||||
Hosts with dependent clients other than the TH must retrieve copies of the server
|
||||
key files using secure means. The <tt>ntp-keygen</tt> can export these data
|
||||
using the <tt>-q</tt> option. In either case the data are installed as a file
|
||||
and then renamed using the name given as the first line in the file, but without
|
||||
the filestamp.</p>
|
||||
|
||||
<h4 id="exam">Examples</h4>
|
||||
|
||||
<div align="center">
|
||||
<img src="pic/group.gif" alt="gif">
|
||||
</div>
|
||||
|
||||
<p>Consider a scenario involving three secure groups RED, GREEN and BLUE. RED and BLUE are typical of national laboratories providing certified time to the Internet at large. As shown ion the figure, RED TH mort and BLUE TH macabre run NTP symmetric mode with each other for monitoring or backup. For the purpose of illustration, assume both THs are primary servers. GREEN is typical of a large university providing certified time to the campus community. GREEN TH howland is a broadcast client of both RED and BLUE. BLUE uses the IFF scheme, while both RED and GREEN use the GQ scheme, but with different keys. YELLOW is a client of GREEN and for purposes of illustration a TH for YELLOW.</p>
|
||||
|
||||
<p>The BLUE TH macabre uses configuration commands</p>
|
||||
|
||||
<p><tt>crypto pw qqsv ident blue</tt><br>
|
||||
<tt>peer mort autokey</tt><br>
|
||||
<tt>broadcast <i>address</i> autokey</tt></p>
|
||||
|
||||
<p>where <tt>qqsv</tt> is the password for macabre files and <i>address</i> is the broadcast address for the local LAN. It generates BLUE files using the commands</p>
|
||||
|
||||
<p><tt>ntp-keygen -p qqsv -T -G -i blue</tt><br>
|
||||
<tt>ntp-keygen -p qqsv -e >ntpkey_gqpar_blue</tt></p>
|
||||
|
||||
<p>The first line generates the host, trusted certificate and private GQ server keys file. The second generates the public GQ client parameters file, which can have any nonconflicting mnemonic name.</p>
|
||||
|
||||
<p>The RED TH mort uses configuration commands</p>
|
||||
|
||||
<p><tt>crypto pw xxx ident red</tt><br>
|
||||
<tt>peer macabre autokey</tt><br>
|
||||
<tt>broadcast <i>address</i> autokey</tt></p>
|
||||
|
||||
<p>where <tt>xxx</tt> is the password for mort files. It generates RED files using the commands</p>
|
||||
|
||||
<p><tt>ntp-keygen -p xxx -T -I -i red</tt><br>
|
||||
<tt>ntp-keygen -p xxx -e >ntpkey_iffpar_red</tt></p>
|
||||
|
||||
<p> The GREEN TH howland uses configuration commands</p>
|
||||
|
||||
<p><tt>crypto pw yyy ident green</tt><br>
|
||||
<tt>broadcastclient</tt></p>
|
||||
|
||||
<p>where <tt>yyy</tt> is the password for howland files. It generates GREEN files using the commands</p>
|
||||
|
||||
<p><tt>ntp-keygen -p yyy -T -G -i green</tt><br>
|
||||
<tt>ntp-keygen -p yyy -e >ntpkey_gqpar_green</tt><br>
|
||||
<tt>ntp-keygen -p yyy -q zzz >zzz_ntpkey_gqkey_green</tt></p>
|
||||
|
||||
<p>The first two lines serve the same purpose as the preceding examples. The
|
||||
third line generates a copy of the private GREEN server file for use on another
|
||||
server in the same group, say YELLOW, but encrypted with the <tt>zzz</tt> password.</p>
|
||||
|
||||
<p>A client of GREEN, for example YELLOW, uses the configuration commands</p>
|
||||
|
||||
<p><tt>crypto pw abc ident green</tt><br>
|
||||
<tt>server howland autokey</tt></p>
|
||||
|
||||
<p>where <tt>abc</tt> is the password for its files. It generates files using the command</p>
|
||||
|
||||
<p><tt>ntp-keygen -p abc</tt></p>
|
||||
|
||||
<p>The client retrieves the client file for that group from a public archive or web page using nonsecure means. In addition, each server in a group retrieves the private server keys file from the TH of that group, but it is encrypted and so must be sent using secure means. The files are installed in the keys directory with name taken from the first line in the file, but without the filestamp.</p>
|
||||
|
||||
<p>Note that if servers of different groups, in this case RED and BLUE, share the same broadcast media, each server must have client files for all groups other than its own, while each client must have client files for all groups. Note also that this scenario is for illustration only and probably would not be wise for practical use, as if one of the TH reference clocks fails, the certificate trail becomes cyclic. In such cases the symmetric path between RED and BLUE, each in a different group, would not be a good idea.</p>
|
||||
|
||||
<h4 id="cmd">Authentication Commands</h4>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt id=automax><tt>automax [<i>logsec</i>]</tt></dt>
|
||||
<dd>Specifies the interval between regenerations of the session key list used with the Autokey protocol, as a power of 2 in seconds. Note that the size of the key list for each association depends on this interval and the current poll interval. The default interval is 12 (about 1.1 h). For poll intervals above the specified interval, a session key list with a single entry will be regenerated for every message sent.</dd>
|
||||
|
||||
<dt id="controlkey"><tt>controlkey <i>keyid</i></tt></dt>
|
||||
<dd>Specifies the key ID to use with the <a
|
||||
href="ntpq.html"><tt>ntpq</tt></a> utility, which uses the
|
||||
standard protocol defined in RFC-1305. The <tt><i>keyid</i></tt>
|
||||
argument is the key ID for a <a href="#trustedkey">trusted
|
||||
key</a>, where the value can be in the range 1 to 65534,
|
||||
inclusive.</dd>
|
||||
|
||||
<dt id="crypto"><tt>crypto [randfile <i>file</i>] [host <i>name</i>] [ident <i>name</i>] [pw <i>password</i>]</tt></dt>
|
||||
<dd>This command requires the OpenSSL library. It activates public key cryptography
|
||||
and loads the required host key and public certificate. If one or more files
|
||||
are left unspecified, the default names are used as described below. Unless
|
||||
the complete path and name of the file are specified, the location of a file
|
||||
is relative to the keys directory specified in the <tt>keysdir</tt> configuration
|
||||
command or default <tt>/usr/local/etc</tt>. Following are the options.</dd>
|
||||
|
||||
<dd><dl>
|
||||
|
||||
<dt><tt>digest</tt> <tt>MD2</tt> | <tt>MD4</tt> | <tt>MD5</tt> | <tt>MDC2</tt> | <tt>RIPEMD160</tt> | <tt>SHA</tt> | <tt>SHA1</tt></dt>
|
||||
<dd>Specify the message digest algorithm, with default MD5. If the OpenSSL library
|
||||
is installed, <tt><i>name</i></tt> can be be any message digest algorithm supported
|
||||
by the library not exceeding 160 bits in length. However, all Autokey
|
||||
participants in an Autokey subnet must use the same algorithm. Note that
|
||||
the Autokey message digest algorithm is separate and distinct form the symmetric
|
||||
key message digest algorithms. Note: If compliance with FIPS 140-2 is required,
|
||||
the algorithm must be ether <tt>SHA</tt> or <tt>SHA1</tt>.</dd>
|
||||
|
||||
<dt><tt>host <i>name</i></tt></dt>
|
||||
<dd>Specifies the string used when constructing the names for the host, sign
|
||||
and certificate files generated by the <tt>ntp-keygen</tt> program with the <tt>-s <i>name</i></tt> option.</dd>
|
||||
|
||||
<dt><tt>ident <i>name</i></tt></dt>
|
||||
<dd>Specifies the string used in constructing the identity files generated by the <tt>ntp-keygen</tt> program with the <tt>-i <i>name</i></tt> option.</dd>
|
||||
|
||||
<dt><tt>pw <i>password</i></tt></dt>
|
||||
<dd>Specifies the password to decrypt files previously encrypted by the <tt>ntp-keygen</tt> program with the <tt>-p</tt> option.</dd>
|
||||
|
||||
<dt><tt>randfile <i>file</i></tt></dt>
|
||||
<dd>Specifies the location of the random seed file used by the OpenSSL library. The defaults are described on the <tt>ntp-keygen</tt> page.</dd>
|
||||
|
||||
</dl></dd>
|
||||
|
||||
<dt id="keys"><tt>keys <i>keyfile</i></tt></dt>
|
||||
<dd>Specifies the complete path to the MD5 key file containing the keys and key IDs used by <tt>ntpd</tt>, <tt>ntpq</tt> and <tt>ntpdc</tt> when operating with symmetric key cryptography. This is the same operation as the <tt>-k </tt>command line option. Note that the directory path for Autokey media is specified by the <tt>keysdir</tt> command.</dd>
|
||||
|
||||
<dt id="keysdir"><tt>keysdir <i>path</i></tt>K</dt>
|
||||
<dd>This command specifies the default directory path for Autokey cryptographic keys, parameters and certificates. The default is <tt>/usr/local/etc/</tt>. Note that the path for the symmetric keys file is specified by the <tt>keys</tt> command.</dd>
|
||||
|
||||
<dt id="requestkey"><tt>requestkey <i>keyid</i></tt></dt>
|
||||
<dd>Specifies the key ID to use with the
|
||||
<a href="ntpdc.html"><tt>ntpdc</tt></a> utility program, which
|
||||
uses a proprietary protocol specific to this implementation of
|
||||
<tt>ntpd</tt>. The <tt><i>keyid</i></tt> argument is a key ID
|
||||
for a <a href="#trustedkey">trusted key</a>, in the range 1 to
|
||||
65534, inclusive.</dd>
|
||||
|
||||
<dt id="revoke"><tt>revoke [<i>logsec</i>]</tt></dt>
|
||||
<dd>Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in seconds. These values need to be updated frequently in order to deflect brute-force attacks on the algorithms; however, updating some values is a relatively expensive operation. The default interval is 17 (about 36 h). For poll intervals above the specified interval, the values will be updated for every message sent.</dd>
|
||||
|
||||
<dt id="trustedkey"><tt>trustedkey [<i>keyid</i> | (<i>lowid</i> ... <i>highid</i>)] [...]</tt></dt>
|
||||
<dd>Specifies the key ID(s) which are trusted for the purposes of
|
||||
authenticating peers with symmetric key cryptography. Key IDs
|
||||
used to authenticate <tt>ntpq</tt> and <tt>ntpdc</tt> operations
|
||||
must be listed here and additionally be enabled with
|
||||
<a href="#controlkey">controlkey</a> and/or
|
||||
<a href="#requestkey">requestkey</a>. The authentication
|
||||
procedure for time transfer require that both the local and
|
||||
remote NTP servers employ the same key ID and secret for this
|
||||
purpose, although different keys IDs may be used with different
|
||||
servers. Ranges of trusted key IDs may be specified:
|
||||
"<tt>trustedkey (1 ... 19) 1000 (100 ... 199)</tt>" enables the
|
||||
lowest 120 key IDs which start with the digit 1. The spaces
|
||||
surrounding the ellipsis are required when specifying a range.</dd>
|
||||
</dl>
|
||||
|
||||
<h4 id="err">Error Codes</h4>
|
||||
|
||||
<p>Errors can occur due to mismatched configurations, unexpected protocol restarts, expired certificates and unfriendly people. In most cases the protocol state machine recovers automatically by retransmission, timeout and restart, where necessary. Some errors are due to mismatched keys, digest schemes or identity schemes and must be corrected by installing the correct media and/or correcting the configuration file. One of the most common errors is expired certificates, which must be regenerated and signed at least once per year using the <a href="keygen.html"><tt>ntp-keygen</tt> - generate public and private keys</a> program.</p>
|
||||
|
||||
<p>The following error codes are reported via the NTP control and monitoring protocol trap mechanism and to the <tt>cryptostats</tt> monitoring file if configured.</p>
|
||||
|
||||
<dl>
|
||||
|
||||
<dt>101 bad field format or length</dt>
|
||||
<dd>The packet has invalid version, length or format.</dd>
|
||||
|
||||
<dt>102 bad timestamp</dt>
|
||||
<dd>The packet timestamp is the same or older than the most recent received. This could be due to a replay or a server clock time step.</dd>
|
||||
|
||||
<dt>103 bad filestamp</dt>
|
||||
<dd>The packet filestamp is the same or older than the most recent received. This could be due to a replay or a key file generation error.</dd>
|
||||
|
||||
<dt>104 bad or missing public key</dt>
|
||||
<dd>The public key is missing, has incorrect format or is an unsupported type.</dd>
|
||||
|
||||
<dt>105 unsupported digest type</dt>
|
||||
<dd>The server requires an unsupported digest/signature scheme.</dd>
|
||||
|
||||
<dt>106 unsupported identity type</dt>
|
||||
<dd>The client or server has requested an identity scheme the other does not support.</dd>
|
||||
|
||||
<dt>107 bad signature length</dt>
|
||||
<dd>The signature length does not match the current public key.</dd>
|
||||
|
||||
<dt>108 signature not verified</dt>
|
||||
<dd>The message fails the signature check. It could be bogus or signed by a different private key.</dd>
|
||||
|
||||
<dt>109 certificate not verified</dt>
|
||||
<dd>The certificate is invalid or signed with the wrong key.</dd>
|
||||
|
||||
<dt>110 host certificate expired</dt>
|
||||
<dd>The old server certificate has expired.</dd>
|
||||
|
||||
<dt>111 bad or missing cookie</dt>
|
||||
<dd>The cookie is missing, corrupted or bogus.</dd>
|
||||
|
||||
<dt>112 bad or missing leapseconds table</dt>
|
||||
<dd>The leapseconds table is missing, corrupted or bogus.</dd>
|
||||
|
||||
<dt>113 bad or missing certificate</dt>
|
||||
<dd>The certificate is missing, corrupted or bogus.</dd>
|
||||
|
||||
<dt>114 bad or missing group key</dt>
|
||||
<dd>The identity key is missing, corrupt or bogus.</dd>
|
||||
|
||||
<dt>115 protocol error</dt>
|
||||
<dd>The protocol state machine has wedged due to unexpected restart.</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
<h4 id="file">Files</h4>
|
||||
|
||||
<p>See the <a href="keygen.html"><tt>ntp-keygen</tt></a> page. Note that provisions to load leap second values from the NIST files have been removed. These provisions are now available whether or not the OpenSSL library is available. However, the functions that can download these values from servers remains available.</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
32
html/bugs.html
Normal file
32
html/bugs.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>NTP Bug Reporting Procedures</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>NTP Bug Reporting Procedures</h3>
|
||||
<img src="pic/hornraba.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>The rabbit toots to make sure you read this.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">04:05</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="250">Sunday, March 02, 2008</csobj></p>
|
||||
.<br clear="left">
|
||||
<hr>
|
||||
<h4> Security Bug Reporting Procedures</h4>
|
||||
<p>If you find or suspect a security related program bug in this distribution, please send a report to <a href="mailto:security@ntp.org">security@ntp.org</a>. Please do not contact developers directly.</p>
|
||||
<h4>Non-Security Bug Reporting Procedures</h4>
|
||||
<p>If you find or suspect a non-security related program bug in this distribution, please send a report to the NTP Public Service Project Bug Tracking System (Bugzilla) at <a href="http://bugs.ntp.org/">http://bugs.ntp.org/</a>. Bugs reported this way are immediately forwarded to the developers. Please do not contact the developers directly.</p>
|
||||
<p>If you find or suspect an error in the program documentation pages, please
|
||||
send a report directly to the editor David Mills at <a href="mailto:mills@udel.edu">mills@udel.edu</a>.
|
||||
The master documentation pages are not controlled by the bug tracking system.
|
||||
You are invited to contribute new or revised pages in similar style and format.</p>
|
||||
<p>If you wish to send a report via electronic mail, please remember that your report will be held until one of our volunteers enters it in Bugzilla. The email address for these reports is <a href="mailto:bugs@ntp.org">bugs@ntp.org</a>. You will need to register at <a href="http://bugs.ntp.org/">http://bugs.ntp.org/</a> so that you may participate directly in any e-mail discussion regarding your report.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
59
html/build.html
Normal file
59
html/build.html
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Building and Installing the Distribution</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Building and Installing the Distribution</h3>
|
||||
<img src="pic/beaver.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>For putting out compiler fires.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">16:45</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="250">Sunday, March 02, 2008</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/install.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#build">Building and Installing the Distribution</a>
|
||||
<li class="inline"><a href="#unix">Building and Installing for Unix</a>
|
||||
<li class="inline"><a href="#win">Building and Installing for Windows</a>
|
||||
<li class="inline"><a href="#conf">Configuration</a>
|
||||
<li class="inline"><a href="#prob">If You Have Problems</a>
|
||||
<li class="inline"><a href="#make">Additional <tt>make</tt> Commands</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="build">Building and Installing the Distribution</h4>
|
||||
<p>It is not possible in a software distribution such as this to support every individual computer and operating system with a common executable, even with the same system but different versions and options. Therefore, it is necessary to configure, build and install for each system and version. In almost all cases, these procedures are completely automatic, The user types <tt>./configure</tt>, <tt>make</tt> and <tt>install</tt> in that order and the autoconfigure system does the rest. There are some exceptions, as noted below and on the <a href="hints.html">Hints and Kinks</a> pages.</p>
|
||||
<p>If available, the OpenSSL library from <a href="http://www.openssl.org">http://www.openssl.org</a> is used to support public key cryptography. The library must be built and installed prior to building NTP. The procedures for doing that are included in the OpenSSL documentation. The library is found during the normal NTP configure phase and the interface routines compiled automatically. Only the <tt>libcrypto.a</tt> library file and <tt>openssl</tt> header files are needed. If the library is not available or disabled, this step is not required.</p>
|
||||
<p>The <a href="config.html">Build Options</a> page describes a number of options that determine whether debug support is included, whether and which reference clock drivers are included and the locations of the executables and library files, if not the default. By default debugging options and all reference clock drivers are included.</p>
|
||||
<h4 id="unix">Building and Installing for Unix</h4>
|
||||
<p>This distribution uses common compilers and tools that come with most Unix distributions. Not all of these tools exist in the standard distribution of modern Unix versions (compilers are likely to be an add-on product). If this is the case, consider using the GNU tools and <tt>gcc</tt> compiler included as freeware in some systems. For a successful build, all of these tools should be accessible via the current path.</p>
|
||||
<p>The first thing to do is uncompress the distribution and extract the source tree. In the distribution base directory use the <tt>./configure </tt>command to perform an automatic configuration procedure. This command inspects the hardware and software environment and configures the build process accordingly. Use the <tt>make</tt> command to compile and link the distribution and the <tt>install</tt> command to install the executables by default in <tt>/usr/local/bin</tt>.</p>
|
||||
<p>If your site supports multiple architectures and uses NFS to share files, you can use a single source tree to build executables for multiple architectures. While running on a particular architecture, change to the base directory and create a subdirectory using a command like <tt>mkdir A.machine, </tt>which will create an architecture-specific directory, then change to this directory and mumble <tt>../configure</tt>. The remaining steps are the same whether building in the base directory or in the subdirectory.</p>
|
||||
<h4 id="win">Building and Installing for Windows</h4>
|
||||
<p>NTP supports Windows Vista, XP, NT4 and 2000 systems. See the <a href="hints/winnt.html">NTP 4.x for Windows NT</a> page for directions to compile the sources and install the executables. A precompiled executable is available.</p>
|
||||
<h4 id="conf">Configuration</h4>
|
||||
<p>You are now ready to configure the daemon. You will need to create a NTP configuration file by default in <tt>/etc/ntp.conf.</tt> Newbies should see the <a href="quick.html">Quick Start</a> page for orientation. Seasoned veterans can start with the <a href="ntpd.html"><tt>ntpd</tt> - Network Time Protocol (NTP) daemon</a> page and move on to the specific configuration option pages from there.</p>
|
||||
<h4 id="prob">If You Have Problems</h4>
|
||||
<p>If you have problems with your hardware and software environment (e.g. operating system-specific issues), browse the <a href="hints.html">Hints and Kinks</a> pages. For other problems a tutorial on debugging technique is in the <a href="debug.html">NTP Debugging Technique</a> page. A list of important system log messages is on the <a href="msyslog.html"><tt>ntpd</tt> System Log Messages</a> page.</p>
|
||||
<p>The first line of general assistance is the NTP web site <a href="http://www.ntp.org">www.ntp.org</a> and the helpful documents resident there. Requests for assistance of a general nature and of interest to other timekeepers should be sent to the NTP newsgroup comp.protocols.time.ntp.</p>
|
||||
<p>Users are invited to report bugs and offer suggestions via the <a href="bugs.html">NTPáBug Reporting Procedures</a> page.</p>
|
||||
<h4 id="make">Additional <tt>make</tt> commands</h4>
|
||||
<dl>
|
||||
<dt><tt>make clean</tt>
|
||||
<dd>Cleans out object files, programs and temporary files.
|
||||
<dt><tt>make distclean</tt>
|
||||
<dd>Does the work of <tt>clean</tt>, but cleans out all directories in preparation for a new distribution release.
|
||||
<dt><tt>make dist</tt>
|
||||
<dd>Does the work of <tt>make distclean</tt>, but constructs compressed tar files for distribution. You must have GNU automake to perform this function.
|
||||
</dl>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,83 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Building and Installing the Distribution</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Building and Installing the Distribution</h3>
|
||||
<img src="../pic/beaver.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>For putting out compiler fires.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">03:06 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="270">Monday, October 13, 2003</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links7.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#build">Building and Installing the Distribution</a>
|
||||
<li class="inline"><a href="#unix">Building and Installing under Unix</a>
|
||||
<li class="inline"><a href="#comp">Compilation</a>
|
||||
<li class="inline"><a href="#install">Installation</a>
|
||||
<li class="inline"><a href="#config">Configuration</a>
|
||||
<li class="inline"><a href="#prob">If You Have Problems</a>
|
||||
<li class="inline"><a href="#win">Building and Installing under Windows NT</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="build">Building and Installing the Distribution</h4>
|
||||
<p>As a practical matter, every computer architecture and operating system version seems to be different than any other. The device drivers may be different, the input/output system may be idiosyncratic and the libraries may have different semantics. It is not possible in a software distribution such as this one to support every individual system with a common set of binaries, even with the same system but different versions. Therefore, it is necessary to individually configure the software build for each system and version, both at compile time and at run time. In almost all cases, these procedures are completely automatic and all the newbie user need do is type "configure", "make" and "install" in that order and the autoconfigure system does the rest. There are some exceptions, as noted below and on the <a href="hints.html">Hints and Kinks</a> page.</p>
|
||||
<p>If available, the OpenSSL library from <a href="http://www.openssl.org">http://www.openssl.org</a> is used to support public key cryptography. The library must be built and installed prior to building NTPv4. The procedures for doing that are included in the OpenSSL documentation. The library is found during the normal NTPv4 configure phase and the interface routines compiled automatically. Only the <tt>libcrypto.a</tt> library and associated header files are used. If the library is not available or disabled, this step is not required.</p>
|
||||
<h4 id="unix">Building and Installing under Unix</h4>
|
||||
<p>Make sure that you have all necessary tools for building executables. These tools include <tt>cc/gcc, make, awk, sed, tr, sh, grep, egrep</tt> and a few others. Not all of these tools exist in the standard distribution of modern Unix versions (compilers are likely to be an add-on product). If this is the case, consider using the GNU tools and <tt>gcc</tt> compiler. For a successful build, all of these tools should be accessible via the current path.</p>
|
||||
<p>The first thing to do is uncompress the distribution and extract the source tree. In the distribution base directory use the <tt>./configure</tt> command to perform an automatic configuration procedure. This command inspects the hardware and software environment and tests for the presence of system header files and the contents of these files to determine if certain features are present. When one or more of these features are present, the code is compiled to use them; if not, no special code is compiled. However, even if the code is compiled to use these features, the code does a special test at run time to see if one or more are actually present and avoids using them if not present. In such cases a warning message is sent to the system log, but the daemon should still work properly.</p>
|
||||
<p>The default build normally includes the debugging code, which can be useful in diagnosing problems found in initial test, and all reference clock drivers known to work with each machine and operating system. Unless memory space is at a premium, this is a sensible strategy and greatly simplifies debugging and support. If you need to delete either the debugging code or one or all reference clock drivers to save space, see the <a href="config.html">Configuration Options</a> page.</p>
|
||||
<p>If your site supports multiple architectures and uses NFS to share files, you can use a single source tree to compile executables for all architectures. While running on a target architecture machine and in the distribution base directory create a subdirectory using a command like <tt>mkdir A.`config.guess`</tt>, which will create an architecture-specific directory with name peculiar to the architecture and operating system. Then change to this directory and emit a <tt>../configure</tt> command. The remaining steps are the same whether building in the base directory or in the subdirectory.</p>
|
||||
<h4 id="comp">Compilation</h4>
|
||||
<p>Use the <tt>make</tt> command to compile all source modules, construct the libraries and link the distribution. Expect few or no warnings using <tt>cc</tt> and a moderate level of warnings using <tt>gcc</tt>. Note: On some Unix platforms <tt>gcc</tt> may show quite a few complaints about system header files and type inconsistencies, especially with pointer variables. This is usually the case when the system header files are not up to ANSI standards or <tt>gcc </tt>expectations, when <tt>gcc</tt> is not installed properly, or when operating system updates and patches are applied and <tt>gcc</tt> is not reinstalled. While the autoconfigure process is quite thorough, the Unix programming cultures of the various workstation makers still remain idiosyncratic.</p>
|
||||
<h4 id="install">Installation</h4>
|
||||
<p>As root, use the <tt>make install</tt> command to install the binaries in the destination directory. Most commonly, these programs are installed in <tt>/usr/local/bin</tt>, but this can be overridden during configuration. You must of course have write permission on the install in the destination directory. This includes the following programs:</p>
|
||||
<ul>
|
||||
<li><a href="../ntpd.html"><tt>ntpd</tt> - Network Time Protocol (NTP) daemon</a>
|
||||
<li><a href="../ntpq.html"><tt>ntpq</tt> - standard NTP query program</a>
|
||||
<li><a href="../ntpdc.html"><tt>ntpdc</tt> - special NTP query program</a>
|
||||
<li><a href="../ntpdate.html"><tt>ntpdate</tt> - set the date and time via NTP</a>
|
||||
<li><a href="../ntptrace.html"><tt>ntptrace</tt> - trace a chain of NTP servers back to the primary source</a>
|
||||
</ul>
|
||||
<p>If the precision time kernel modifications are present, the following program is installed:</p>
|
||||
<ul>
|
||||
<li><a href="../ntptime.html"><tt>ntptime</tt> - read kernel time variables</a>
|
||||
</ul>
|
||||
<p>If the public key authentication functions are present, the following program is installed:</p>
|
||||
<ul>
|
||||
<li><a href="../keygen.html"><tt>ntp-keygen</tt> - generate public and private keys</a>
|
||||
</ul>
|
||||
<p>In some systems that include the capability to edit kernel variables, the following program is installed:</p>
|
||||
<ul>
|
||||
<li><a href="../tickadj.html"><tt>tickadj</tt> - set time-related kernel variables</a>
|
||||
</ul>
|
||||
<p>Cryptographic support, both symmetric and public key, requires one or more key files, commonly installed in <tt>/usr/local/etc</tt>. Public key cryptography requires a random seed file, usually called <tt>.rnd</tt>, installed in a dark place such as the root directory or <tt>/etc</tt>. Directions for generating keys is on the <a href="../authopt.html">Authentication Options</a> page.</p>
|
||||
<h4 id="config">Configuration</h4>
|
||||
<p>You are now ready to configure the daemon and start it. You will need to create a NTP configuration file <tt>ntp.conf</tt> and a cryptographic key file <tt>ntp.keys</tt>. The latter file is necessary only for remote configuration support, if needed. Newbies should see the <a href="quick.html">Quick Start</a> page for orientation. Seasoned veterans can start with the <a href="../ntpd.html"><tt>ntpd</tt> - Network Time Protocol (NTP) daemon</a> page and move on to the specific configuration option pages from there. A tutorial on NTP subnet design and configuration options is in the <a href="../notes.html">Notes on Configuring NTP and Setting up a NTP Subnet</a> page.</p>
|
||||
<h4 id="prob">If You Have Problems</h4>
|
||||
<p>If you have problems peculiar to the particular hardware and software environment (e.g. operating system-specific issues), browse the <a href="hints.html">Hints and Kinks</a> page. For other problems a tutorial on debugging technique is in the <a href="../debug.html">NTP Debugging Technique</a> page. As always, the first line of general assistance is the NTP web site <a href="http://www.ntp.org">www.ntp.org</a> and the FAQ resident there. Requests for assistance of a general nature and of interest to other timekeepers should be sent to the NTP newsgroup comp.protocols.time.ntp. Bug reports of a specific nature should be sent to <a href="mailto:bugs@mail.ntp.org">bugs@ntp.org</a>. Bug reports of a specific nature on features implemented by the programmer corps mentioned in the <a href="../copyright.html">Copyright</a> page should be sent directly to the implementor listed in that page, with copy to bugs@ntp.org.</p>
|
||||
<p>Please include the version of the source distribution (e.g., ntp-4.0.70a) in your bug report, as well as billboards from the relevant utility programs and debug trace, if available. Please include the output of <tt>config.guess</tt> in your bug report. It will look something like:</p>
|
||||
<p><tt>pdp11-dec-fuzzos3.4</tt></p>
|
||||
<h4>Additional <tt>make</tt> commands</h4>
|
||||
<dl>
|
||||
<dt><tt>make clean</tt>
|
||||
<dd>Cleans out object files, programs and temporary files.
|
||||
<dt><tt>make distclean</tt>
|
||||
<dd>Does the work of <tt>clean</tt>, but cleans out all directories in preparation for a new distribution release.
|
||||
<dt><tt>make dist</tt>
|
||||
<dd>Does the work of <tt>make distclean</tt>, but constructs compressed tar files for distribution. You must have GNU automake to perform this function.
|
||||
</dl>
|
||||
<h4 id="win">Building and Installing under Windows NT</h4>
|
||||
<p>See <tt><a href="hints/winnt.html">hints/winnt.htm</a></tt> for directions to compile the sources and install the executables.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,168 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Configuration Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Configuration Options</h3>
|
||||
<img src="../pic/pogo3a.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>Gnu autoconfigure tools are in the backpack.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">12:56 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="266">Saturday, March 20, 2004</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#basic">Basic Configuration Options - the <tt>configure</tt> utility</a>
|
||||
<li class="inline"><a href="#opt">Options</a>
|
||||
<li class="inline"><a href="#dir">Directory and File Names</a>
|
||||
<li class="inline"><a href="#host">Host Type</a>
|
||||
<li class="inline"><a href="#pkg">Optional Packages</a>
|
||||
<li class="inline"><a href="#feat">Optional Features</a>
|
||||
<li class="inline"><a href="#radio">Radio Clocks</a>
|
||||
<li class="inline"><a href="#parse">PARSE Clocks</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="basic">Basic Configuration Options - the <tt>configure</tt> utility</h4>
|
||||
<p>The following options are for compiling and installing a working version of the NTP distribution. In most cases, the build process is completely automatic. In some cases where memory space is at a premium, or the binaries are to be installed in a different place, it is possible to tailor the configuration to remove such features as reference clock driver support, debugging support, and so forth.</p>
|
||||
<p>Configuration options are specified as arguments to the <tt>configure</tt> script. Following is a summary of the current options, as of the 4.0.99m version:</p>
|
||||
<p>Usage: <tt>configure [options] [host]</tt><br>
|
||||
</p>
|
||||
<h4 id="opt">Options</h4>
|
||||
<p><tt>[defaults in brackets after descriptions]</tt> Configuration:</p>
|
||||
<pre>
|
||||
--cache-file=FILE cache test results in FILE
|
||||
--help print this message
|
||||
--no-create do not create output files
|
||||
--quiet, --silent do not print `checking...' messages
|
||||
--version print the version of autoconf that created
|
||||
configure
|
||||
</pre>
|
||||
<h4 id="dir">Directory and File Names</h4>
|
||||
<pre>
|
||||
--prefix=PREFIX install architecture-independent files in PREFIX [/usr/local]
|
||||
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix]
|
||||
--bindir=DIR user executables in DIR [EPREFIX/bin]
|
||||
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
|
||||
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
|
||||
--datadir=DIR read-only architecture-independent data in DIR [PREFIX/share]
|
||||
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
|
||||
--sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com]
|
||||
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
|
||||
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
|
||||
--includedir=DIR C header files in DIR [PREFIX/include]
|
||||
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
|
||||
--infodir=DIR info documentation in DIR [PREFIX/info]
|
||||
--mandir=DIR man documentation in DIR [PREFIX/man]
|
||||
--srcdir=DIR find the sources in DIR [configure dir or ..]
|
||||
--x-includes=DIR X include files are in DIR
|
||||
--x-libraries=DIR X library files are in DIR
|
||||
--program-prefix=PREFIX prepend PREFIX to installed program names
|
||||
--program-suffix=SUFFIX append SUFFIX to installed program names
|
||||
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
||||
</pre>
|
||||
<h4 id="host">Host Type</h4>
|
||||
<pre>
|
||||
--build=BUILD configure for building on BUILD [BUILD=HOST]
|
||||
--host=HOST configure for HOST [guessed]
|
||||
--target=TARGET configure for TARGET [TARGET=HOST]
|
||||
</pre>
|
||||
<h4 id="pkg">Optional Packages</h4>
|
||||
<pre>
|
||||
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
||||
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
||||
|
||||
openssl-libdir=DIR OpenSSL object code libraries in DIR [/usr/lib/usr/local/lib/usr/local/ssl/lib]
|
||||
openssl-incdir=DIR OpenSSL header files in DIR [/usr/include/usr/local/include/usr/local/ssl/include]
|
||||
crypto=autokey Use autokey cryptography
|
||||
crypto=rsaref Use the RSAREF library
|
||||
electricfence Compile with ElectricFence malloc debugger
|
||||
</pre>
|
||||
<h4 id="feat">Optional Features</h4>
|
||||
<pre>
|
||||
--disable-FEATURE do not include FEATURE (same as
|
||||
--enable-FEATURE=no)
|
||||
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
||||
|
||||
accurate-adjtime The adjtime() call is accurate
|
||||
clockctl use /dev/clockctl (non root control of system clock)
|
||||
debugging Include debugging code [enable]
|
||||
des Include support for DES keys [enable]
|
||||
dst-minutes=VALUE Minutes per DST adjustment [60]
|
||||
gdt-surveying Include GDT survey code [disable]
|
||||
hourly-todr-sync If we should sync TODR hourly
|
||||
kernel-fll-bug If we should avoid a (Solaris) kernel FLL bug
|
||||
kmem Read /dev/kmem for 'tick' and/or 'tickadj'
|
||||
md5 Include support for MD5 keys [enable]
|
||||
ntpdate-step If ntpdate should step the time
|
||||
slew-always Always slew the time
|
||||
step-slew Step and slew the time
|
||||
tick=VALUE Force a value for 'tick'
|
||||
tickadj=VALUE Force a value for 'tickadj'
|
||||
udp-wildcard Use UDP wildcard delivery
|
||||
</pre>
|
||||
<h4 id="radio">Radio Clocks</h4>
|
||||
<p>(these are ordinarily enabled, if supported by the machine and operating system):</p>
|
||||
<pre>
|
||||
all-clocks Include drivers for all suitable non-PARSE clocks [enable]
|
||||
ACTS NIST dialup clock
|
||||
ARBITER Arbiter 1088A/B GPS receiver
|
||||
ARCRON_MSF Arcron MSF receiver
|
||||
AS2201 Austron 2200A or 2201A GPS receiver
|
||||
ATOM ATOM PPS interface
|
||||
AUDIO-CHU CHU audio decoder
|
||||
BANCOMM Datum/Bancomm BC635/VME interface (requires an explicit --enable-BANCOMM request)
|
||||
CHRONOLOG Chrono-log K-series WWVB receiver
|
||||
CHU CHU modem decoder
|
||||
DATUM Datum Programmable Time System
|
||||
DUMBCLOCK Dumb generic hh:mm:ss local clock
|
||||
FG Forum Graphic GPS
|
||||
GPSVME TrueTime GPS receiver with VME interface (requires an explicit --enable-GPSVME request)
|
||||
HEATH HeathKit GC-1000 Most Accurate Clock
|
||||
HOPFPCI HOPF 6039 PCI board
|
||||
HOPFSERIAL HOPF serial clock device
|
||||
HPGPS HP 58503A GPS Time & Frequency receiver
|
||||
IRIG IRIG (Audio) Clock
|
||||
JUPITER Rockwell Jupiter GPS receiver
|
||||
LEITCH Leitch CSD 5300 Master Clock System Driver
|
||||
LOCAL-CLOCK Local clock driver
|
||||
MSFEES EES M201 MSF receiver
|
||||
MX4200 Magnavox MX4200 GPS receiver
|
||||
NMEA NMEA GPS receiver
|
||||
ONCORE Motorola VP/UT Oncore GPS receiver
|
||||
PALISADE Palisade clock
|
||||
PCF Conrad parallel port radio clock
|
||||
PST PST/Traconex 1020 WWV/H receiver
|
||||
PTBACTS PTB dialup clock support
|
||||
SHM Clock attached through shared memory (requires an explicit --enable-SHM request)
|
||||
SPECTRACOM Spectracom 8170/Netclock/2 WWVB receiver
|
||||
TRAK TRAK 8810 GPS station clock
|
||||
TPRO KSI/Odetics TPRO/S IRIG Interface
|
||||
TRUETIME Kinemetrics/TrueTime (generic) receiver
|
||||
ULINK Ultralink WWVB receiver
|
||||
USNO US Naval Observatory dialup clock
|
||||
WWV WWV audio receiver
|
||||
</pre>
|
||||
<h4 id="parse">PARSE Clocks</h4>
|
||||
<pre>
|
||||
parse-clocks Include drivers for all suitable PARSE clocks [enable]
|
||||
COMPUTIME Diem Computime Radio Clock
|
||||
DCF7000 ELV/DCF7000 Clock
|
||||
HOPF6021 HOPF 6021 Radio Clock support
|
||||
MEINBERG Meinberg clocks
|
||||
RAWDCF DCF77 raw time code
|
||||
RCC8000 RCC 8000 Radio Clock support
|
||||
SCHMID SCHMID DCF77 clock support
|
||||
TRIMTAIP Trimble GPS/TAIP Protocol
|
||||
TRIMTSIP Trimble GPS/TSIP Protocol
|
||||
VARITEXT VARITEXT clock
|
||||
WHARTON Wharton 400A Series clock
|
||||
</pre>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Hints and Kinks</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Hints and Kinks</h3>
|
||||
<img src="../pic/alice35.gif" align="left" alt="gif"><a href="http://www.eecis.udel.edu/%7emills/pictures.html"> from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>Mother in law has all the answers.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">12:56 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="266">Saturday, March 20, 2004</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>This is an index for a set of troubleshooting notes contained in individual text files in the <tt>./hints</tt> directory. They were supplied by various volunteers in the form of mail messages, patches or just plain word of mouth. Each note applies to a specific computer and operating system and gives information found useful in setting up the NTP distribution or site configuration. The notes are very informal and subject to errors; no attempt has been made to verify the accuracy of the information contained in them.</p>
|
||||
<p>Additions or corrections to this list or the information contained in the notes is solicited. The most useful submissions include the name of the computer manufacturer (and model numbers where appropriate), operating system (specific version(s) where appropriate), problem description, problem solution and submitter's name and electric address. If the submitter is willing to continue debate on the problem, please so advise. See the <a href="hints/">directory listing</a>.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,37 +0,0 @@
|
||||
Starting with NetBSD-1.6, it is possible to delegate the system clock
|
||||
control to a non root user. This enable running ntpd in a chroot
|
||||
jail under a non privilegied UID/GID, using ntpd -i and -u flags.
|
||||
|
||||
The delegation is done through the clockctl(4) pseudodevice driver.
|
||||
This driver makes privilegied system calls such as ntp_adjtime(2)
|
||||
available through ioctl(2) on the /dev/clockctl device. If a user
|
||||
is able to write to /dev/clockctl, then (s)he can control the system
|
||||
clock.
|
||||
|
||||
In order to use this feature, make sure that:
|
||||
|
||||
1) Your kernel is compiled with the following option:
|
||||
pseudo-device clockctl
|
||||
This is true for GENERIC kernels on most ports. Please check
|
||||
http://wwW.netbsd.org/Documentation/kernel/
|
||||
if you need information about building a kernel.
|
||||
|
||||
2) You have a ntpd user on your system. Here is the /etc/master.passwd
|
||||
entry for ntpd user on NetBSD-1.6:
|
||||
ntpd:*:15:15::0:0:& pseudo-user:/var/chroot/ntpd:/sbin/nologin
|
||||
And here is the /etc/group entry for group 15:
|
||||
ntpd:*:15:
|
||||
|
||||
3) /dev/clockctl exists and is writtable by user ntpd. Default
|
||||
NetBSD-1.6 setting is:
|
||||
crw-rw---- 1 root ntpd 61, 0 Apr 1 2002 /dev/clockctl
|
||||
Major device number and date is likely to be different on your system.
|
||||
If you need to create the device, issue the following command:
|
||||
cd /dev && ./MAKEDEV clockctl
|
||||
|
||||
Here is an example of how to run ntpd chrooted in /var/chroot/ntpd,
|
||||
running with ntpd UID and ntpd GID:
|
||||
ntpd -i /var/chroot/ntpd -u ntpd:ntpd
|
||||
Note that -i and -u options are enabled at configure time if your
|
||||
system supports system clock control by an unprivilegied user. If this
|
||||
is not the case, then the -i and -u options will not be available.
|
@ -1,82 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>vxWorks Port of NTP</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body link="#00008B" vlink="#8B0000">
|
||||
<h1>VxWorks port of NTP</h1>
|
||||
<p>Creating a port for vxWorks posed some problems. This port may help as a starting point for similar ports to real-time OS's and other embeddable kernels, particularly where main() is not allowed, and where the configure scripts need to be altered.</p>
|
||||
<h1><b>Configuration issues</b></h1>
|
||||
<p>I decided to do as little invasive surgery as possible on the NTP code, so I brought the vxWorks header tree in line with the standard unix tree. The following changes were needed, as a side effect these changes will allow for easy porting of other autoconfigure enabled code.</p>
|
||||
<p>Where I have 386 you will need to put in your target type. The vxWorks tree entry point is /usr/wind. If these are the same for your system, you should be able to cut and paste the changes.</p>
|
||||
<p><blink>WARNING: Check you are not overwriting files, before entering the following: there should be no conflict, but check first... </blink></p>
|
||||
<p>export CC="cc386 -nostdlib -m486 -DCPU=I80486 -I/usr/wind/target/h"<br>
|
||||
export RANLIB=ranlib386<br>
|
||||
export AR=ar386<br>
|
||||
export VX_KERNEL=/usr/wind/target/config/ims_std_bsp/vxWorks<br>
|
||||
cd /usr/wind/target/sys<br>
|
||||
ln -s ../signal.h<br>
|
||||
ln -s ../time.h<br>
|
||||
ln -s socket.h sockio.h<br>
|
||||
ln -s ../selectLib.h select.h<br>
|
||||
ln -s ../timers.h<br>
|
||||
touch file.h param.h resource.h utsname.h var.h ../netdb.h ../a.out.h ../termios.h<br>
|
||||
echo " ******ADD #include \"sys/times.h\" to sys/time.h "</p>
|
||||
<p>The configure script must be changed in the following way to get the linking tests to work, once in the correct directory issue the following commands:<br>
|
||||
sed -e 's%main.*()%vxmain()%' configure > configure.vxnew<br>
|
||||
mv configure.vxnew configure<br>
|
||||
chmod 755 configure</p>
|
||||
<p>The new version 4 of NTP requires some maths functions so it links in the maths library (-lm) in the ntpd <a href="../../ntpd/Makefile.am">Makefile.am</a> change the line "ntpd_LDADD = $(LDADD) -lm" by removing the "-lm".<br>
|
||||
You are now ready to compile</p>
|
||||
<p><br>
|
||||
The <a href="../../configure.in">configure.in </a>file needed to be altered to allow for a host-target configuration to take place.</p>
|
||||
<ul>
|
||||
<li>The define SYS_VXWORKS was added to the compilation flags.
|
||||
<li>Little endianess is set if the target is of type iX86.
|
||||
<li>The size of char, integer, long values are all set. If Wind River ever changes these values they will need to be updated.
|
||||
<li>clock_settime() is defined to be used for setting the clock.
|
||||
<li>The Linking flags have -r added to allow for relinking into the vxWorks kernel
|
||||
</ul>
|
||||
<p>Unfortunately I have had to make use of the <a href="../../include/ntp_machine.h">ntp_machine.h </a>file to add in the checks that would have been checked at linking stage by autoconf, a better method should be devised.</p>
|
||||
<ul>
|
||||
<li>There is now a NO_MAIN_ALLOWED define that simulates command line args, this allows the use of the normal startup sysntax.
|
||||
<li>POSIX timers have been added.
|
||||
<li>Structures normally found in netdb.h have been added with, the corresponding code is in <a href="../../libntp/machines.c">machines.c </a>. Where possible the defines for these have been kept non-vxWorks specific.
|
||||
</ul>
|
||||
<p>Unfortunately there are still quite a few SYS_VXWORKS type defines in the source, but I have eliminated as many as possible. You have the choice of using the usrtime.a library avaliable from the vxworks archives or forgoing adjtime() and using the clock_[get|set]time().The <a href="../../include/ntp_machine.h">ntp_machine.h </a>file clearly marks how to do this.</p>
|
||||
<h1><b>Compilation issues</b></h1>
|
||||
<p>You will need autoconf and automake ... available free from the gnu archives worldwide.</p>
|
||||
<p>The variable arch is the target architecture (e.g. i486)</p>
|
||||
<p>mkdir A.vxworks (or whatever....)<br>
|
||||
cd A.vxworks<br>
|
||||
../configure --target=arch-wrs-vxworks [any other options]<br>
|
||||
make</p>
|
||||
<p>Options I normally use are the --disable-all-clocks --enable-LOCAL-CLOCK flags. The program should proceed to compile without problem. The daemon ntpd, ntpdate, ntptrace, ntpdc, ntpq programs and of course the libraries are all fully ported. The other utilities are not, but they should be easy to port.</p>
|
||||
<h1>Running the software</h1>
|
||||
<p>Load in the various files, call them in the normal vxWorks function type manner. Here are some examples. Refer to the man pages for further information.</p>
|
||||
<p>ld < ntpdate/ntpdate<br>
|
||||
ld < ntpd/ntpd<br>
|
||||
ld < ntptrace/ntptrace<br>
|
||||
ld < ntpq/ntpq<br>
|
||||
ld < ntpdc/ntpdc<br>
|
||||
ntpdate ("-b", "192.168.0.245")<br>
|
||||
sp(ntpd, "-c", "/export/home/casey/ntp/ntp.conf")<br>
|
||||
ntpdc("-c", "monlist", "192.168.0.244")<br>
|
||||
ntpq("-c", "peers", "192.168.0.244")<br>
|
||||
ntptrace("192.168.0.244")<br>
|
||||
</p>
|
||||
<h1>Bugs and such</h1>
|
||||
<p>Should you happen across any bugs, please let me know, or better yet fix them and submit a patch. Remember to make you patch general for Vxworks, not just for your particular architecture. <a href="http://www.ccii.co.za">CCII Systems (Pty) Ltd</a>, my ex employers, sponsored the time to this port. Please let me know how it goes, I would be most interested in offsets and configurations.</p>
|
||||
<p><br>
|
||||
</p>
|
||||
<p>Casey Crellin<br>
|
||||
<a href="mailto:casey@csc.co.za">casey@csc.co.za</a></p>
|
||||
<p><br>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,281 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<title>NTP on Windows NT</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>NTP 4.x for Windows NT</h1>
|
||||
|
||||
<h2>Introduction</h2>
|
||||
The NTP 4 distribution runs as service on Windows NT 4.0, Windows 2000, Windows XP,
|
||||
Windows .NET Server 2003. It will NOT run on Windows 95, 98, ME, etc.
|
||||
The binaries work on multi-processor systems. This port has not been tested
|
||||
on the Alpha platform. This release now uses OpenSSL for authentication.
|
||||
IPv6 is not implemented yet for Win32 platforms.
|
||||
<h2>Authentication Keys</h2>
|
||||
With this release ntp-keygen is supported. See the <a href="../../keygen.html">
|
||||
ntp keygen documentation</a> for details on how to use ntp-keygen.
|
||||
<p>
|
||||
ntpd can now use the generated keys in the same way as on Unix platforms. Please
|
||||
refer to the <a href="../../authopt.html">Authentication Options</a> for details
|
||||
on how to use these.
|
||||
<p><B>NOTE:</B> ntpd and ntp-keygen both use OpenSSL which requires a random
|
||||
character file called .rnd by default. Both of these programs will automatically
|
||||
generate this file if they are not found. The programs will look for an
|
||||
environmental variable called RANDFILE and use that for the name of the
|
||||
random character file if the variable exists. If it does not exist it will look for an environmental
|
||||
variable called HOME and use that directory to search for a filed called .rnd
|
||||
in that directory. Finally, if neither RANDFILE nor HOME exists it will look
|
||||
in C:\ for a .rnd file. In each case it will search for and create the file
|
||||
if the environmental variable exists or in the C:\ directory if it doesn't.
|
||||
Note that ntpd normally runs as a service so that the only way that it will
|
||||
have either RANDFILE or HOME defined is if it is a System environmental
|
||||
variable or if the service is run under a specific account name and that
|
||||
account has one of those variables defined. Otherwise it will use the file
|
||||
"c:\.rnd". This was done so that OpenSSL will work normally on Win32 systems.
|
||||
This obviates the need to ship the OpenSSL.exe file and explain how to
|
||||
generate the .rnd file. A future version may change this behavior.
|
||||
|
||||
<p>Refer to <a href="#Compiling">Compiling Requirements</a> and Instructions for how to compile the program.</p>
|
||||
<h2>Reference Clocks</h2>
|
||||
Reference clock support under Windows NT is tricky because the IO functions are
|
||||
so much different. Some of the clock types have been built into the ntpd executable
|
||||
and should work but have not been tested by the ntp project. If you have a clock
|
||||
that runs on Win32 and the driver is there but not implemented on Win32 you will have
|
||||
make the required configuration changes in config.h and then build ntpd from source
|
||||
and test it. The following reference clocks are known to work and are supported
|
||||
by Windows NT:
|
||||
<p><a href="../../driver1.html">Type 1</a> Undisciplined Local Clock (LOCAL)<br>
|
||||
<a href="../../driver29.html">Type 29</a> Trimble Navigation Palisade GPS (GPS_PALISADE)</p>
|
||||
<h2>Functions Supported</h2>
|
||||
All NTP functions are supported with some constraints. See the <a href="#ToDo">TODO list</a> below.
|
||||
Note that the ntptrace executable is not supported and you should use the PERL script
|
||||
version instead.
|
||||
<h2>Accuracy</h2>
|
||||
Greg Brackley has implemented a fantastic interpolation scheme that improves the precision of the NTP clock
|
||||
using a realtime thread (is that poetic or what!) which captures a tick count from the 8253 counter after each
|
||||
OS tick. The count is used to interpolate the time between operating system ticks.
|
||||
<p>On a typical 200+ MHz system NTP achieves a precision of about 5 microseconds and synchronizes the clock
|
||||
to +/-500 microseconds using the <a href="http://www.trimble.com/products/ntp">Trimble Palisade</a> as UTC reference.
|
||||
This allows distributed applications to use the 10 milliseconds ticks available to them with high confidence.</p>
|
||||
<h2>Binaries</h2>
|
||||
Recent InstallShield based executable versions of NTP for Windows NT (intel) are available from:
|
||||
<ul>
|
||||
<li><a href="http://www.trimble.com/oem/ntp">http://www.trimble.com/oem/ntp</a>
|
||||
<li><a href="http://www.five-ten-sg.com/">http://www.five-ten-sg.com/</a>
|
||||
<li><a href="http://www.meinberg.de/english/sw/ntp.htm">http://www.meinberg.de/english/sw/ntp.htm</a>
|
||||
</ul>
|
||||
<a name="ToDo"><h2>ToDo</h2></a>
|
||||
These tasks are in no particular order of priority.
|
||||
<ul>
|
||||
<li>Create a proper install/uninstall program
|
||||
<li>Add sntp to the list of supported programs
|
||||
<li>Add support for Visual C++ 7.0 or later (.NET)
|
||||
<li>Add IPv6 support
|
||||
<li>See if precision can be improved by using CPU cycle counter for tick interpolation.
|
||||
<li>Make precision time available to applications using NTP_GETTIME API
|
||||
</ul>
|
||||
<h2>Compiling Requirements</h2>
|
||||
<ul>
|
||||
<li>Windows NT 4.0 Windows 2000, Windows XP, or Windows.NET Server 2003
|
||||
<li>Microsoft Visual C++ 6.0. <B>NOTE:</B> VC++ 7.0 (aka .NET) is not yet supported
|
||||
but will probably work fine.
|
||||
<li>Some way of uncompressing and untarring the gzipped tar file.
|
||||
<li>OpenSSL must be built on the box before building NTP. Additional steps would
|
||||
be required to not use OpenSSL.
|
||||
</ul>
|
||||
<a name="Compiling"><h2>Compiling Instructions</h2></a>
|
||||
<ol>
|
||||
<li>Unpack and build OpenSSL according to the OpenSSL instructions for building on
|
||||
Windows. An environment variable named OPENSSL must be set up to specify the base path
|
||||
of the OpenSSL directory to be used to build the NTP package
|
||||
(e.g. <code>OPENSSL=C:\openssl-0.9.8b</code>).
|
||||
<li>Unpack the ntp-*.tar.gz archive using utilities such as WinZip.
|
||||
<li>Open the .\ports\winnt\ntp.dsw Visual C workspace
|
||||
<li>Batch build all projects
|
||||
<li>The built binaries can be found in the port\winnt\bin\Release subdirectory
|
||||
<li>In addition you will need to install the OpenSSL libeay32.dll
|
||||
<li>If you are shipping binaries in a kit it is strongly recommended that you
|
||||
ship this file (winnt.html) along with the binaries.
|
||||
</ol>
|
||||
<h2>Configuration File</h2>
|
||||
The default NTP configuration file path is %SystemRoot%<tt>\system32\drivers\etc\. </tt>(%SystemRoot%
|
||||
is an environmental variable that can be determined by typing "set" at the "Command Prompt"
|
||||
or from the "System" icon in the "Control Panel").<br>
|
||||
Refer to your system environment and <tt>c</tt>reate your<tt> ntp.conf</tt> file in the directory
|
||||
corresponding to your system installation.<br>
|
||||
<tt>The older <WINDIR>\ntp.conf </tt>is still supported but you will get a log entry reporting that
|
||||
the first file wasn't found.
|
||||
<h2>Installation Instructions</h2>
|
||||
The <tt>instsrv</tt> program in the instsrv subdirectory of the distribution can be used to install 'ntpd' as
|
||||
a service and start automatically at boot time. Instsrv is automatically compiled with the rest of the distribution
|
||||
if you followed the steps above.
|
||||
<ol>
|
||||
<li>Start a command prompt and enter "instsrv.exe <pathname_for_ntpd.exe>"
|
||||
<li>Clicking on the "Services" icon in the "Control Panel" will display the list of
|
||||
currently installed services in a dialog box. The NetworkTimeProtocol service should show up in this list.
|
||||
Select it in the list and hit the "Start" button in the dialog box. The NTP service should start.
|
||||
<li>You can also stop and start the service by typing net start|stop NetworkTimeProtocol at the DOS prompt.
|
||||
<li>View the event log by clicking on the "Event Viewer" icon in the "Administrative Tools"
|
||||
group, there should be several successful startup messages from NTP. NTP will keep running and restart
|
||||
automatically when the machine is rebooted.
|
||||
</ol>
|
||||
You can change the start mode (automatic/manual) and other startup parameters corresponding to the NTP service
|
||||
in the "Services" dialog box if you wish.
|
||||
<h2>Removing NTP</h2>
|
||||
You can also use <tt>instsrv</tt> to delete the NTP service by entering: "instsrv.exe remove"
|
||||
<h2>Command Line Parameters and Registry Entries</h2>
|
||||
Unlike the Unix environment, there is no clean way to run 'ntpdate' and reset the clock before starting 'ntpd' at boot time.<br>
|
||||
NTP will step the clock up to 1000 seconds by default. While there is no reason that the system clock should be that much off
|
||||
during bootup if 'ntpd' was running before, you may wish to override this default and/or pass other command line directives.
|
||||
<p>Use the registry editor to edit the value for the ntpd executable under LocalMachine\System\CurrentControlSet\Services\NTP.</p>
|
||||
<p>Add the -g option to the ImagePath key, behind "%INSTALLDIR>\ntpd.exe". This will force NTP to accept
|
||||
large time errors (including 1.1.1980 00:00)</p>
|
||||
<h2>Bug Reports</h2>
|
||||
Send questions to <a href="news://comp.protocols.time.ntp">news://comp.protocols.time.ntp</a>
|
||||
and bug reports should be entered in <a href="http://bugzilla.ntp.org/">Bugzilla</a> on the
|
||||
NTP Web site.
|
||||
<h2>Change Log</h2>
|
||||
<h3>Last revision 2 July 2003 Version 4.2.0</h3>
|
||||
<b>by Danny Mayer (mayer@ntp.org>)</b>
|
||||
<h3>Significant Changes:</h3>
|
||||
This latest release of NTP constitutes a major upgrade to its ability to build and
|
||||
run on Windows platforms and should now build and run cleanly. More importantly it
|
||||
is now able to support all authentication in the same way as Unix boxes. This does
|
||||
require the usage of OpenSSL which is now a prerequisite for build on Windows.
|
||||
ntp-keygen is now supported and builds on Win32 platforms.
|
||||
|
||||
<h3>Last revision 16 February 1999 Version 4.0.99e.</h3>
|
||||
<b>by Sven Dietrich (sven_dietrich@trimble.com)</b>
|
||||
<p><b>Significant Changes:</b></p>
|
||||
<ul>
|
||||
<li>Perl 5 is no longer needed to compile NTP. The configuration script which creates version.c
|
||||
with the current date and time was modified by Frederick Czajka [w2k@austin.rr.com] so that Perl
|
||||
is no longer required.
|
||||
</ul>
|
||||
<h3>Last revision 15 November 1999 Version 4.0.98f.</h3>
|
||||
<b>by Sven Dietrich (sven_dietrich@trimble.com)</b>
|
||||
<p><b>Significant Changes:</b></p>
|
||||
<ul>
|
||||
<li>Fixed I/O problem delaying packet responses which resulted in no-replys to NTPQ and others.
|
||||
<li>The default configuration file path is <tt><WINDIR>\system32\drivers\etc\ntp.conf.
|
||||
The old <WINDIR>\ntp.conf </tt>is still supported but you will get a log entry reporting
|
||||
that the first file wasn't found. The NTP 3.x legacy <tt>ntp.ini</tt> file is no longer supported.
|
||||
</ul>
|
||||
<b>Known Problems / TODO:</b>
|
||||
<ul>
|
||||
<li>MD5 and name resolution do not yet get along. If you define MD5, you cannot use DNS names, only IP numbers.
|
||||
</ul>
|
||||
<h3>Last revision 27 July 1999 Version 4.0.95.</h3>
|
||||
This version compiles under WINNT with Visual C 6.0.
|
||||
<p>Greg Brackley and Sven Dietrich</p>
|
||||
<p>Significant changes:<br>
|
||||
-Visual Studio v6.0 support<br>
|
||||
-Winsock 2.0 support<br>
|
||||
-Use of I/O completion ports for sockets and comm port I/O<br>
|
||||
-Removed the use of multimedia timers (from ntpd, others need removing)<br>
|
||||
-Use of waitable timers (with user mode APC) and performance counters to fake getting a better time<br>
|
||||
-Trimble Palisade NTP Reference Clock support<br>
|
||||
-General cleanup, prototyping of functions<br>
|
||||
-Moved receiver buffer code to a separate module (removed unused members from the recvbuff struct)<br>
|
||||
-Moved io signal code to a separate module</p>
|
||||
<h3>Last revision: 20-Oct-1996</h3>
|
||||
This version corrects problems with building the XNTP<br>
|
||||
version 3.5-86 distribution under Windows NT.
|
||||
<p>The following files were modified:<br>
|
||||
blddbg.bat<br>
|
||||
bldrel.bat<br>
|
||||
include\ntp_machine.h<br>
|
||||
xntpd\ntp_unixclock.c<br>
|
||||
xntpd\ntp_refclock.c<br>
|
||||
scripts\wininstall\build.bat<br>
|
||||
scripts\wininstall\setup.rul<br>
|
||||
scripts\wininstall\readme.nt<br>
|
||||
scripts\wininstall\distrib\ntpog.wri<br>
|
||||
html\hints\winnt (this file)</p>
|
||||
<p>In order to build the entire Windows NT distribution you<br>
|
||||
need to modify the file scripts\wininstall\build.bat<br>
|
||||
with the installation directory of the InstallShield<br>
|
||||
software. Then, simply type "bldrel" for non-debug<br>
|
||||
or "blddbg" for debug executables.</p>
|
||||
<p>Greg Schueman<br>
|
||||
<schueman@acm.org></p>
|
||||
<h3>Last revision: 07-May-1996</h3>
|
||||
This set of changes fixes all known bugs, and it includes<br>
|
||||
several major enhancements.
|
||||
<p>Many changes have been made both to the build environment as<br>
|
||||
well as the code. There is no longer an ntp.mak file, instead<br>
|
||||
there is a buildntall.bat file that will build the entire<br>
|
||||
release in one shot. The batch file requires Perl. Perl<br>
|
||||
is easily available from the NT Resource Kit or on the Net.</p>
|
||||
<p>The multiple interface support was adapted from Larry Kahn's<br>
|
||||
work on the BIND NT port. I have not been able to test it<br>
|
||||
adequately as I only have NT servers with one network<br>
|
||||
interfaces on which to test.</p>
|
||||
<p>Enhancements:<br>
|
||||
* Event Logging now works correctly.<br>
|
||||
* Version numbers now work (requires Perl during build)<br>
|
||||
* Support for multiple network interface cards (untested)<br>
|
||||
* NTP.CONF now default, but supports ntp.ini if not found<br>
|
||||
* Installation procedure automated.<br>
|
||||
* All paths now allow environment variables such as %windir%</p>
|
||||
<p>Bug fixes:<br>
|
||||
* INSTSRV replaced, works correctly<br>
|
||||
* Cleaned up many warnings<br>
|
||||
* Corrected use of an uninitialized variable in XNTPD<br>
|
||||
* Fixed ntpdate -b option<br>
|
||||
* Fixed ntpdate to accept names as well as IP addresses<br>
|
||||
(Winsock WSAStartup was called after a gethostbyname())<br>
|
||||
* Fixed problem with "longjmp" in xntpdc/ntpdc.c that<br>
|
||||
caused a software exception on doing a Control-C in xntpdc.<br>
|
||||
A Cntrl-C now terminates the program.</p>
|
||||
<p>See below for more detail:</p>
|
||||
<p> Note: SIGINT is not supported for any Win32 application including<br>
|
||||
Windows NT and Windows 95. When a CTRL+C interrupt occurs, Win32<br>
|
||||
operating systems generate a new thread to specifically handle that<br>
|
||||
interrupt. This can cause a single-thread application such as UNIX,<br>
|
||||
to become multithreaded, resulting in unexpected behavior.<br>
|
||||
</p>
|
||||
<p>Possible enhancements and things left to do:<br>
|
||||
* Reference clock drivers for NT (at least Local Clock support)<br>
|
||||
* Control Panel Applet<br>
|
||||
* InstallShield based installation, like NT BIND has<br>
|
||||
* Integration with NT Performance Monitor<br>
|
||||
* SNMP integration<br>
|
||||
* Fully test multiple interface support<br>
|
||||
</p>
|
||||
<p>Known problems:<br>
|
||||
* bug in ntptrace - if no Stratum 1 servers are available,<br>
|
||||
such as on an
|
||||
IntraNet, the application crashes.</p>
|
||||
<h3>Last revision: 12-Apr-1995</h3>
|
||||
This NTPv3 distribution includes a sample configuration file and the project<br>
|
||||
makefiles for WindowsNT 3.5 platform using Microsoft Visual C++ 2.0 compiler.<br>
|
||||
Also included is a small routine to install the NTP daemon as a "service"<br>
|
||||
on a WindowsNT box. Besides xntpd, the utilities that have been ported are<br>
|
||||
ntpdate and xntpdc. The port to WindowsNT 3.5 has been tested using a Bancomm<br>
|
||||
TimeServe2000 GPS receiver clock that acts as a strata 1 NTP server with no<br>
|
||||
authentication (it has not been tested with any refclock drivers compiled in).<br>
|
||||
Following are the known flaws in this port:<br>
|
||||
1) currently, I do not know of a way in NT to get information about multiple<br>
|
||||
network interface cards. The current port uses just one socket bound to<br>
|
||||
INADDR_ANY address. Therefore when dealing with a multihomed NT time server,<br>
|
||||
clients should point to the default address on the server (otherwise the<br>
|
||||
reply is not guaranteed to come from the same interface to which the<br>
|
||||
request was sent). Working with Microsoft to get this resolved.<br>
|
||||
2) There is some problem with "longjmp" in xntpdc/ntpdc.c that causes a<br>
|
||||
software exception on doing a Control-C in xntpdc. Be patient!<br>
|
||||
3) The error messages logged by xntpd currently contain only the numerical<br>
|
||||
error code. Corresponding error message string has to be looked up in<br>
|
||||
"Books Online" on Visual C++ 2.0 under the topic "Numerical List of Error<br>
|
||||
Codes".
|
||||
<p>Last HTML Update: November 17, 1999<br>
|
||||
<a href="mailto://sven_dietrich@trimble.com">Sven_Dietrich@Trimble.COM</a></p>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Patching Procedures</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Patching Procedures</h3>
|
||||
<img src="../pic/alice38.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html"> rom <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>The Mad Hatter needs patches.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">12:56 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="266">Saturday, March 20, 2004</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>A distribution so widely used as this one eventually develops numerous barnacles as the result of <a href="porting.html">porting</a> to new systems, idiosyncratic new features and just plain bugs. In order to help keep order and make maintenance bearable, we ask that proposed changes to the distribution be submitted in the following form.</p>
|
||||
<ol>
|
||||
<li>Please submit patches to <a href="mailto:bugs@mail.ntp.org">bugs@mail.ntp.org</a> in the form of either unified-diffs (<tt>diff -u</tt>) or context-diffs (<tt>diff -c</tt>).
|
||||
<li>Please include the <strong>output</strong> from <tt>config.guess</tt> in the description of your patch. If <tt>config.guess</tt> does not produce any output for your machine, please fix that, too!
|
||||
<li>Please base the patch on the root directory of the distribution. The preferred procedure here is to copy your patch to the root directory and mumble
|
||||
<p><tt>patch -p <your_patch></tt></p>
|
||||
<li>Please avoid patching the RCS subdirectories; better yet, clean them out before submitting patches.
|
||||
<li>If you have whole new files, as well as patches, wrap the files and patches in a shell script. If you need to compress it, use either GNU <tt>gzip</tt> or the stock Unix <tt>compress</tt> utility.
|
||||
<li>Don't forget the documentation that may be affected by the patch. Send us patches for the <tt>./htm</tt> files as well.
|
||||
<li>We would be glad to include your name, electric address and descriptive phrase in the <a href="../copyright.html">Copyright</a> page, if you wish.
|
||||
</ol>
|
||||
<p>Prior to ntp3-5.83 (releases up to and including ntp3.5f) a complete patch history back to the dark ages was kept in the <tt>./patches</tt> directory, which might have been helpful to see if the same problem occurred in another port, etc. Patches were saved in that directory with file name in the form <tt>patch.<i>nnn</i></tt>, where <i>nnn</i> was approaching 200. All patches in that directory have been made; so, if yours was there, it was in the distribution.</p>
|
||||
<p>Since we have been getting multple patches for some bugs, plus many changes are implemented locally, no two maintainers here use the same tools, and since we're not using any bug-tracking software or even source code control, there is currently no tracking of specific changes.</p>
|
||||
<p>The best way to see what's changed between two distributions is to run a <tt>diff</tt> against them.</p>
|
||||
<p>Thanks for your contribution and happy chime.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,40 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Porting Hints</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Porting Hints</h3>
|
||||
<img src="../pic/wingdorothy.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>The Wizard of Oz</i>, L. Frank Baum</a>
|
||||
<p>Porting Dorothy in Oz
|
||||
</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">12:56 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="266">Saturday, March 20, 2004</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>NOTE: The following procedures have been replaced by GNU <tt>automake</tt> and <tt>autoconfigure</tt>. This page is to be updated in the next release.</p>
|
||||
<p>Porting to a new machine or operating system ordinarily requires updating the <tt>./machines</tt> directory and the <tt>./compilers</tt> directories in order to define the build environment and autoconfigure means. You will probably have to modify the <tt>ntp_machines.h</tt> file and <tt>"l_stdlib.h"</tt> files as well. The two most famous trouble spots are the I/O code in <tt>./ntpd/ntp_io.c</tt> and the clock adjustment code in <tt>./ntpd/ntp_unixclock.c</tt>.</p>
|
||||
<p>These are the rules so that older bsd systems and the POSIX standard system can coexist together.</p>
|
||||
<ol>
|
||||
<li>If you use <tt>select</tt> then include <tt>"ntp_select.h"</tt>. <tt>select</tt> is not standard, since it is very system dependent as to where it is defined. The logic to include the right system dependent include file is in <tt>"ntp_select.h"</tt>.
|
||||
<li>Always use POSIX definition of strings. Include <tt>"ntp_string.h"</tt> instead of <tt><string.h></tt>.
|
||||
<li>Always include <tt>"ntp_malloc.h"</tt> if you use <tt>malloc</tt>.
|
||||
<li>Always include <tt>"ntp_io.h"</tt> instead of <tt><sys/file.h></tt> or <tt><fnctl.h></tt> to get <tt>O_*</tt> flags.
|
||||
<li>Always include <tt>"ntp_if.h"</tt> instead of <tt><net/if.h></tt>.
|
||||
<li>Always include <tt>"ntp_stdlib.h"</tt> instead of <tt><stdlib.h></tt>.
|
||||
<li>Define any special defines needed for a system in <tt>./include/ntp_machine.h</tt> based on system identifier. This file is included by the <tt>"ntp_types.h"</tt> file and should always be placed first after the <tt><></tt> defines.
|
||||
<li>Define any special library prototypes left over from the system library and include files in the <tt>"l_stdlib.h"</tt> file. This file is included by the <tt>"ntp_stdlib.h"</tt> file and should ordinarily be placed last in the includes list.
|
||||
<li>Don't define a include file by the same name as a system include file.
|
||||
</ol>
|
||||
<p><tt>"l_stdlib.h"</tt> can contain any extra definitions that are needed so that <tt>gcc</tt> will shut up. They should be controlled by a system identifier and there should be a separate section for each system. Really this will make it easier to maintain.</p>
|
||||
<p>See <tt>include/ntp_machines.h</tt> for the various compile time options.</p>
|
||||
<p>When you are satisfied the port works and that other ports are not adversely affected, please send <a href="patches.html">patches</a> for the system files you have changed, as well as any documentation that should be updated, including the advice herein.</p>
|
||||
<p>Good luck.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,30 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Quick Start</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Quick Start</h3>
|
||||
<img src="../pic/panda.gif" alt="gif" align="left">FAX test image for SATNET (1979).
|
||||
<p>The baby panda was scanned at University College London and used as a FAX test image for a demonstration of the DARPA Atlantic SATNET Program and the first transatlantic Internet connection in 1978. The computing system used for that demonstration was called the <a href="http://www.eecis.udel.edu/%7emills/database/papers/fuzz.pdf">Fuzzball</a> . As it happened, this was also the first Internet multimedia presentation and the first to use NTP in regular operation. The image was widely copied and used for testing purpose throughout much of the 1980s.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="99">01:01 AM</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="266">Saturday, March 20, 2004</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>For the rank amateur the sheer volume of the documentation collection must be intimidating. However, it doesn't take much to fly the <tt>ntpd</tt> daemon with a simple configuration where a workstation needs to synchronize to some server elsewhere in the Internet. The first thing that needs to be done is to build the distribution for the particular workstation and install in the usual place. The <a href="build.html">Building and Installing the Distribution</a> page describes how to do this.</p>
|
||||
<p>While it is possible that certain configurations do not need a configuration file, most do require one. The file, called by default <tt>/etc/ntp.conf</tt>, need only contain one line specifying a remote server, for instance</p>
|
||||
<p><tt>server foo.bar.com</tt></p>
|
||||
<p>Choosing an appropriate remote server is somewhat of a black art, but a suboptimal choice is seldom a problem. There are about two dozen public time servers operated by National Institutes of Science and Technology (NIST), US Naval Observatory (USNO), Canadian Metrology Centre (CMC) and many others available on the Internet. Lists of public primary and secondary NTP servers maintained on the <a href="http://www.eecis.udel.edu/%7emills/ntp/servers.html">Public NTP TIme Servers</a> page, which is updated frequently.The lists are sorted by country and, in the case of the US, by state. Usually, the best choice is the nearest in geographical terms, but the terms of engagement specified in each list entry should be carefully respected.</p>
|
||||
<p>During operation <tt>ntpd</tt> measures and corrects for incidental clock frequency error and writes the current value to a file called by default <tt>/etc/ntp.drift</tt>. If <tt>ntpd</tt> is stopped and restarted, it initializes the frequency from this file. In this way the potentially lengthy interval to relearn the frequency error is avoided.</p>
|
||||
<p>That's all there is to it, unless some problem in network connectivity or local operating system configuration occurs. The most common problem is some firewall between the workstation and server. System administrators should understand NTP uses UDP port 123 as both the source and destination port and that NTP does not involve any operating system interaction other than to set the system clock. While almost all modern Unix systems have included NTP and UDP port 123 defined in the services file, this should be checked if <tt>ntpd</tt> fails to come up at all.</p>
|
||||
<p>The best way to confirm NTP is working is using the <a href="../ntpq.html"><tt>ntpq</tt></a> utility, although the <a href="../ntpdc.html"><tt>ntpdc</tt></a> utility may be useful in extreme cases. See the documentation pages for further information. In the most extreme cases the <tt>-d</tt> option on the <tt>ntpd</tt> command line results in a blow-by-blow trace of the daemon operations. While the trace output can be cryptic, to say the least, it gives a general idea of what the program is doing and, in particular, details the arriving and departing packets and detected errors, if present.</p>
|
||||
<p>Sometimes the <tt>ntpd</tt>. behavior may seem to violate the Principle of Least Astonishment, but there are good reasons for this. See the <a href="../ntpd.html">Network Time Protocol (NTP) daemon</a> page for revealing insights. See this page and its dependencies for additional configuration and control options. The <a href="../notes.html">Notes on Configuring NTP and Setting up a NTP Subnet</a> page contains an extended discussion of these options.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,7 +0,0 @@
|
||||
document.write("\
|
||||
<table><tr>\
|
||||
<td width='50%' ><img src='../icons/home.gif' align='middle' alt='gif'>\
|
||||
<a href='../index.html'>Home Page</a></td>\
|
||||
<td width='50%' ><img src='../icons/mail2.gif' align='middle' alt='gif'>\
|
||||
<a href='http://www.ntp.org/contact.html'>Contacts</a></i></td>\
|
||||
</tr></table>")
|
@ -1,5 +0,0 @@
|
||||
document.write("<ul>\
|
||||
<li class='inline'><a href='refclock.html'>Reference Clock Drivers</a><br>\
|
||||
<li class='inline'><a href='prefer.html'>Mitigation Rules and the <tt>prefer</tt> Keyword</a><br>\
|
||||
<li class='inline'><a href='howto.html'>How to Write a Reference Clock Driver</a><br>\
|
||||
</ul>")
|
@ -1,5 +0,0 @@
|
||||
document.write("<ul>\
|
||||
<li class='inline'><a href='refclock.html'>Reference Clock Drivers</a><br>\
|
||||
<li class='inline'><a href='pps.html'>Pulse-per-second (PPS) Signal Interfacing</a><br>\
|
||||
<li class='inline'><a href='ldisc.html'>Line Disciplines and Streams Modules</a><br>\
|
||||
</ul>")
|
@ -1,5 +0,0 @@
|
||||
document.write("<ul>\
|
||||
<li class='inline'><a href='debug.html'>NTP Debugging Techniques</a><br>\
|
||||
<li class='inline'><a href='rdebug.html'>Debugging Reference Clock Drivers</a><br>\
|
||||
<li class='inline'><a href='msyslog.html'><tt>ntpd</tt> System Log Messages</a><br>\
|
||||
</ul>")
|
@ -1,5 +0,0 @@
|
||||
document.write("<ul>\
|
||||
<li class='inline'><a href='../confopt.html'>Server Options</a><br>\
|
||||
<li class='inline'><a href='../authopt.html'>Authentication Options</a><br>\
|
||||
<li class='inline'><a href='../monopt.html'>Monitoring Options</a><br>\
|
||||
</ul>")
|
@ -1,7 +0,0 @@
|
||||
document.write("<ul>\
|
||||
<li class='inline'><a href='authopt.html'>Authentication Options</a><br>\
|
||||
<li class='inline'><a href='manyopt.html'>Automatic NTP Configuration Options</a><br>\
|
||||
<li class='inline'><a href='confopt.html'>Server Options</a><br>\
|
||||
<li class='inline'><a href='keygen.html'><tt>ntp-keygen</tt> - generate public and private keys</a>\
|
||||
<li class='inline'><a href='http://www.eecis.udel.edu/~mills/autokey.html'>Autonomous Authentication</a>\
|
||||
</ul>")
|
@ -1,64 +0,0 @@
|
||||
body {background: #FDF1E1;
|
||||
color: #006600;
|
||||
font-family: "verdana", sans-serif;
|
||||
text-align: justify;
|
||||
margin-left: 5px;}
|
||||
|
||||
p, h4, hr, li {margin-top: .6em; margin-bottom: .6em}
|
||||
li.inline {text-align: left; margin-top: 0; margin-bottom: 0}
|
||||
|
||||
ul, dl, ol, {margin-top: .6em; margin-bottom: .6em; margin-left 5em}
|
||||
|
||||
dt {margin-top: .6em}
|
||||
dd {margin-bottom: .6em}
|
||||
|
||||
div.header {text-align: center;
|
||||
font-style: italic;}
|
||||
|
||||
div.footer {text-align: center;
|
||||
font-size: 60%;}
|
||||
|
||||
img.cell {align: left;}
|
||||
|
||||
td.sidebar {width: 40px; align: center; valign: top;}
|
||||
img.sidebar {align: center; margin-top: 5px;}
|
||||
h4.sidebar {align: center;}
|
||||
|
||||
p.top {background: #FDF1E1;
|
||||
color: #006600;
|
||||
position: absolute;
|
||||
margin-left: -90px;
|
||||
text-align: center;}
|
||||
|
||||
a:link.sidebar {background: transparent;
|
||||
color: #990033;
|
||||
font-weight: bold;}
|
||||
|
||||
a:visited.sidebar {background: transparent;
|
||||
color: #990033;
|
||||
font-weight: bold;}
|
||||
|
||||
a:hover.sidebar {background: #FDF1E1;
|
||||
color: #006600;}
|
||||
|
||||
img {margin: 5px;}
|
||||
|
||||
div {text-align: center;}
|
||||
|
||||
h1 {text-align: center;
|
||||
font-size: 250%;}
|
||||
|
||||
caption {background: #EEEEEE;
|
||||
color: #339999;}
|
||||
|
||||
tx {text-align: center;}
|
||||
|
||||
th {background: #FFFFCC;
|
||||
color: #006600;
|
||||
text-align: center;
|
||||
text-decoration: underline;
|
||||
padding-top: 5px;}
|
||||
|
||||
th.caption {background: #EEEEEE;
|
||||
color: #006600;
|
||||
text-align: center;}
|
@ -11,12 +11,15 @@
|
||||
|
||||
<body>
|
||||
<h3>Reference Clock Options</h3>
|
||||
<img src="pic/stack1a.jpg" alt="gif" align="left">
|
||||
<p>See the radios, all in a row.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:37</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<br clear="left">
|
||||
<img src="pic/stack1a.jpg" alt="gif" align="left">Master Time Facility at the <a href="http://www.eecis.udel.edu/%7emills/lab.html">UDel Internet Research Laboratory</a>
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->04-Oct-2009 19:42<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links7.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/refclock.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/audio.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/clockopt.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#ref">Reference Clock Support</a>
|
||||
@ -24,7 +27,7 @@
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="ref">Reference Clock Support</h4>
|
||||
<p>The NTP Version 4 daemon supports some three dozen different radio, satellite and modem reference clocks plus a special pseudo-clock used for backup or when no other clock source is available. Detailed descriptions of individual device drivers and options can be found in the <a href="refclock.html">Reference Clock Drivers</a> page. Additional information can be found in the pages linked there, including the <a href="rdebug.html">Debugging Hints for Reference Clock Drivers</a> and <a href="howto.html">How To Write a Reference Clock Driver</a> pages. In addition, support for a PPS signal is available as described in <a href="pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page. Many drivers support special line discipline/streams modules which can significantly improve the accuracy using the driver. These are described in the <a href="ldisc.html">Line Disciplines and Streams Drivers</a> page.</p>
|
||||
<p>The NTP Version 4 daemon supports some three dozen different radio, satellite and modem reference clocks plus a special pseudo-clock used for backup or when no other clock source is available. Detailed descriptions of individual device drivers and options can be found in the <a href="refclock.html">Reference Clock Drivers</a> page. Additional information can be found in the pages linked there, including the <a href="rdebug.html">Debugging Hints for Reference Clock Drivers</a> and <a href="howto.html">How To Write a Reference Clock Driver</a> pages. In addition, support for a PPS signal is available as described in <a href="pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page.</p>
|
||||
<p>A reference clock will generally (though not always) be a radio timecode receiver which is synchronized to a source of standard time such as the services offered by the NRC in Canada and NIST and USNO in the US. The interface between the computer and the timecode receiver is device dependent, but is usually a serial port. A device driver specific to each reference clock must be selected and compiled in the distribution; however, most common radio, satellite and modem clocks are included by default. Note that an attempt to configure a reference clock when the driver has not been compiled or the hardware port has not been appropriately configured results in a scalding remark to the system log file, but is otherwise non hazardous.</p>
|
||||
<p>For the purposes of configuration, <tt>ntpd</tt> treats reference clocks in a manner analogous to normal NTP peers as much as possible. Reference clocks are identified by a syntactically correct but invalid IP address, in order to distinguish them from normal NTP peers. Reference clock addresses are of the form <tt>127.127.<i>t.u</i></tt>, where <i><tt>t</tt></i> is an integer denoting the clock type and <i><tt>u</tt></i> indicates the unit number in the range 0-3. While it may seem overkill, it is in fact sometimes useful to configure multiple reference clocks of the same type, in which case the unit numbers must be unique.</p>
|
||||
<p>The <tt>server</tt> command is used to configure a reference clock, where the <i><tt>address</tt></i> argument in that command is the clock address. The <tt>key</tt>, <tt>version</tt> and <tt>ttl</tt> options are not used for reference clock support. The <tt>mode</tt> option is added for reference clock support, as described below. The <tt>prefer</tt> option can be useful to persuade the server to cherish a reference clock with somewhat more enthusiasm than other reference clocks or peers. Further information on this option can be found in the <a href="prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page. The <tt>minpoll</tt> and <tt>maxpoll</tt> options have meaning only for selected clock drivers. See the individual clock driver document pages for additional information.</p>
|
||||
@ -32,7 +35,7 @@
|
||||
<p>The stratum number of a reference clock is by default zero. Since the <tt>ntpd</tt> daemon adds one to the stratum of each peer, a primary server ordinarily displays an external stratum of one. In order to provide engineered backups, it is often useful to specify the reference clock stratum as greater than zero. The <tt>stratum</tt> option is used for this purpose. Also, in cases involving both a reference clock and a pulse-per-second (PPS) discipline signal, it is useful to specify the reference clock identifier as other than the default, depending on the driver. The <tt>refid</tt> option is used for this purpose. Except where noted, these options apply to all clock drivers.</p>
|
||||
<h4 id="cmd">Reference Clock Commands</h4>
|
||||
<dl>
|
||||
<dt><tt>server 127.127.<i>t.u</i> [prefer] [mode <i>int</i>] [minpoll <i>int</i>] [maxpoll <i>int</i>]</tt>
|
||||
<dt id="server"><tt>server 127.127.<i>t.u</i> [prefer] [mode <i>int</i>] [minpoll <i>int</i>] [maxpoll <i>int</i>]</tt>
|
||||
<dd>This command can be used to configure reference clocks in special ways. The options are interpreted as follows:
|
||||
<dl>
|
||||
<dt><tt>prefer</tt>
|
||||
@ -43,7 +46,9 @@
|
||||
<dt><tt>maxpoll <i>int</i></tt>
|
||||
<dd>These options specify the minimum and maximum polling interval for reference clock messages in seconds, interpreted as dual logarithms (2 ^ x). For most directly connected reference clocks, both <tt>minpoll</tt> and <tt>maxpoll</tt> default to 6 (2^16 = 64 s). For modem reference clocks, <tt>minpoll</tt> defaults to 10 (2^10 = 1024 s = 17.1 m) and <tt>maxpoll</tt> defaults to 14 (2^14 = 16384 s = 4.5 h). The allowable range is 4 (16 s) to 17 (36.4 h) inclusive.
|
||||
</dl>
|
||||
<dt><tt>fudge 127.127.<i>t.u</i> [time1 <i>sec</i>] [time2 <i>sec</i>] [stratum <i>int</i>] [refid <i>string</i>] [mode <i>int</i>] [flag1 0|1] [flag2 0|1] [flag3 0|1] [flag4 0|1]</tt>
|
||||
<dt id="fudge"><tt>fudge 127.127.<i>t.u</i> [time1 <i>sec</i>] [time2 <i>sec</i>]
|
||||
[stratum <i>int</i>] [refid <i>string</i>] [flag1 0|1]
|
||||
[flag2 0|1] [flag3 0|1] [flag4 0|1]</tt>
|
||||
<dd>This command can be used to configure reference clocks in special ways. It must immediately follow the <tt>server</tt> command which configures the driver. Note that the same capability is possible at run time using the <tt><a href="ntpdc.html">ntpdc</a></tt> program. The options are interpreted as follows:
|
||||
<dl>
|
||||
<dt><tt>time1 <i>sec</i></tt>
|
||||
@ -55,8 +60,6 @@
|
||||
<dd>Specifies the stratum number assigned to the driver, an integer between 0 and 15. This number overrides the default stratum number ordinarily assigned by the driver itself, usually zero.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies an ASCII string of from one to four characters which defines the reference identifier used by the driver. This string overrides the default identifier ordinarily assigned by the driver itself.
|
||||
<dt><tt>mode <i>int</i></tt>
|
||||
<dd>Specifies a mode number which is interpreted in a device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the <tt>parse</tt> drivers.
|
||||
<dt><tt>flag1 flag2 flag3 flag4</tt>
|
||||
<dd>These four flags are used for customizing the clock driver. The interpretation of these values, and whether they are used at all, is a function of the particular clock driver. However, by convention <tt>flag4</tt> is used to enable recording monitoring data to the <tt>clockstats</tt> file configured with the <tt>filegen</tt> command. Further information on the <tt>filegen</tt> command can be found in the <a href="monopt.html">Monitoring Options</a> page.
|
||||
</dl>
|
||||
|
32
html/comdex.html
Normal file
32
html/comdex.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Command Index</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Command Index</h3>
|
||||
<img src="pic/alice38.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carrol</a>
|
||||
<p>The Mad Hatter says "Bring it on".</p>
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->08-Apr-2009 2:56<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/accopt.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/authopt.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/clockopt.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/confopt.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/miscopt.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/monopt.txt"></script>
|
||||
<hr>
|
||||
<br>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
39
html/config.html
Normal file
39
html/config.html
Normal file
@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Build Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Build Options</h3>
|
||||
<img src="pic/pogo3a.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>Gnu autoconfigure tools are in the backpack.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">Monday,
|
||||
December 15, 2008 20:54</csobj> UTC<csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="250"></csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>Most modern software distributions include an autoconfigure utility which
|
||||
customizes the build and install configuration according to the specific
|
||||
hardware, operating system and file system conventions. For NTP this
|
||||
utility is called <tt>configure</tt>, which is run before building and installing
|
||||
the program components. For most installations no additional actions
|
||||
are required other than running <tt>configure</tt> with no options.
|
||||
However, it is possible to customize the build and install configuration
|
||||
through the use of <tt>configure</tt> options.</p>
|
||||
<p>The available options, together with
|
||||
a concise description, can be displayed by running <tt>configure</tt> with
|
||||
the <tt>--help</tt> option. Various options can be used to reduce the memory
|
||||
footprint, adjust the scheduling priority, enable or disable debugging
|
||||
support or reference clock driver support. The options can be used
|
||||
to specify where to install the program components or where to find
|
||||
various libraries if they are not in the default place.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,82 +1,198 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Server Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Server Options</h3>
|
||||
<img src="pic/boom3a.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>The chicken is getting configuration advice.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">20:57</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="270">Monday, October 10, 2005</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links7.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#cfg">Configuration Commands</a>
|
||||
<li class="inline"><a href="#opt">Command Options</a>
|
||||
<li class="inline"><a href="#aux">Auxilliary Commands</a>
|
||||
<li class="inline"><a href="#bug">Bugs</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<p>Following is a description of the configuration commands in NTPv4. There are two classes of commands, configuration commands that configure an association with a remote server, peer or reference clock, and auxilliary commands that specify environmental variables that control various related operations.</p>
|
||||
<h4 id="cfg">Configuration Commands</h4>
|
||||
<p>The various modes are determined by the command keyword and the required IP address. Addresses are classed by type as (s) a remote server or peer (IPv4 class A, B and C), (b) the broadcast address of a local interface, (m) a multicast address (IPv4 class D), or (r) a reference clock address (127.127.x.x). The options that can be used with these commands are listed below.</p>
|
||||
<p>If the Basic Socket Interface Extensions for IPv6 (RFC-2553) is detected, support for the IPv6 address family is generated in addition to the default support of the IPv4 address family. IPv6 addresses can be identified by the presence of colons ":" in the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses can be used, with the exception of reference clock addresses, which are always IPv4. Note that in contexts where a host name is expected, a <tt>-4</tt> qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a <tt>-6</tt> qualifier forces DNS resolution to the IPv6 namespace.</p>
|
||||
<p>There are three types of associations: persistent, preemptable and ephemeral. Persistent associations are mobilized by a configuration command and never demobilized. Preemptable associations, which are new to NTPv4, are mobilized by a configuration command which includes the <tt>prempt</tt> flag and are demobilized by timeout or error. Ephemeral associations are mobilized upon arrival of designated messages and demobilized by timeout or error.</p>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Server Options</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h3>Server Options</h3>
|
||||
<img src="pic/boom3a.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>,
|
||||
Walt Kelly</a>
|
||||
<p>The chicken is getting configuration advice.</p>
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->25-Nov-2009 4:46<!-- #EndDate -->
|
||||
</p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/command.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/confopt.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#cfg">Configuration Commands</a></li>
|
||||
<li class="inline"><a href="#opt">Command Options</a></li>
|
||||
<li class="inline"><a href="#aux">Auxilliary Commands</a></li>
|
||||
<li class="inline"><a href="#bug">Bugs</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<p>Following is a description of the configuration commands in NTPv4. There are
|
||||
two classes of commands, configuration commands that configure an association
|
||||
with a remote server, peer or reference clock, and auxilliary commands that
|
||||
specify environmental variables that control various related operations. </p>
|
||||
<p>The various modes described on the <a href="assoc.html">Association Management</a> page
|
||||
are determined by the command keyword and the DNS name or IP address. Addresses
|
||||
are classed by type as (s) a remote server or peer (IPv4 class A, B and C),
|
||||
(b) the IP broadcast address of a local interface, (m) a multicast address (IPv4
|
||||
class D), or (r) a reference clock address (127.127.x.x). For type m addresses
|
||||
the IANA has assigned the multicast group address IPv4 224.0.1.1 and IPv6 ff05::101
|
||||
(site local) exclusively to NTP, but other nonconflicting addresses can be used. </p>
|
||||
<p>If the Basic Socket Interface Extensions for IPv6 (RFC-2553) is detected,
|
||||
support for the IPv6 address family is generated in addition to the default
|
||||
IPv4 address family. IPv6 addresses can be identified by the presence of colons ":" in
|
||||
the address field. IPv6 addresses can be used almost everywhere where IPv4 addresses
|
||||
can be used, with the exception of reference clock addresses, which are always
|
||||
IPv4. Note that in contexts where a host name is expected, a <tt>-4</tt> qualifier
|
||||
preceding the host name forces DNS resolution to the IPv4 namespace, while a <tt>-6</tt> qualifier
|
||||
forces DNS resolution to the IPv6 namespace.</p>
|
||||
<h4 id="cfg">Configuration Commands</h4>
|
||||
<dl>
|
||||
<dt id="server"><tt>server <i>address</i> [options ...]</tt><br>
|
||||
<tt>peer <i>address</i> [options ...]</tt><br>
|
||||
<tt>broadcast <i>address</i> [options ...]</tt><br>
|
||||
<tt>manycastclient <i>address</i> [options ...]</tt><br>
|
||||
<tt>pool <i>address</i> [options ...]</tt><br>
|
||||
<tt>unpeer [<i>address</i> | <i>associd</i>]</tt></dt>
|
||||
<dd>These commands specify the time server name or address to be used and the
|
||||
mode in which to operate. The <i>address</i> can be either a DNS name or a
|
||||
IPv4 or IPv6 address in standard notation. In general, multiple commands of
|
||||
each type can be used for different server and peer addresses or multicast
|
||||
groups.
|
||||
<dl>
|
||||
<dt><tt>server <i>address</i> [options ...]</tt><br>
|
||||
<tt>peer <i>address</i> [</tt><tt>options ...]<br>
|
||||
broadcast <i>address</i> [options ...]</tt><br>
|
||||
<tt>manycastclient <i>address</i> [options ...]</tt>
|
||||
<dd>These four commands specify the time server name or address to be used and the mode in which to operate. The <i>address</i> can be either a DNS name or a IP address in dotted-quad notation. Additional information on association behavior can be found in the <a href="assoc.html">Association Management</a> page.
|
||||
<dl>
|
||||
<dt><tt>server</tt>
|
||||
<dd>For type s and r addresses (only), this command normally mobilizes a persistent client mode association with the specified remote server or local reference clock. If the <tt>preempt</tt> flag is specified, a preemptable association is mobilized instead. In client mode the client clock can synchronize to the remote server or local reference clock, but the remote server can never be synchronized to the client clock. This command should NOT be used for type <tt>b</tt> or <tt>m</tt> addresses. <dt><tt>peer</tt>
|
||||
<dd>For type s addresses (only), this command mobilizes a persistent symmetric-active mode association with the specified remote peer. In this mode the local clock can be synchronized to the remote peer or the remote peer can be synchronized to the local clock. This is useful in a network of servers where, depending on various failure scenarios, either the local or remote peer may be the better source of time. This command should NOT be used for type <tt>b</tt>, <tt>m</tt> or <tt>r</tt> addresses.
|
||||
<dt><tt>broadcast</tt>
|
||||
<dd>For type <tt>b</tt> and <tt>m</tt> addresses (only), this command mobilizes a persistent broadcast mode association. Multiple commands can be used to specify multiple local broadcast interfaces (subnets) and/or multiple multicast groups. Note that local broadcast messages go only to the interface associated with the subnet specified, but multicast messages go to all interfaces.
|
||||
<dd>In broadcast mode the local server sends periodic broadcast messages to a client population at the <i><tt>address</tt></i> specified, which is usually the broadcast address on (one of) the local network(s) or a multicast address assigned to NTP. The IANA has assigned the multicast group address IPv4 224.0.1.1 and IPv6 ff05::101 (site local) exclusively to NTP, but other nonconflicting addresses can be used to contain the messages within administrative boundaries. Ordinarily, this specification applies only to the local server operating as a sender; for operation as a broadcast client, see the <tt>broadcastclient</tt> or <tt>multicastclient</tt> commands below.
|
||||
<dt><tt>manycastclient</tt>
|
||||
<dd>For type <tt>m</tt> addresses (only), this command mobilizes a preemptable manycast client mode association for the multicast group address specified. In this mode a specific address must be supplied which matches the address used on the <tt>manycastserver</tt> command for the designated manycast servers. The NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to avoid spraying large areas of the Internet with these messages and causing a possibly massive implosion of replies at the sender.
|
||||
<dd>The <tt>manycastclient</tt> command specifies that the host is to operate in client mode with the remote servers that are discovered as the result of broadcast/multicast messages. The client broadcasts a request message to the group address associated with the specified <i><tt>address</tt></i> and specifically enabled servers respond to these messages. The client selects the servers providing the best time and continues as with the <tt>server </tt>command. The remaining servers are discarded as if never heard.
|
||||
</dl>
|
||||
</dl>
|
||||
<h4 id="opt">Command Options</h4>
|
||||
<dl>
|
||||
<dt><tt>autokey</tt>
|
||||
<dd>All packets sent to and received from the server or peer are to include authentication fields encrypted using the autokey scheme described in the <a href="authopt.html">Authentication Options</a> page. This option is valid with all commands.<dt><tt>burst</tt>
|
||||
<dd>When the server is reachable, send a burst of eight packets instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the <a href="miscopt.html"><tt>calldelay</tt></a> command to allow additional time for a modem or ISDN call to complete. This option is valid with only the <tt>server</tt> command and is a recommended option with this command when the <tt>maxpoll</tt> option is 11 or greater. <dt><tt>iburst</tt>
|
||||
<dd>When the server is unreachable, send a burst of eight packets instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the <a href="miscopt.html"><tt>calldelay</tt></a> command to allow additional time for a modem or ISDN call to complete. This option is valid with only the <tt>server</tt> command and is a recommended option with this command.<dt><tt>key</tt> <i><tt>key</tt></i>
|
||||
<dd>All packets sent to and received from the server or peer are to include authentication fields encrypted using the specified <i><tt>key</tt></i> identifier with values from 1 to 65534, inclusive. The default is to include no encryption field. This option is valid with all commands.<dt><tt>minpoll <i>minpoll</i></tt><br>
|
||||
<tt>maxpoll <i>maxpoll</i></tt>
|
||||
<dd>These options specify the minimum and maximum poll intervals for NTP messages, in seconds as a power of two. The maximum poll interval defaults to 10 (1,024 s), but can be increased by the <tt>maxpoll</tt> option to an upper limit of 17 (36.4 h). The minimum poll interval defaults to 6 (64 s), but can be decreased by the <tt>minpoll</tt> option to a lower limit of 4 (16 s). These option are valid only with the <tt>server</tt> and <tt>peer</tt> commands.<dt><tt>noselect</tt>
|
||||
<dd>Marks the server as unused, except for display purposes. The server is discarded by the selection algorithm. This option is valid only with the <tt>server</tt> and <tt>peer</tt> commands.<dt><tt>preempt</tt>
|
||||
<dd>Specifies the association as preemptable rather than the default persistent. This option is valied only with the <tt>server</tt> command.<dt><tt>prefer</tt>
|
||||
<dd>Marks the server as preferred. All other things being equal, this host will be chosen for synchronization among a set of correctly operating hosts. See the <a href="prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page for further information. This option is valid only with the <tt>server</tt> and <tt>peer</tt> commands.<dt><tt>true</tt>
|
||||
<dd>Force the association to assume truechimer status; that is, always survive the selection and clustering algorithms. This option can be used with any association, but is most useful for reference clocks with large jitter on the serial port and precision pulse-per-second (PPS) signals. Caution: this option defeats the algorithms designed to cast out falsetickers and can allow these sources to set the system clock. This option is valid only with the <tt>server</tt> and <tt>peer</tt> commands.<dt><tt>ttl <i>ttl</i></tt>
|
||||
<dd>This option is used only with broadcast server and manycast client modes. It specifies the time-to-live <i><tt>ttl</tt></i> to use on broadcast server and multicast server and the maximum <i><tt>ttl</tt></i> for the expanding ring search with manycast client packets. Selection of the proper value, which defaults to 127, is something of a black art and should be coordinated with the network administrator.
|
||||
<dt><tt>version <i>version</i></tt>
|
||||
<dd>Specifies the version number to be used for outgoing NTP packets. Versions 1-4 are the choices, with version 4 the default. This option is valid only with the <tt>server,</tt> <tt>peer</tt> and <tt>broadcast</tt> commands.
|
||||
</dl>
|
||||
<h4 id="aux">Auxilliary Commands</h4>
|
||||
<dl>
|
||||
<dt><tt>broadcastclient [novolley]</tt>
|
||||
<dd>This command enables reception of broadcast server messages to any local interface (type <tt>b</tt>) address. Ordinarily, upon receiving a message for the first time, the broadcast client measures the nominal server propagation delay using a brief client/server exchange with the server, after which it continues in listen-only mode. If the <tt>novolley</tt> keyword is present, the exchange is not used and the value specified in the <tt>broadcastdelay</tt> command is used or, if the <tt>broadcastdelay</tt> command is not used, the default 4.0 ms. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the <a href="authopt.html">Authentication Options</a> page. Note that the <tt>novolley</tt> keyword is incompatible with public key authentication.<dt><tt>manycastserver <i>address</i> [...]</tt>
|
||||
<dd>This command enables reception of manycast client messages to the multicast group address(es) (type <tt>m</tt>) specified. At least one address is required. The NTP multicast address 224.0.1.1 assigned by the IANA should NOT be used, unless specific means are taken to limit the span of the reply and avoid a possibly massive implosion at the original sender. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the <a href="authopt.html">Authentication Options</a> page.
|
||||
<dt><tt>multicastclient <i>address</i> [...]</tt>
|
||||
<dd>This command enables reception of multicast server messages to the multicast group address(es) (type <tt>m</tt>) specified. Upon receiving a message for the first time, the multicast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in which it synchronizes to succeeding multicast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the <a href="authopt.html">Authentication Options</a> page.
|
||||
</dl>
|
||||
<h4 id="bug">Bugs</h4>
|
||||
<p>The syntax checking is not picky; some combinations of ridiculous and even hilarious options and modes may not be detected.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
<dt><tt>server</tt></dt>
|
||||
<dd>For type s and r addresses (only), this command mobilizes a persistent
|
||||
client mode association with the specified remote server or local reference
|
||||
clock. If the <tt>preempt</tt> flag is specified, a preemptable client mode
|
||||
association is mobilized instead.</dd>
|
||||
<dt><tt>peer</tt></dt>
|
||||
<dd>For type s addresses (only), this command mobilizes a persistent symmetric-active
|
||||
mode association with the specified remote peer.</dd>
|
||||
<dt><tt>broadcast</tt></dt>
|
||||
<dd>For type b and m addressees (only), this command mobilizes a persistent
|
||||
broadcast or multicast server mode association. Note that type
|
||||
b messages go only to the interface specified, but type m messages go to
|
||||
all interfaces.</dd>
|
||||
<dt><tt>manycastclient</tt></dt>
|
||||
<dd>For type m addresses (only), this command mobilizes a manycast client
|
||||
mode association for the multicast group address specified. In this mode
|
||||
the address must match the address specified on the <tt>manycastserver</tt> command
|
||||
of one or more designated manycast servers.</dd>
|
||||
<dt><tt>pool</tt></dt>
|
||||
<dd>For type s messages (only) this command mobilizes a client mode association
|
||||
for servers implementing the pool automatic server discovery scheme described
|
||||
on the <a href="assoc.html">Association Management</a> page. The address
|
||||
is a DNS name in the form <tt><i>area</i>.pool.ntp.org</tt>, where <tt><i>area</i></tt> is
|
||||
a qualifier designating the server geographic area such as <tt>us</tt> or <tt>europe</tt>.</dd>
|
||||
<dt><tt>unpeer</tt></dt>
|
||||
<dd>This command removes a previously configured association. An address or association ID can
|
||||
be used to identify the association. Either an IP address or DNS name can be used. This
|
||||
command is most useful when supplied via <tt><a href="ntpq.html">ntpq</a></tt> runtime
|
||||
configuration commands <tt>:config</tt> and <tt>config-from-file</tt>.</dd>
|
||||
</dl></dd>
|
||||
</dl>
|
||||
<h4 id="opt">Command Options</h4>
|
||||
<dl>
|
||||
<dt><tt>autokey</tt></dt>
|
||||
<dd>Send and receive packets authenticated by the Autokey scheme described
|
||||
in the <a href="authopt.html">Authentication Options</a> page. This option
|
||||
is mutually exclusive with the <tt>key</tt> option.</dd>
|
||||
<dt><tt>burst</tt></dt>
|
||||
<dd>When the server is reachable, send a burst of eight packets instead of the
|
||||
usual one. The packet spacing is normally 2 s; however, the spacing between
|
||||
the first and second packets can be changed with the <a href="miscopt.html"><tt>calldelay</tt></a> command
|
||||
to allow additional time for a modem or ISDN call to complete. This option
|
||||
is valid only with the <tt>server</tt> command and type s addressesa.
|
||||
It is a recommended option when the <tt>maxpoll</tt> option is greater than
|
||||
10 (1024 s).</dd>
|
||||
<dt><tt>iburst</tt></dt>
|
||||
<dd>When the server is unreachable, send a burst of eight packets instead of
|
||||
the usual one. The packet spacing is normally 2 s; however, the spacing between
|
||||
the first and second packets can be changed with the <a href="miscopt.html"><tt>calldelay</tt></a> command
|
||||
to allow additional time for a modem or ISDN call to complete. This option
|
||||
is valid only with the <tt>server</tt> command and type s addresses. It is
|
||||
a recommended option with this command.</dd>
|
||||
<dt><tt>key</tt> <i><tt>key</tt></i></dt>
|
||||
<dd>Send and receive packets authenticated by the symmetric key scheme described
|
||||
in the <a href="authopt.html">Authentication Options</a> page.
|
||||
The <i><tt>key</tt></i> specifies the key identifier with values from 1 to
|
||||
65534, inclusive. This option is mutually exclusive with the <tt>autokey</tt> option.</dd>
|
||||
<dt><tt>minpoll <i>minpoll<br>
|
||||
</i></tt><tt>maxpoll <i>maxpoll</i></tt></dt>
|
||||
<dd>These options specify the minimum and maximum poll intervals for NTP messages,
|
||||
in seconds as a power of two. The maximum poll interval defaults to 10
|
||||
(1024 s), but can be increased by the <tt>maxpoll</tt> option to an upper limit
|
||||
of 17 (36 h). The minimum poll interval defaults to 6 (64 s), but can
|
||||
be decreased by the <tt>minpoll</tt> option to a lower limit of 3 (8 s).</dd>
|
||||
<dt><tt>mode <i>option</i></tt></dt>
|
||||
<dd>Pass the <tt><i>option</i></tt> to a reference clock driver, where <tt><i>option</i></tt> is
|
||||
an integer in the range from 0 to 255, inclusive. This option is valid
|
||||
only with type r addresses.</dd>
|
||||
<dt><tt>noselect</tt></dt>
|
||||
<dd>Marks the server or peer to be ignored by the selection algorithm but visible
|
||||
to the monitoring program. This option is ignored with the <tt>broadcast</tt> command.</dd>
|
||||
<dt><tt>preempt</tt></dt>
|
||||
<dd>Specifies the association as preemptable rather than the default persistent.
|
||||
This option is ignored with the <tt>broadcast</tt> command and is most useful
|
||||
with the <tt>manycastclient</tt> and <tt>pool</tt> commands.</dd>
|
||||
<dt><tt>prefer</tt></dt>
|
||||
<dd>Mark the server as preferred. All other things being equal, this host will
|
||||
be chosen for synchronization among a set of correctly operating hosts. See
|
||||
the <a href="prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page
|
||||
for further information. This option is valid only with the <tt>server</tt> and <tt>peer</tt> commands.</dd>
|
||||
<dt><tt>true</tt></dt>
|
||||
<dd>Mark the association to assume truechimer status; that is, always survive
|
||||
the selection and clustering algorithms. This option can be used with any association,
|
||||
but is most useful for reference clocks with large jitter on the serial port
|
||||
and precision pulse-per-second (PPS) signals. Caution: this option defeats
|
||||
the algorithms designed to cast out falsetickers and can allow these sources
|
||||
to set the system clock. This option is valid only with the <tt>server</tt> and <tt>peer</tt> commands.</dd>
|
||||
<dt><tt>ttl <i>ttl</i></tt></dt>
|
||||
<dd>This option specifies the time-to-live <i><tt>ttl</tt></i> for the <tt>broadcast</tt> command
|
||||
and the maximum <i><tt>ttl</tt></i> for the expanding ring search used by the <tt>manycastclient</tt> command.
|
||||
Selection of the proper value, which defaults to 127, is something of a black art and should be coordinated with the network administrator. This option is invalid with type r addresses.</dd>
|
||||
<dt><tt>version <i>version</i></tt></dt>
|
||||
<dd>Specifies the version number to be used f
|
||||
or outgoing NTP packets. Versions
|
||||
1-4 are the choices, with version 4 the default.</dd>
|
||||
<dt><tt>xleave</tt></dt>
|
||||
<dd>Operate in interleaved mode (symmetric and broadcast modes only). (see <a href="xleave.html">NTP
|
||||
Interleaved Modes</a>)</dd>
|
||||
</dl>
|
||||
<h4 id="aux">Auxilliary Commands</h4>
|
||||
<dl>
|
||||
<dt id="broadcastclient"><tt>broadcastclient</tt></dt>
|
||||
<dd>Enable reception of broadcast server messages to any local interface (type
|
||||
b address). Ordinarily, upon receiving a broadcast message for the first
|
||||
time, the broadcast client measures the nominal server propagation delay using
|
||||
a brief client/server exchange, after which it continues in listen-only mode.
|
||||
If a nonzero value is specified in the <tt>broadcastdelay</tt> command, the
|
||||
value becomes the delay and the volley is not executed. Note: the <tt>novolley</tt> option
|
||||
has been deprecated for future enhancements. Note that, in order to avoid
|
||||
accidental or malicious disruption in this mode, both the server and client
|
||||
should operate using symmetric key or public key authentication as described
|
||||
in the <a href="authopt.html">Authentication
|
||||
Options</a> page. Note that the <tt>novolley</tt> keyword is incompatible with
|
||||
public key authentication.</dd>
|
||||
<dt id="manycastserver"><tt>manycastserver <i>address</i> [...]</tt></dt>
|
||||
<dd>Enable reception of manycast client messages (type m)to the multicast group
|
||||
address(es) (type m) specified. At least one address is required. Note that,
|
||||
in order to avoid accidental or malicious disruption, both the server and client
|
||||
should operate using symmetric key or public key authentication as described
|
||||
in the <a href="authopt.html">Authentication Options</a> page.</dd>
|
||||
<dt id="multicastclient"><tt>multicastclient <i>address</i> [...]</tt></dt>
|
||||
<dd>Enable reception of multicast server messages to the multicast group address(es)
|
||||
(type m) specified. Upon receiving a message for the first time, the multicast
|
||||
client measures the nominal server propagation delay using a brief client/server
|
||||
exchange with the server, then enters the broadcast client mode, in which it
|
||||
synchronizes to succeeding multicast messages. Note that, in order to avoid
|
||||
accidental or malicious disruption in this mode, both the server and client
|
||||
should operate using symmetric key or public key authentication as described
|
||||
in the <a href="authopt.html">Authentication Options</a> page.</dd>
|
||||
</dl>
|
||||
<h4 id="bug">Bugs</h4>
|
||||
<p>The syntax checking is not picky; some combinations of ridiculous and even
|
||||
hilarious options and modes may not be detected.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -10,16 +10,17 @@
|
||||
|
||||
<body>
|
||||
<h3>Copyright Notice</h3>
|
||||
<img src="pic/sheepb.jpg" alt="jpg" align="left"> "Clone me," says Dolly sheepishly
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">20:31</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="285">Saturday, January 06, 2007</csobj></p>
|
||||
<br clear="left">
|
||||
<img src="pic/sheepb.jpg" alt="jpg" align="left"> "Clone me," says Dolly sheepishly.
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->1-Jan-2011 08:34<!-- #EndDate -->
|
||||
UTC</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>The following copyright notice applies to all files collectively called the Network Time Protocol Version 4 Distribution. Unless specifically declared otherwise in an individual file, this notice applies as if the text was explicitly included in the file.<br>
|
||||
</p>
|
||||
<p>The following copyright notice applies to all files collectively called the Network Time Protocol Version 4 Distribution. Unless specifically declared otherwise in an individual file, this notice applies as if the text was explicitly included in the file.</p>
|
||||
<pre>
|
||||
***********************************************************************
|
||||
* *
|
||||
* Copyright (c) David L. Mills 1992-2009 *
|
||||
* Copyright (c) University of Delaware 1992-2011 *
|
||||
* *
|
||||
* Permission to use, copy, modify, and distribute this software and *
|
||||
* its documentation for any purpose with or without fee is hereby *
|
||||
@ -37,15 +38,17 @@
|
||||
</pre>
|
||||
<p>The following individuals contributed in part to the Network Time Protocol Distribution Version 4 and are acknowledged as authors of this work.</p>
|
||||
<ol>
|
||||
<li class="inline"><a href="mailto:%20takao_abe@xurb.jp">Takao Abe <takao_abe@xurb.jp></a> Clock driver for JJY receivers
|
||||
<li class="inline"><a href="mailto:%20mark_andrews@isc.org">Mark Andrews <mark_andrews@isc.org></a> Leitch atomic clock controller
|
||||
<li class="inline"><a href="mailto:%20altmeier@atlsoft.de">Bernd Altmeier <altmeier@atlsoft.de></a> hopf Elektronik serial line and PCI-bus devices
|
||||
<li class="inline"><a href="mailto:%20vbais@mailman1.intel.co">Viraj Bais <vbais@mailman1.intel.com></a> and <a href="mailto:%20kirkwood@striderfm.intel.com">Clayton Kirkwood <kirkwood@striderfm.intel.com></a> port to WindowsNT 3.5
|
||||
<li class="inline"><a href="mailto:%20michael.barone@lmco.com">Michael Barone <michael,barone@lmco.com></a> GPSVME fixes
|
||||
<li class="inline"><a href="mailto:%20Jean-Francois.Boudreault@viagenie.qc.ca">Jean-Francois Boudreault <Jean-Francois.Boudreault@viagenie.qc.ca></a>IPv6 support
|
||||
<li class="inline"><a href="mailto:%20karl@owl.HQ.ileaf.com">Karl Berry <karl@owl.HQ.ileaf.com></a> syslog to file option
|
||||
<li class="inline"><a href="mailto:%20greg.brackley@bigfoot.com">Greg Brackley <greg.brackley@bigfoot.com></a> Major rework of WINNT port. Clean up recvbuf and iosignal code into separate modules.
|
||||
<li class="inline"><a href="mailto:%20Marc.Brett@westgeo.com">Marc Brett <Marc.Brett@westgeo.com></a> Magnavox GPS clock driver
|
||||
<li class="inline"><a href="mailto:%20Piete.Brooks@cl.cam.ac.uk">Piete Brooks <Piete.Brooks@cl.cam.ac.uk></a> MSF clock driver, Trimble PARSE support
|
||||
<li class="inline"><a href="mailto:%20nelson@bolyard.me">Nelson B Bolyard <nelson@bolyard.me></a> update and complete broadcast and crypto features in sntp
|
||||
<li class="inline"><a href="mailto:%20Jean-Francois.Boudreault@viagenie.qc.ca">Jean-Francois Boudreault <Jean-Francois.Boudreault@viagenie.qc.ca></a> IPv6 support
|
||||
<li class="inline"><a href="mailto:%20reg@dwf.com">Reg Clemens <reg@dwf.com></a> Oncore driver (Current maintainer)
|
||||
<li class="inline"><a href="mailto:%20clift@ml.csiro.au">Steve Clift <clift@ml.csiro.au></a> OMEGA clock driver
|
||||
<li class="inline"><a href="mailto:casey@csc.co.za">Casey Crellin <casey@csc.co.za></a> vxWorks (Tornado) port and help with target configuration
|
||||
@ -53,7 +56,9 @@
|
||||
<li class="inline"><a href="mailto:%20dundas@salt.jpl.nasa.gov">John A. Dundas III <dundas@salt.jpl.nasa.gov></a> Apple A/UX port
|
||||
<li class="inline"><a href="mailto:%20duwe@immd4.informatik.uni-erlangen.de">Torsten Duwe <duwe@immd4.informatik.uni-erlangen.de></a> Linux port
|
||||
<li class="inline"><a href="mailto:%20dennis@mrbill.canet.ca">Dennis Ferguson <dennis@mrbill.canet.ca></a> foundation code for NTP Version 2 as specified in RFC-1119
|
||||
<li class="inline"><a href="mailto:%20jhay@icomtek.csir.co.za">John Hay <jhay@@icomtek.csir.co.za></a> IPv6 support and testing
|
||||
<li class="inline"><a href="mailto:%20jhay@icomtek.csir.co.za">John Hay <jhay@icomtek.csir.co.za></a> IPv6 support and testing
|
||||
<li class="inline"><a href="mailto:%20davehart@davehart.com">Dave Hart <davehart@davehart.com></a> General maintenance, Windows port interpolation rewrite
|
||||
<li class="inline"><a href="mailto:%20neoclock4x@linum.com">Claas Hilbrecht <neoclock4x@linum.com></a> NeoClock4X clock driver
|
||||
<li class="inline"><a href="mailto:%20glenn@herald.usask.ca">Glenn Hollinger <glenn@herald.usask.ca></a> GOES clock driver
|
||||
<li class="inline"><a href="mailto:%20iglesias@uci.edu">Mike Iglesias <iglesias@uci.edu></a> DEC Alpha port
|
||||
<li class="inline"><a href="mailto:%20jagubox.gsfc.nasa.gov">Jim Jagielski <jim@jagubox.gsfc.nasa.gov></a> A/UX port
|
||||
@ -74,6 +79,7 @@
|
||||
<li class="inline"><a href="mailto:%20tmoore@fievel.daytonoh.ncr.com">Tom Moore <tmoore@fievel.daytonoh.ncr.com></a> i386 svr4 port
|
||||
<li class="inline"><a href="mailto:%20kamal@whence.com">Kamal A Mostafa <kamal@whence.com></a> SCO OpenServer port
|
||||
<li class="inline"><a href="mailto:%20derek@toybox.demon.co.uk">Derek Mulcahy <derek@toybox.demon.co.uk></a> and <a href="mailto:%20d@hd.org">Damon Hart-Davis <d@hd.org></a> ARCRON MSF clock driver
|
||||
<li class="inline"><a href="mailto:%20neal@ntp.org">Rob Neal <neal@ntp.org></a> Bancomm refclock and config/parse code maintenance
|
||||
<li class="inline"><a href="mailto:%20Rainer.Pruy@informatik.uni-erlangen.de">Rainer Pruy <Rainer.Pruy@informatik.uni-erlangen.de></a> monitoring/trap scripts, statistics file handling
|
||||
<li class="inline"><a href="mailto:%20dirce@zk3.dec.com">Dirce Richards <dirce@zk3.dec.com></a> Digital UNIX V4.0 port
|
||||
<li class="inline"><a href="mailto:%20wsanchez@apple.com">Wilfredo Sánchez <wsanchez@apple.com></a> added support for NetInfo
|
||||
@ -88,7 +94,7 @@
|
||||
<li class="inline"><a href="mailto:%20tsuruoka@nc.fukuoka-u.ac.jp">Tomoaki TSURUOKA <tsuruoka@nc.fukuoka-u.ac.jp></a>TRAK clock driver
|
||||
<li class="inline"><a href="mailto:%20vixie@vix.com">Paul A Vixie <vixie@vix.com></a> TrueTime GPS driver, generic TrueTime clock driver
|
||||
<li class="inline"><a href="mailto:%20Ulrich.Windl@rz.uni-regensburg.de">Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de></a> corrected and validated HTML documents according to the HTML DTD
|
||||
</ol>
|
||||
</ol>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
176
html/debug.html
176
html/debug.html
@ -13,136 +13,60 @@
|
||||
<h3>NTP Debugging Techniques</h3>
|
||||
<img src="pic/pogo.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
|
||||
<p>We make house calls and bring our own bugs.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:38</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>More Help</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links12.txt"></script>
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->16-Jul-2009 19:36<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<h4>More Help</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/install.txt"></script>
|
||||
<hr>
|
||||
<p>Once the NTP software distribution has been compiled and installed and the configuration file constructed, the next step is to verify correct operation and fix any bugs that may result. Usually, the command line that starts the daemon is included in the system startup file, so it is executed only at system boot time; however, the daemon can be stopped and restarted from root at any time. Usually, no command-line arguments are required, unless special actions described in the <a href="ntpd.html"><tt>ntpd</tt> - Network Time Protocol (NTP) daemon</a> page are required. Once started, the daemon will begin sending and receiving messages, as specified in the configuration file.</p>
|
||||
<h4>Initial Startup</h4>
|
||||
<p>When started for the first time, the frequency file, usually called <tt>ntp.drift</tt>, has not yet been created. The daemon switches to a special training routine designed to quickly determine the system clock frequency offset of the particular machine. The routine first measures the current clock offset and sets the clock, then continues for up to twenty minutes before measuring the clock offset, which might involve setting the clock again. The two measurements are used to compute the initial frequency offset and the daemon continues in regular operation, during which the frequency offset is continuously updated. Once each hour the daemon writes the current frequency offset to the <tt>ntp.drift</tt> file. When restarted after that, the daemon reads the frequency offset from the <tt>ntp.drift</tt> file and avoids the training routine.</p>
|
||||
<p>Note that the daemon requires at least four packet exchanges when first started in any case. This is required in order for the mitigation algorithms to insure valid and accurate measurements and defend against network delay spikes and accidental or malicious errors induced by the servers selected in the configuration file. It normally takes less than four minutes to set the clock when first started, but this can be reduced to less than ten seconds with the <tt>iburst</tt> configuration option.</p>
|
||||
<p>The best way to verify correct operation is using the <a href="ntpq.html"><tt>ntpq</tt> - standard NTP query program</a> and <a href="ntpdc.html"><tt>ntpdc</tt> - special NTP query program</a> utility programs, either on the server itself or from another machine elsewhere in the network. The <tt>ntpq</tt> program implements the management functions specified in the NTP specification <a href="http://www.eecis.udel.edu/%7emills/database/rfc/rfc1305/rfc1305c.ps">RFC-1305, Appendix A</a>. The <tt>ntpdc</tt> program implements additional functions not provided in the standard. Both programs can be used to inspect the state variables defined in the specification and, in the case of <tt>ntpdc</tt>, additional ones intended for serious debugging. In addition, the <tt>ntpdc</tt> program can be used to selectively reconfigure and enable or disable some functions while the daemon is running.</p>
|
||||
<p>In extreme cases with elusive bugs, the daemon can operate in two modes, depending on the presence of the <tt>-d</tt> command-line debug switch. If not present, the daemon detaches from the controlling terminal and proceeds autonomously. If one or more <tt>-d</tt> switches are present, the daemon does not detach and generates special output useful for debugging. In general, interpretation of this output requires reference to the sources. However, a single <tt>-d</tt> does produce only mildly cryptic output and can be very useful in finding problems with configuration and network troubles. With a little experience, the volume of output can be reduced by piping the output to <tt>grep</tt> and specifying the keyword of the trace you want to see.</p>
|
||||
<p>Some problems are immediately apparent when the daemon first starts running. The most common of these are the lack of a UDP port for NTP (123) in the Unix <tt>/etc/services</tt> file (or equivalent in some systems). <b>Note that NTP does not use TCP in any form. Also note that NTP requires 123 for both source and destination ports.</b> These facts should be pointed out to firewall administrators.</p>
|
||||
<p>Other problems are apparent in the system log, which ordinarily shows the startup banner, some cryptic initialization data and the computed precision value. Error messages at startup and during regular operation are sent to the system log. In real emergencies the daemon will sent a terminal error message to the system log and then cease operation.</p>
|
||||
<p>The next most common problem is incorrect DNS names. Check that each DNS name used in the configuration file exists and that the address responds to the Unix <tt>ping</tt> command. The Unix <tt>traceroute</tt> or Windows <tt>tracert</tt> utility can be used to verify a partial or complete path exists. Most problems reported to the NTP newsgroup are not NTP problems, but problems with the network or firewall configuration.</p>
|
||||
<p>When first started, the daemon polls the servers listed in the configuration file at 64-s intervals. In order to allow a sufficient number of samples for the NTP algorithms to reliably discriminate between truechimer servers and possible falsetickers, at least four valid messages from at least one server or peer listed in the configuration file is required before the daemon can set the clock. However, if the difference between the client time and server time is greater than the panic threshold, which defaults to 1000 s, the daemon sends a message to the system log and shuts down without setting the clock. It is necessary to set the local clock to within the panic threshold first, either manually by eyeball and wristwatch and the Unix <tt>date</tt> command, or by the <tt>ntpdate</tt> or <tt>ntpd -q</tt> commands. The panic threshold can be changed by the <tt>tinker panic</tt> command discribed on the <a href="miscopt.html">Miscellaneous Options</a> page. The panic threshold can be disabled for the first measurement by the <tt>-g</tt> command line option described on the <a href="ntpd.html"><tt>ntpd</tt> - Network Time Protocol (NTP) daemon</a> page.</p>
|
||||
<p>If the difference between local time and server time is less than the panic threshold but greater than the step threshold, which defaults to 128 ms, the daemon will perform a step adjustment; otherwise, it will gradually slew the clock to the nominal time. Step adjustments are extremely rare in ordinary operation, usually as the result of reboot or hardware failure. The step threshold can be changed to 300 s using the <tt>-x</tt> command line option described on the <tt>ntpd</tt> page. This is usually sufficient to avoid a step after reboot or when the operator has set the system clock to within five minutes by eyeball-and-wristwatch. In extreme cases the step threshold can be changed by the <tt>tinker step</tt> command discribed on the <a href="miscopt.html">Miscellaneous Options</a> page. If set to zero, the clock will never be stepped; however, users should understand the implications for doing this in a distributed data network where all processing must be tightly synchronized. See the <a href="http://www.eecis.udel.edu/%7emills/leap.html">NTP Timescale and Leap Seconds</a> page for further information. If a step adjustment is made, the clock discipline algorithm will start all over again, requiring another round of at least four messages as before. This is necessary so that all servers and peers operate on the same set of time values.</p>
|
||||
<p>The clock discipline algorithm is designed to avoid large noise spikes that might occur on a congested network or access line. If an offset sample exceeds the step threshold, it is ignored and a timer started. If a later sample is below the step threshold, the counter is reset and operation continues normally. However, if the counter is greater than the stepout interval, which defaults to 900 s, the next sample will step the time as directed. The stepout threshold can be changed by the <tt>tinker stepout</tt> command discribed on the Miscellaneous Options page.</p>
|
||||
<p>If for some reason the hardware clock oscillator frequency error is very large, say over 400 PPM, the time offset when the daemon is started for the first time may increase over time until exceeding the step threshold, which requires a frequency adjustment and another step correction. However, due to provisions that reduce vulnerability to noise spikes, the second correction will not be done until after the stepout threshold. When the frequency error is very large, it may take a number of cycles like this until converging to the nominal frequency correction and writing the <tt>ntp.drift</tt> file. If the frequency error is over 500 PPM, convergence will never occur and occasional step adjustments will occur indefinitely.</p>
|
||||
<p>This page discusses <tt>ntpd</tt> program monitoring and debugging techniques using the <a href="ntpq.html"><tt>ntpq</tt> - standard NTP query program</a>, either on the local server or from a remote machine. In special circumstances the <a href="ntpdc.html"><tt>ntpdc</tt> - special NTP query program</a>, can be useful, but its use is not covered here. The <tt>ntpq</tt> program implements the management functions specified in the NTP specification <a href="http://www.eecis.udel.edu/%7emills/database/rfc/rfc1305/rfc1305c.ps">RFC-1305, Appendix A</a>. It is used to read and write the variables defined in the NTP Version 4 specification now navigating the standards process. In addition, the program can be used to send remote configuration commands to the server.</p>
|
||||
<p>The <tt>ntpd</tt> daemon can operate in two modes, depending on the presence of the <tt>-d</tt> command-line option. Without the option the daemon detaches from the controlling terminal and proceeds autonomously. With one or more <tt>-d</tt> options the daemon does not detach and generates special trace output useful for debugging. In general, interpretation of this output requires reference to the sources. However, a single <tt>-d</tt> does produce only mildly cryptic output and can be very useful in finding problems with configuration and network troubles.</p>
|
||||
<p>Some problems are immediately apparent when the daemon first starts running. The most common of these are the lack of a UDP port for NTP (123) in the Unix <tt>/etc/services</tt> file (or equivalent in some systems). <b>Note that NTP does not use TCP in any form. Also note that NTP requires port 123 for both source and destination ports.</b> These facts should be pointed out to firewall administrators.</p>
|
||||
<p>Other problems are apparent in the system log, which ordinarily shows the startup banner, some cryptic initialization data and the computed precision value. Event messages at startup and during regular operation are sent to the optional <tt>protostats</tt> monitor file, as described on the <a href="decode.html">Event Messages and Status Words</a> page. These and other error messages are sent to the system log, as described on the <a href="msyslog.html"><tt>ntpd</tt> System Log Messages</a> page. In real emergencies the daemon will sent a terminal error message to the system log and then cease operation.</p>
|
||||
<p>The next most common problem is incorrect DNS names. Check that each DNS name used in the configuration file exists and that the address responds to the Unix <tt>ping</tt> command. The Unix <tt>traceroute</tt> or Windows <tt>tracert</tt> utility can be used to verify a partial or complete path exists. Most problems reported to the NTP newsgroup are not NTP problems, but problems with the network or firewall configuration.</p>
|
||||
<h4>Verifying Correct Operation</h4>
|
||||
<p>After starting the daemon, run the <tt>ntpq</tt> program using the <tt>-n</tt> switch, which will avoid possible distractions due to name resolution problems. Use the <tt>pe</tt> command to display a billboard showing the status of configured peers and possibly other clients poking the daemon. After operating for a few minutes, the display should be something like:</p>
|
||||
<pre>
|
||||
ntpq> pe
|
||||
remote refid st t when poll reach delay offset jitter
|
||||
=====================================================================
|
||||
-isipc6.cairn.ne .GPS1. 1 u 18 64 377 65.592 -5.891 0.044
|
||||
+saicpc-isiepc2. pogo.udel.edu 2 u 241 128 370 10.477 -0.117 0.067
|
||||
+uclpc.cairn.net pogo.udel.edu 2 u 37 64 177 212.111 -0.551 0.187
|
||||
*pogo.udel.edu .GPS1. 1 u 95 128 377 0.607 0.123 0.027
|
||||
</pre>
|
||||
<p>The host names or addresses shown in the <tt>remote</tt> column correspond to the server and peer entries listed in the configuration file; however, the DNS names might not agree if the names listed are not the canonical DNS names. IPv4 addresses are shown in dotted quad notation, while IPv6 addresses are shown alarmingly. The <tt>refid</tt> column shows the current source of synchronization, while the <tt>st</tt> column reveals the stratum, <tt>t</tt> the type (<tt>u</tt> = unicast, <tt>m</tt> = multicast, <tt>l</tt> = local, <tt>-</tt> = don't know), and <tt>poll</tt> the poll interval in seconds. The <tt>when</tt> column shows the time since the peer was last heard in seconds, while the <tt>reach</tt> column shows the status of the reachability register (see RFC-1305) in octal. The remaining entries show the latest delay, offset and jitter in milliseconds. Note that in NTP Version 4 what used to be the <tt>dispersion</tt> column has been replaced by the <tt>jitter</tt> column.</p>
|
||||
<p>As per the NTP specification RFC-1305, when the <tt>stratum</tt> is between 0 and 15 for a NTP server, the <tt>refid</tt> field shows the server DNS name or, if not found, the IP address in dotted-quad. When the <tt>stratum</tt> is any value for a reference clock, this field shows the identification string assigned to the clock. However, until the client has synchronized to a server, or when the <tt>stratum</tt> for a NTP server is 0 (appears as 16 in the billboards), the status cannot be determined. As a help in debugging, the <tt>refid</tt> field is set to a four-character string called the kiss code. The current kiss codes are as as follows.</p>
|
||||
<p>Peer Kiss Codes</p>
|
||||
<p><tt>ACST</tt></p>
|
||||
<dl>
|
||||
<dd>The association belongs to a anycast server.
|
||||
<dt><tt>AUTH</tt>
|
||||
<dd>Server authentication failed. Please wait while the association is restarted.
|
||||
<dt><tt>AUTO</tt>
|
||||
<dd>Autokey sequence failed. Please wait while the association is restarted.
|
||||
<dt><tt>BCST</tt>
|
||||
<dd>The association belongs to a broadcast server.
|
||||
<dt><tt>CRYP</tt>
|
||||
<dd>Cryptographic authentication or identification failed. The details should be in the system log file or the <tt>cryptostats</tt> statistics file, if configured. No further messages will be sent to the server.
|
||||
<dt><tt>DENY</tt>
|
||||
<dd>Access denied by remote server. No further messages will be sent to the server.
|
||||
<dt><tt>DROP</tt>
|
||||
<dd>Lost peer in symmetric mode. Please wait while the association is restarted.
|
||||
<dt><tt>RSTR</tt>
|
||||
<dd>Access denied due to local policy. No further messages will be sent to the server.
|
||||
<dt><tt>INIT</tt>
|
||||
<dd>The association has not yet synchronized for the first time.
|
||||
<dt><tt>MCST</tt>
|
||||
<dd>The association belongs to a manycast server.
|
||||
<dt><tt>NKEY</tt>
|
||||
<dd>No key found. Either the key was never installed or is not trusted.
|
||||
<dt><tt>RATE</tt>
|
||||
<dd>Rate exceeded. The server has temporarily denied access because the client exceeded the rate threshold.
|
||||
<dt><tt>RMOT</tt>
|
||||
<dd>Somebody is tinkering with the association from a remote host running <tt>ntpdc</tt>. Not to worry unless some rascal has stolen your keys.
|
||||
<dt><tt>STEP</tt>
|
||||
<dd>A step change in system time has occurred, but the association has not yet resynchronized.
|
||||
</dl>
|
||||
<p>System Kiss Codes</p>
|
||||
<dl>
|
||||
<dt><tt>INIT</tt>
|
||||
<dd>The system clock has not yet synchronized for the first time.
|
||||
<dt><tt>STEP</tt>
|
||||
<dd>A step change in system time has occurred, but the system clock has not yet resynchronized.
|
||||
</dl>
|
||||
<p>The tattletale symbol at the left margin displays the synchronization status of each peer. The currently selected peer is marked <tt>*</tt>, while additional peers designated acceptable for synchronization are marked <tt>+</tt>. Peers marked <tt>*</tt> and <tt>+</tt> are included in the weighted average computation to set the local clock; the data produced by peers marked with other symbols are discarded. See the <tt>ntpq</tt> page for the meaning of these symbols.</p>
|
||||
<p>Additional details for each peer separately can be determined by the following procedure. First, use the <tt>as</tt> command to display an index of association identifiers, such as</p>
|
||||
<pre>
|
||||
ntpq> as
|
||||
ind assID status conf reach auth condition last_event cnt
|
||||
===========================================================
|
||||
1 50252 f314 yes yes ok outlyer reachable 1
|
||||
2 50253 f414 yes yes ok candidat reachable 1
|
||||
3 50254 f414 yes yes ok candidat reachable 1
|
||||
4 50255 f614 yes yes ok sys.peer reachable 1
|
||||
</pre>
|
||||
<p>Each line in this billboard is associated with the corresponding line in the <tt>pe</tt> billboard above. The <tt>assID</tt> shows the unique identifier for each mobilized association, while the <tt>status</tt> column shows the peer status word in hex, as defined in the NTP specification. Next, use the <tt>rv</tt> command and the respective <tt>assID</tt> identifier to display a detailed synopsis for the selected peer, such as</p>
|
||||
<pre>
|
||||
ntpq> rv 50253
|
||||
status=f414 reach, conf, auth, sel_candidat, 1 event, event_reach,
|
||||
srcadr=saicpc-isiepc2.cairn.net, srcport=123, dstadr=140.173.1.46,
|
||||
dstport=123, keyid=3816249004, stratum=2, precision=-27,
|
||||
rootdelay=10.925, rootdispersion=12.848, refid=pogo.udel.edu,
|
||||
reftime=bd11b225.133e1437 Sat, Jul 8 2000 13:59:01.075, delay=10.550,
|
||||
offset=-1.357, jitter=0.074, dispersion=1.444, reach=377, valid=7,
|
||||
hmode=1, pmode=1, hpoll=6, ppoll=7, leap=00, flash=00 ok,
|
||||
org=bd11b23c.01385836 Sat, Jul 8 2000 13:59:24.004,
|
||||
rec=bd11b23c.02dc8fb8 Sat, Jul 8 2000 13:59:24.011,
|
||||
xmt=bd11b21a.ac34c1a8 Sat, Jul 8 2000 13:58:50.672,
|
||||
filtdelay= 10.45 10.50 10.63 10.40 10.48 10.43 10.49 11.26,
|
||||
filtoffset= -1.18 -1.26 -1.26 -1.35 -1.35 -1.42 -1.54 -1.81,
|
||||
filtdisp= 0.51 1.47 2.46 3.45 4.40 5.34 6.33 7.28,
|
||||
hostname="miro.time.saic.com", signature=md5WithRSAEncryption, flags=0x83f01, initsequence=61, initkey=0x287b649c,
|
||||
timestamp=3172053041
|
||||
</pre>
|
||||
<p>A detailed explanation of the fields in this billboard are beyond the scope of this discussion; however, most variables defined in the NTP Version 3 specification RFC-1305 are available along with others defined for NTPv4 on the <tt>ntpq</tt> page. This particular example was chosen to illustrate probably the most complex configuration involving symmetric modes and public-key cryptography. As the result of debugging experience, the names and values of these variables may change from time to time.</p>
|
||||
<p>A useful indicator of miscellaneous problems is the <tt>flash</tt> value, which reveals the state of the various sanity tests on incoming packets. There are currently 12 bits, one for each test, numbered from the right, which is for test 1. If the test fails, the corresponding bit is set to one and zero otherwise. If any bit is set following each processing step, the packet is discarded. The meaning of each test is described on the <tt>ntpq</tt> page.</p>
|
||||
<p>The three lines identified as <tt>filtdelay</tt>, <tt>filtoffset</tt> and <tt>filtdisp</tt> reveal the roundtrip delay, clock offset and dispersion for each of the last eight measurement rounds, all in milliseconds. Note that the dispersion, which is an estimate of the error, increases as the age of the sample increases. From these data, it is usually possible to determine the incidence of severe packet loss, network congestion, and unstable local clock oscillators. There are no hard and fast rules here, since every case is unique; however, if one or more of the rounds show large values or change radically from one round to another, the network is probably congested or lossy.</p>
|
||||
<p>Once the daemon has set the local clock, it will continuously track the discrepancy between local time and NTP time and adjust the local clock accordingly. There are two components of this adjustment, time and frequency. These adjustments are automatically determined by the clock discipline algorithm, which functions as a hybrid phase/frequency feedback loop. The behavior of this algorithm is carefully controlled to minimize residual errors due to network jitter and frequency variations of the local clock hardware oscillator that normally occur in practice. However, when started for the first time, the algorithm may take some time to converge on the intrinsic frequency error of the host machine.</p>
|
||||
<p>The state of the local clock itself can be determined using the <tt>rv</tt> command (without the argument), such as</p>
|
||||
<pre>
|
||||
ntpq> rv
|
||||
status=0644 leap_none, sync_ntp, 4 events, event_peer/strat_chg,
|
||||
version="ntpd 4.0.99j4-r Fri Jul 7 23:38:17 GMT 2000 (1)",
|
||||
processor="i386", system="FreeBSD3.4-RELEASE", leap=00, stratum=2,
|
||||
precision=-27, rootdelay=0.552, rootdispersion=12.532, peer=50255,
|
||||
refid=pogo.udel.edu,
|
||||
reftime=bd11b220.ac89f40a Sat, Jul 8 2000 13:58:56.673, poll=6,
|
||||
clock=bd11b225.ee201472 Sat, Jul 8 2000 13:59:01.930, state=4,
|
||||
phase=0.179, frequency=44.298, jitter=0.022, stability=0.001,
|
||||
hostname="barnstable.udel.edu", signature=md5WithRSAEncryption,
|
||||
flags=0x80011, hostkey=3171372095, refresh=3172016539
|
||||
cert="grundoon.udel.edu grundoon.udel.edu 0x3 3233600829"
|
||||
cert="whimsy.udel.edu whimsy.udel.edu 0x5 3233682156"
|
||||
</pre>
|
||||
<p>An explanation about most of these variables is in the RFC-1305 specification. The most useful ones include <tt>clock</tt>, which shows when the clock was last adjusted, and <tt>reftime</tt>, which shows when the server clock of <tt>refid</tt> was last adjusted. The <tt>version</tt>, <tt>processor</tt> and <tt>system</tt> values are very helpful when included in bug reports. The mean millisecond time offset (<tt>phase</tt>) and deviation (<tt>jitter</tt>) monitor the clock quality, while the mean PPM frequency offset (<tt>frequency</tt>) and deviation (<tt>stability</tt>) monitor the clock stability and serve as a useful diagnostic tool. It has been the experience of NTP operators over the years that these data represent useful environment and hardware alarms. If the motherboard fan freezes up or some hardware bit sticks, the system clock is usually the first to notice it.</p>
|
||||
<p>Among the new variables added for NTP Version 4 are the <tt>hostname</tt>, <tt>signature</tt>, <tt>flags, hostkey, refresh </tt>and<tt> cert</tt>, which are used for the Autokey public-key cryptography described on the <a href="authopt.html">Authentication Options</a> page. The numeric values show the filestamps, in NTP seconds, that the associated media files were created. These are useful in diagnosing problems with cryptographic key consistency and ordering principles.</p>
|
||||
<p>When nothing seems to happen in the <tt>pe</tt> billboard after some minutes, there may be a network problem. One common network problem is an access controlled router on the path to the selected peer or an access controlled server using methods described on the <a href="accopt.html">Access Control Options</a> page. Another common problem is that the server is down or running in unsynchronized mode due to a local problem. Use the <tt>ntpq</tt> program to spy on the server variables in the same way you can spy on your own.</p>
|
||||
<p>Normally, the daemon will adjust the local clock in small steps in such a way that system and user programs are unaware of its operation. The adjustment process operates continuously unless the apparent clock error exceeds the step threshold for a period longer than the stepout threshold, which for most Internet paths is a very rare event. If the event is simply an outlyer due to an occasional network delay spike, the correction is simply discarded; however, if the apparent time error persists for longer than the stepout threshold of about 17 minutes, the local clock is stepped or slewed to the new value as directed. This behavior is designed to resist errors due to severely congested network paths, as well as errors due to confused radio clocks upon the epoch of a leap second.</p>
|
||||
<p>Unless using the <tt>iburst</tt> option, the client normally takes a few
|
||||
minutes to synchronize to a server. If the client time at startup happens
|
||||
to be more than 1000 s distant from NTP time, the daemon exits with a message
|
||||
to the system log directing the operator to manually set the time within 1000
|
||||
s and restart. If the time is less than 1000 s but more than 128 s distant,
|
||||
a step correction occurs and the daemon restarts automatically.</p>
|
||||
<p>When started for the first time and a frequency file is not present, the
|
||||
daemon enters a special mode in order to calibrate the frequency. This takes
|
||||
900 s during which the time is not disciplined. When calibration is complete,
|
||||
the daemon creates the frequency file and enters normal mode to amortize whatever
|
||||
residual offset remains.</p>
|
||||
<p>The <tt>ntpq</tt> commands <tt>pe</tt>, <tt>as</tt> and <tt>rv</tt> are
|
||||
normally sufficient to verify correct operation and assess nominal performance.
|
||||
The <a href="ntpq.html#pe"><tt>pe</tt></a> command displays a list showing
|
||||
the DNS name or IP address for each association along with selected status
|
||||
and statistics variables. The first character in each line is the tally code,
|
||||
which shows which associations are candidates to set the system clock and
|
||||
of these which one is the system peer. The encoding is shown in the <tt>select</tt>
|
||||
field of the <a href="decode.html#peer">peer status word</a>.</p>
|
||||
<p>The <a href="ntpq.html#as"><tt>as</tt></a> command displays a list of associations and association identifiers. Note the <tt>condition</tt> column, which reflects the tally code. The <a href="ntpq.html#pe"><tt>rv</tt></a> command displays the <a href="ntpq.html#system">system variables</a> billboard, including the <a href="decode.html#sys">system status word</a>. The <a href="ntpq.html#rv"><tt>rv <i>assocID</i></tt></a> command, where <tt><i>assocID</i></tt> is the association ID, displays the <a href="ntpq.html#peer">peer variables</a> billboard, including the <a href="decode.html#peer">peer status word</a>. Note that, except for explicit calendar dates, times are in milliseconds and frequencies are in parts-per-million (PPM).</p>
|
||||
<p>A detailed explanation of the system, peer and clock variables in the billboards is beyond the scope of this page; however, a comprehensive explanation for each one is in the NTPv4 protocol specification. The following observations will be useful in debugging and monitoring.</p>
|
||||
<ol>
|
||||
<li>The server has successfully synchronized to its sources if the <tt>leap</tt> peer
|
||||
variable has value other than 3 (11b) The client has successfully synchronized
|
||||
to the server when the <tt>leap</tt> system variable has value other than
|
||||
3.
|
||||
<li>The <tt>reach</tt> peer variable is an 8-bit shift register displayed in octal format. When a valid packet is received, the rightmost bit is lit. When a packet is sent, the register is shifted left one bit with 0 replacing the rightmost bit. If the <tt>reach</tt> value is nonzero, the server is reachable; otherwise, it is unreachable. Note that, even if all servers become unreachable, the system continues to show valid time to dependent applications.
|
||||
<li>A useful indicator of miscellaneous problems is the <tt>flash</tt> peer variable, which shows the result of 13 sanity tests. It contains the <a href="decode.html#flash">flash status word</a> bits, commonly called flashers, which displays the current errors for the association. These bits should all be zero for a valid server.
|
||||
<li>The three peer variables <tt>filtdelay</tt>, <tt>filtoffset</tt> and <tt>filtdisp</tt> show the delay, offset and jitter statistics for each of the last eight measurement rounds. These statistics and their trends are valuable performance indicators for the server, client and the network. For instance, large fluctuations in delay and jitter suggest network congestion. Missing clock filter stages suggest packet losses in the network.
|
||||
<li>The synchronization distance, defined as one-half the delay plus the dispersion, represents the maximum error statistic. The jitter represents the expected error statistic. The maximum error and expected error calculated from the peer variables represents the quality metric for the server. The maximum error and expected error calculated from the system variables represents the quality metric for the client. If the root synchronization distance for any server exceeds 1.5 s, called the select threshold, the server is considered invalid.</ol>
|
||||
<h4>Large Frequency Errors</h4>
|
||||
<p>The frequency tolerance of computer clock oscillators can vary widely, which can put a strain on the daemon's ability to compensate for the intrinsic frequency error. While the daemon can handle frequency errors up to 500 parts-per-million (PPM), or 43 seconds per day, values much above 100 PPM reduce the headroom and increase the time to learn the particular value and record it in the <tt>ntp.drift</tt> file. In extreme cases before the particular oscillator frequency error has been determined, the residual system time offsets can sweep from one extreme to the other of the 128-ms tracking window only for the behavior to repeat at 900-s intervals until the measurements have converged.</p>
|
||||
<p>In order to determine if excessive frequency error is a problem, observe the nominal <tt>filtoffset</tt> values for a number of rounds and divide by the poll interval. If the result is something approaching 500 PPM, there is a good chance that NTP will not work properly until the frequency error is reduced by some means. A common cause is the hardware time-of-year (TOY) clock chip, which must be disabled when NTP disciplines the software clock. For some systems this can be done using the <tt><a href="tickadj.html">tickadj</a></tt> utility and the <tt>-s</tt> command line argument. For other systems this can be done using a command in the system startup file.</p>
|
||||
<p>If the TOY chip is not the cause, the problem may be that the hardware clock frequency may simply be too slow or two fast. In some systems this might require tweaking a trimmer capacitor on the motherboard. For other systems the clock frequency can be adjusted in increments of 100 PPM using the <tt>tickadj</tt> utility and the <tt>-t</tt> command line argument. Note that the <tt>tickadj</tt> alters certain kernel variables and, while the utility attempts to figure out an acceptable way to do this, there are many cases where <tt>tickadj</tt> is incompatible with a running kernel.</p>
|
||||
<p>The frequency tolerance of computer clock oscillators varies widely, sometimes above 500 PPM. While the daemon can handle frequency errors up to 500 PPM, or 43 seconds per day, values much above 100 PPM reduce the headroom, especially at the lowest poll intervals. To determine the particular oscillator frequency, start <tt>ntpd</tt> using the <tt>noselect</tt> option with the <tt>server</tt> configuration command.</p>
|
||||
<p>Record the time of day and offset displayed by the <tt>ntpq</tt> <a href="ntpq.html#pe"><tt>pe</tt></a> command. Wait for an hour or so and record the time of day and offset. Calculate the frequency as the offset difference divided by the time difference. If the frequency is much above 100 PPM, the <a href="tickadj.html">tickadj</a> program might be useful to adjust the kernel clock frequency below that value. For systems that do not support this program, this might be one using a command in the system startup file.</p>
|
||||
<h4>Access Controls</h4>
|
||||
<p>Provisions are included in <tt>ntpd</tt> for access controls which deflect unwanted traffic from selected hosts or networks. The controls described on the <a href="accopt.html">Access Control Options</a> include detailed packet filter operations based on source address and address mask. Normally, filtered packets are dropped without notice other than to increment tally counters. However, the server can be configured to send a "kiss-o'-death" (KOD) packet to the client either when explicitly configured or when cryptographic authentication fails for some reason. The client association is permanently disabled, the access denied bit (TEST4) is set in the flash variable and a message is sent to the system log.</p>
|
||||
<p>The access control provisions include a limit on the packet rate from a host or network. If an incoming packet exceeds the limit, it is dropped and a KOD sent to the source. If this occurs after the client association has synchronized, the association is not disabled, but a message is sent to the system log. See the <a href="accopt.html">Access Control Options</a> page for further informatin.</p>
|
||||
<p>The access control provisions include a limit on the packet rate from a
|
||||
host or network. If an incoming packet exceeds the limit, it is dropped and
|
||||
a KOD sent to the source. If this occurs after the client association has
|
||||
synchronized, the association is not disabled, but a message is sent to the
|
||||
system log. See the <a href="accopt.html">Access Control Options</a> page
|
||||
for further information.</p>
|
||||
<h4>Large Delay Variations</h4>
|
||||
<p>In some reported scenarios an access line may show low to moderate network delays during some period of the day and moderate to high delays during other periods. Often the delay on one direction of transmission dominates, which can result in large time offset errors, sometimes in the range up to a few seconds. It is not usually convenient to run <tt>ntpd</tt> throughout the day in such scenarios, since this could result in several time steps, especially if the condition persists for greater than the stepout threshold.</p>
|
||||
<p>Specific provisions have been built into <tt>ntpd</tt> to cope with these problems. The scheme is called "huff-'n-puff and is described on the <a href="miscopt.html">Miscellaneous Options</a> page. An alternative approach in such scenarios is first to calibrate the local clock frequency error by running <tt>ntpd</tt> in continuous mode during the quiet interval and let it write the frequency to the <tt>ntp.drift</tt> file. Then, run <tt>ntpd -q</tt> from a cron job each day at some time in the quiet interval. In systems with the nanokernel or microkernel performance enhancements, including Solaris, Tru64, Linux and FreeBSD, the kernel continuously disciplines the frequency so that the residual correction produced by <tt>ntpd</tt> is usually less than a few milliseconds.</p>
|
||||
@ -159,9 +83,9 @@ cert="whimsy.udel.edu whimsy.udel.edu 0x5 3233682156"
|
||||
<li>Verify the <tt>/etc/services</tt> file host machine is configured to accept UDP packets on the NTP port 123. NTP is specifically designed to use UDP and does not respond to TCP.
|
||||
<li>Check the system log for <tt>ntpd</tt> messages about configuration errors, name-lookup failures or initialization problems. Common system log messages are summarized on the <a href="msyslog.html"><tt>ntpd</tt> System Log Messages</a> page. Check to be sure that only one copy of <tt>ntpd</tt> is running.
|
||||
<li>Verify using <tt>ping</tt> or other utility that packets actually do make the round trip between the client and server. Verify using <tt>nslookup</tt> or other utility that the DNS server names do exist and resolve to valid Internet addresses.
|
||||
<li>Check that the remote NTP server is up and running. The usual evidence that it is not is a <tt>Connection refused</tt> message.
|
||||
<li>Check that the remote NTP server is up and running. The usual evidence that it is not is a <tt>Connection refused</tt> message.
|
||||
<li>Using the <tt>ntpdc</tt> program, verify that the packets received and packets sent counters are incrementing. If the sent counter does not increment and the configuration file includes configured servers, something may be wrong in the host network or interface configuration. If this counter does increment, but the received counter does not increment, something may be wrong in the network or the server NTP daemon may not be running or the server itself may be down or not responding.
|
||||
<li>If both the sent and received counters do increment, but the <tt>reach</tt> values in the <tt>pe</tt> billboard with <tt>ntpq</tt> continues to show zero, received packets are probably being discarded for some reason. If this is the case, the cause should be evident from the <tt>flash</tt> variable as discussed above and on the <tt>ntpq</tt> page. It could be that the server has disabled access for the client address, in which case the refid field in the <tt>ntpq pe</tt> billboard will show a kiss code. See earlier on this page for a list of kiss codes and their meaning.
|
||||
<li>If both the sent and received counters do increment, but the <tt>reach</tt> values in the <tt>pe</tt> billboard with <tt>ntpq</tt> continues to show zero, received packets are probably being discarded for some reason. If this is the case, the cause should be evident from the <tt>flash</tt> variable as discussed above and on the <tt>ntpq</tt> page. It could be that the server has disabled access for the client address, in which case the <tt>refid</tt> field in the <tt>ntpq pe</tt> billboard will show a kiss code. See earlier on this page for a list of kiss codes and their meaning.
|
||||
<li>If the <tt>reach</tt> values in the <tt>pe</tt> billboard show the servers are alive and responding, note the tattletale symbols at the left margin, which indicate the status of each server resulting from the various grooming and mitigation algorithms. The interpretation of these symbols is discussed on the <tt>ntpq</tt> page. After a few minutes of operation, one or another of the reachable server candidates should show a * tattletale symbol. If this doesn't happen, the intersection algorithm, which classifies the servers as truechimers or falsetickers, may be unable to find a majority of truechimers among the server population.
|
||||
<li>If all else fails, see the FAQ and/or the discussion and briefings at the NTP Project page.
|
||||
</ol>
|
||||
|
879
html/decode.html
Normal file
879
html/decode.html
Normal file
@ -0,0 +1,879 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>ntpd Event Messages and Status Words</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h3>Event Messages and Status Words</h3>
|
||||
<img src="pic/alice47.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
|
||||
<p>Caterpillar knows all the error codes, which is more than most of us do.</p>
|
||||
|
||||
<p>Last update:
|
||||
<!-- #BeginDate format:En2m -->30-Apr-2010 23:13<!-- #EndDate -->
|
||||
UTC</p>
|
||||
<br clear="left">
|
||||
|
||||
<h4>Related Links</h4>
|
||||
|
||||
<p><script type="text/javascript" language="javascript" src="scripts/install.txt"></script></p>
|
||||
|
||||
<h4>Table of Contents</h4>
|
||||
|
||||
<ul>
|
||||
<li class="inline"><a href="#intro">Introduction</a></li>
|
||||
<li class="inline"><a href="#sys">System Status Word</a></li>
|
||||
<li class="inline"><a href="#peer">Peer Status Word</a></li>
|
||||
<li class="inline"><a href="#clock">Clock Status Word</a></li>
|
||||
<li class="inline"><a href="#flash">Flash Status Word</a></li>
|
||||
<li class="inline"><a href="#kiss">Kiss Codes</a></li>
|
||||
<li class="inline"><a href="#crypto">Crypto Messages</a></li>
|
||||
</ul>
|
||||
|
||||
<hr>
|
||||
|
||||
<h4 id="intro">Introduction</h4>
|
||||
|
||||
<p>This page lists the status words, event messages and error codes used for <tt>ntpd</tt> reporting and monitoring. Status words are used to display the current status of the running program. There is one system status word and a peer status word for each association. There is a clock status word for each association that supports a reference clock. There is a flash code for each association which shows errors found in the last packet received (pkt) and during protocol processing (peer). These are commonly viewed using the <tt>ntpq</tt> program.</p>
|
||||
|
||||
<p>Significant changes in program state are reported as events. There is one
|
||||
set of system events and a set of peer events for each association. In addition,
|
||||
there is a set of clock events for each association that supports a reference
|
||||
clock. Events are normally reported to the <tt>protostats</tt> monitoring file
|
||||
and optionally to the system log. In addition, if the trap facility is configured,
|
||||
events can be reported to a remote program that can page an administrator.</p>
|
||||
|
||||
<p>This page also includes a description of the error messages produced by the Autokey protocol. These messages are normally sent to the <tt>cryptostats</tt> monitoring file.</p>
|
||||
|
||||
<p>In the following tables the Code Field is the status or event code assigned and the Message Field a short string used for display and event reporting. The Description field contains a longer explanation of the status or event. Some messages include additional information useful for error diagnosis and performance assessment.</p>
|
||||
|
||||
<h4 id="sys">System Status Word</h4>
|
||||
|
||||
<p>The system status word consists of four fields LI (0-1), Source (2-7), Count (8-11) and Code (12-15). It is reported in the first line of the <tt>rv</tt> display produced by the <tt>ntpq</tt> program.</p>
|
||||
|
||||
<table width="50%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td><div align="center">Leap</div></td>
|
||||
<td><div align="center">Source</div></td>
|
||||
<td><div align="center">Count</div></td>
|
||||
<td><div align="center">Code</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Leap Field displays the system leap indicator bits coded as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0</tt></td>
|
||||
<td><tt>leap_none</tt></td>
|
||||
<td>normal synchronized state</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>1</tt></td>
|
||||
<td><tt>leap_add_sec</tt></td>
|
||||
<td>insert second after 23:59:59 of the current day</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>2</tt></td>
|
||||
<td><tt>leap_del_sec</tt></td>
|
||||
<td>delete second 23:59:59 of the current day</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>3</tt></td>
|
||||
<td><tt>leap_alarm</tt></td>
|
||||
<td>never synchronized</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Source Field displays the current synchronization source coded as follows:.</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0</tt></td>
|
||||
<td><tt>sync_unspec</tt></td>
|
||||
<td>not yet synchronized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>1</tt></td>
|
||||
<td><tt>sync_pps</tt></td>
|
||||
<td>pulse-per-second signal (Cs, Ru, GPS, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>2</tt></td>
|
||||
<td><tt>sync_lf_radio</tt></td>
|
||||
<td>VLF/LF radio (WWVB, DCF77, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>3</tt></td>
|
||||
<td><tt>sync_hf_radio</tt></td>
|
||||
<td>MF/HF radio (WWV, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>4</tt></td>
|
||||
<td><tt>sync_uhf_radio</tt></td>
|
||||
<td>VHF/UHF radio/satellite (GPS, Galileo, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>5</tt></td>
|
||||
<td><tt>sync_local</tt></td>
|
||||
<td>local timecode (IRIG, LOCAL driver, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>6</tt></td>
|
||||
<td><tt>sync_ntp</tt></td>
|
||||
<td>NTP</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>7</tt></td>
|
||||
<td><tt>sync_other</tt></td>
|
||||
<td>other (IEEE 1588, openntp, crony, etc.)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>8</tt></td>
|
||||
<td><tt>sync_wristwatch</tt></td>
|
||||
<td>eyeball and wristwatch</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>9</tt></td>
|
||||
<td><tt>sync_telephone</tt></td>
|
||||
<td>telephone modem (ACTS, PTB, etc.)</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Count Field displays the number of events since the last time the code changed. Upon reaching 15, subsequent events with the same code are ignored.</p>
|
||||
|
||||
<p>The Event Field displays the most recent event message coded as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>00</tt></td>
|
||||
<td><tt>unspecified</tt></td>
|
||||
<td>unspecified</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>01</tt></td>
|
||||
<td><tt>freq_not_set</tt></td>
|
||||
<td>frequency file not available</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>02</tt></td>
|
||||
<td><tt>freq_set</tt></td>
|
||||
<td>frequency set from frequency file</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>03</tt></td>
|
||||
<td><tt>spike_detect</tt></td>
|
||||
<td>spike detected</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>04</tt></td>
|
||||
<td><tt>freq_mode</tt></td>
|
||||
<td>initial frequency training mode</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>05</tt></td>
|
||||
<td><tt>clock_sync</tt></td>
|
||||
<td>clock synchronized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>06</tt></td>
|
||||
<td><tt>restart</tt></td>
|
||||
<td>program restart</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>07</tt></td>
|
||||
<td><tt>panic_stop</tt></td>
|
||||
<td>clock error more than 600 s</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>08</tt></td>
|
||||
<td><tt>no_system_peer</tt></td>
|
||||
<td>no system peer</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>09</tt></td>
|
||||
<td><tt>leap_armed</tt></td>
|
||||
<td>leap second armed from file or Autokey</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0a</tt></td>
|
||||
<td><tt>leap_disarmed</tt></td>
|
||||
<td>leap second disarmed</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0b</tt></td>
|
||||
<td><tt>leap_event</tt></td>
|
||||
<td>leap event</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0c</tt></td>
|
||||
<td><tt>clock_step</tt></td>
|
||||
<td>clock stepped</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0d</tt></td>
|
||||
<td><tt>kern</tt></td>
|
||||
<td>kernel information message</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0e</tt></td>
|
||||
<td><tt>TAI...</tt></td>
|
||||
<td>leapsecond values update from file</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0f</tt></td>
|
||||
<td><tt>stale leapsecond values</tt></td>
|
||||
<td>new NIST leapseconds file needed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt>10</tt></td>
|
||||
<td><tt>clockhop</tt></td>
|
||||
<td>spurious clock hop suppressed</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<h4 id="peer">Peer Status Word</h4>
|
||||
|
||||
<p>The peer status word consists of four fields: Status (0-4), Select (5-7), Count (8-11) and Code (12-15). It is reported in the first line of the <tt>rv <i>associd</i></tt> display produced by the <tt>ntpq</tt> program.</p>
|
||||
|
||||
<table width="50%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td><div align="center">Status</div></td>
|
||||
<td><div align="center">Select</div></td>
|
||||
<td><div align="center">Count</div></td>
|
||||
<td><div align="center">Code</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Status Field displays the peer status code bits in hexadecimal; each bit is an independent flag. (Note this field is 5 bits wide, and combines with the the 3-bit-wide Select Field to create the first full byte of the peer status word.) The meaning of each bit in the Status Field is listed in the following table:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>08</tt></td>
|
||||
<td><tt>bcst</tt></td>
|
||||
<td>broadcast association</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>10</tt></td>
|
||||
<td><tt>reach</tt></td>
|
||||
<td>host reachable</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>20</tt></td>
|
||||
<td><tt>authenb</tt></td>
|
||||
<td>authentication enabled</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>40</tt></td>
|
||||
<td><tt>auth</tt></td>
|
||||
<td>authentication ok</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>80</tt></td>
|
||||
<td><tt>config</tt></td>
|
||||
<td>persistent association</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Select Field displays the current selection status. (The T Field in the following table gives the corresponding tally codes used in the <tt>ntpq peers</tt> display.) The values are coded as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>T</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0</tt></td>
|
||||
<td><tt>sel_reject</tt></td>
|
||||
<td> </td>
|
||||
<td>discarded as not valid (TEST10-TEST13)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>1</tt></td>
|
||||
<td><tt>sel_falsetick</tt></td>
|
||||
<td><tt>x</tt></td>
|
||||
<td>discarded by intersection algorithm</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>2</tt></td>
|
||||
<td><tt>sel_excess</tt></td>
|
||||
<td><tt>.</tt></td>
|
||||
<td>discarded by table overflow (not used)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>3</tt></td>
|
||||
<td><tt>sel_outlyer</tt></td>
|
||||
<td><tt>-</tt></td>
|
||||
<td>discarded by the cluster algorithm</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>4</tt></td>
|
||||
<td><tt>sel_candidate</tt></td>
|
||||
<td><tt>+</tt></td>
|
||||
<td>included by the combine algorithm</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>5</tt></td>
|
||||
<td><tt>sel_backup</tt></td>
|
||||
<td><tt>#</tt></td>
|
||||
<td>backup (more than <tt>tos maxclock</tt> sources)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>6</tt></td>
|
||||
<td><tt>sel_sys.peer</tt></td>
|
||||
<td><tt>*</tt></td>
|
||||
<td>system peer</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>7</tt></td>
|
||||
<td><tt>sel_pps.peer</tt></td>
|
||||
<td><tt>o</tt></td>
|
||||
<td>PPS peer (when the prefer peer is valid)</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Count Field displays the number of events since the last time the code changed. Upon reaching 15, subsequent events with the same code are ignored. </p>
|
||||
|
||||
<p>The Event Field displays the most recent event message coded as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>01</tt></td>
|
||||
<td><tt>mobilize</tt></td>
|
||||
<td>association mobilized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>02</tt></td>
|
||||
<td><tt>demobilize</tt></td>
|
||||
<td>association demobilized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>03</tt></td>
|
||||
<td><tt>unreachable</tt></td>
|
||||
<td>server unreachable</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>04</tt></td>
|
||||
<td><tt>reachable</tt></td>
|
||||
<td>server reachable</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>05</tt></td>
|
||||
<td><tt>restart</tt></td>
|
||||
<td>association restart</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>06</tt></td>
|
||||
<td><tt>no_reply</tt></td>
|
||||
<td>no server found (<tt>ntpdate</tt> mode)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>07</tt></td>
|
||||
<td><tt>rate_exceeded</tt></td>
|
||||
<td>rate exceeded (kiss code <tt>RATE</tt>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>08</tt></td>
|
||||
<td><tt>access_denied</tt></td>
|
||||
<td>access denied (kiss code <tt>DENY</tt>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>09</tt></td>
|
||||
<td><tt>leap_armed</tt></td>
|
||||
<td>leap armed from server LI code</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0a</tt></td>
|
||||
<td><tt>sys_peer</tt></td>
|
||||
<td>become system peer</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0b</tt></td>
|
||||
<td><tt>clock_event</tt></td>
|
||||
<td>see clock status word</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0c</tt></td>
|
||||
<td><tt>bad_auth</tt></td>
|
||||
<td>authentication failure</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0d</tt></td>
|
||||
<td><tt>popcorn</tt></td>
|
||||
<td>popcorn spike suppressor</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0e</tt></td>
|
||||
<td><tt>interleave_mode</tt></td>
|
||||
<td>entering interleave mode</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0f</tt></td>
|
||||
<td><tt>interleave_error</tt></td>
|
||||
<td>interleave error (recovered)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>10</tt></td>
|
||||
<td><tt>TAI...</tt></td>
|
||||
<td>leapsecond values update from server</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<h4 id="clock">Clock Status Word</h4>
|
||||
|
||||
<p>The clock status word consists of four fields: Unused (0-7), Count (8-11) and Code (12-15). It is reported in the first line of the <tt>clockvar <i>associd</i></tt> display produced by the <tt>ntpq</tt> program.</p>
|
||||
<table width="50%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td><div align="center">Unused</div></td>
|
||||
<td><div align="center">Count</div></td>
|
||||
<td><div align="center">Code</div></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>The Count Field displays the number of events since the last <tt>lockvar</tt> command, while the Event Field displays the most recent event message coded as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>00</tt></td>
|
||||
<td><tt>clk_unspe</tt></td>
|
||||
<td>nominal</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>01</tt></td>
|
||||
<td><tt>clk_noreply</tt></td>
|
||||
<td>no reply to poll</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>02</tt></td>
|
||||
<td><tt>clk_badformat</tt></td>
|
||||
<td>bad timecode format</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>03</tt></td>
|
||||
<td><tt>clk_fault</tt></td>
|
||||
<td>hardware or software fault</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>04</tt></td>
|
||||
<td><tt>clk_bad_signal</tt></td>
|
||||
<td>signal loss</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>05</tt></td>
|
||||
<td><tt>clk_bad_date</tt></td>
|
||||
<td>bad date format</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>06</tt></td>
|
||||
<td><tt>clk_bad_time</tt></td>
|
||||
<td>bad time format</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p>When the clock driver sets the code to a new value, a <tt>clock_alarm</tt> (11) peer event is reported.</p>
|
||||
|
||||
<h4 id="flash">Flash Status Word</h4>
|
||||
|
||||
<p>The flash status word is displayed by the <tt>ntpq</tt> program <tt>rv</tt> command. It consists of a number of bits coded in hexadecimal as follows:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Tag</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0001</tt></td>
|
||||
<td>TEST1</td>
|
||||
<td><tt>pkt_dup</tt></td>
|
||||
<td>duplicate packet</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0002</tt></td>
|
||||
<td>TEST2</td>
|
||||
<td><tt>pkt_bogus</tt></td>
|
||||
<td>bogus packet</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0004</tt></td>
|
||||
<td>TEST3</td>
|
||||
<td><tt>pkt_unsync</tt></td>
|
||||
<td>protocol unsynchronized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0008</tt></td>
|
||||
<td>TEST4</td>
|
||||
<td><tt>pkt_denied</tt></td>
|
||||
<td>access denied</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0010</tt></td>
|
||||
<td>TEST5</td>
|
||||
<td><tt>pkt_auth</tt></td>
|
||||
<td>bad authentication</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0020</tt></td>
|
||||
<td>TEST6</td>
|
||||
<td><tt>pkt_stratum</tt></td>
|
||||
<td>bad synch or stratum</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0040</tt></td>
|
||||
<td>TEST7</td>
|
||||
<td><tt>pkt_header</tt></td>
|
||||
<td>bad header</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0080</tt></td>
|
||||
<td>TEST8</td>
|
||||
<td><tt>pkt_autokey</tt></td>
|
||||
<td>bad autokey</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0100</tt></td>
|
||||
<td>TEST9</td>
|
||||
<td><tt>pkt_crypto</tt></td>
|
||||
<td>bad crypto</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0200</tt></td>
|
||||
<td>TEST10</td>
|
||||
<td><tt>peer_stratum</tt></td>
|
||||
<td>peer bad synch or stratum</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0400</tt></td>
|
||||
<td>TEST11</td>
|
||||
<td><tt>peer_dist</tt></td>
|
||||
<td>peer distance exceeded</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0800</tt></td>
|
||||
<td>TEST12</td>
|
||||
<td><tt>peer_loop</tt></td>
|
||||
<td>peer synchronization loop</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>1000</tt></td>
|
||||
<td>TEST13</td>
|
||||
<td><tt>peer_unreach</tt></td>
|
||||
<td>peer unreachable</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<h4 id="kiss">Kiss Codes</h4>
|
||||
|
||||
<p>Kiss codes are used in kiss-o'-death (koD) packets, billboard displays and log messages. They consist of a string of four zero-padded ASCII charactes. In practice they are informal and tend to change with time and implementation. Some of these codes can appear in the reference identifier field in <tt>ntpq</tt> billboards. Following is the current list:</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>ACST</tt></td>
|
||||
<td>manycast server</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>AUTH</tt></td>
|
||||
<td>authentication error</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>AUTO</tt></td>
|
||||
<td>Autokey sequence error</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>BCST</tt></td>
|
||||
<td>broadcast server</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>CRYPT</tt></td>
|
||||
<td>Autokey protocol error</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>DENY</tt></td>
|
||||
<td>access denied by server</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>INIT</tt></td>
|
||||
<td>association initialized</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>MCST</tt></td>
|
||||
<td>multicast server</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>RATE</tt></td>
|
||||
<td>rate exceeded</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>TIME</tt></td>
|
||||
<td>association timeout</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>STEP</tt></td>
|
||||
<td>step time change</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<h4 id="crypto">Crypto Messages</h4>
|
||||
|
||||
<p>These messages are sent to the <tt>cryptostats</tt> file when an error is detected in the Autokey protocol.</p>
|
||||
|
||||
<table width="100%" border="1" cellspacing="2" cellpadding="2">
|
||||
|
||||
<tr>
|
||||
<td>Code</td>
|
||||
<td>Message</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>01</tt></td>
|
||||
<td><tt>bad_format</tt></td>
|
||||
<td>bad extension field format or length</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>02</tt></td>
|
||||
<td><tt>bad_timestamp</tt></td>
|
||||
<td>bad timestamp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>03</tt></td>
|
||||
<td><tt>bad_filestamp</tt></td>
|
||||
<td>bad filestamp</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>04</tt></td>
|
||||
<td><tt>bad_public_key</tt></td>
|
||||
<td>bad or missing public key</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>05</tt></td>
|
||||
<td><tt>bad_digest</tt></td>
|
||||
<td>unsupported digest type</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>06</tt></td>
|
||||
<td><tt>bad_identity</tt></td>
|
||||
<td>unsupported identity type</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>07</tt></td>
|
||||
<td><tt>bad_siglength</tt></td>
|
||||
<td>bad signature length</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>08</tt></td>
|
||||
<td><tt>bad signature</tt></td>
|
||||
<td>extension field signature not verified</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>09</tt></td>
|
||||
<td><tt>cert_not_verified</tt></td>
|
||||
<td>certificate signature not verified</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0a</tt></td>
|
||||
<td><tt>cert_expired</tt></td>
|
||||
<td>host certificate expired</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0b</tt></td>
|
||||
<td><tt>bad_cookie</tt></td>
|
||||
<td>bad or missing cookie</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0c</tt></td>
|
||||
<td><tt>bad_leapseconds</tt></td>
|
||||
<td>bad or missing leapseconds values</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0d</tt></td>
|
||||
<td><tt>cert_missing</tt></td>
|
||||
<td>bad or missing certificate</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0e</tt></td>
|
||||
<td><tt>bad_group_key</tt></td>
|
||||
<td>bad or missing group key</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><tt>0f</tt></td>
|
||||
<td><tt>proto_error</tt></td>
|
||||
<td>protocol error</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
BIN
html/description_files/description.jpg
Normal file
BIN
html/description_files/description.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
@ -17,24 +17,9 @@
|
||||
Reference ID: <tt>LCL</tt><br>
|
||||
Driver ID: <tt>LOCAL</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver is intended for use in an isolated network where no external source of synchronization such as a radio clock or modem is available. It allows a designated time server to act as a primary server to provide synchronization to other clients on the network. Pick a machine that has a good clock oscillator (Digital machines are good, Sun machines are not) and configure it with this driver. Set the clock using the best means available, like eyeball-and-wristwatch. Then, point all the other machines at this one or use broadcast (not multicast) mode to distribute time.</p>
|
||||
<p>Another application for this driver is if a particular server clock is to be used as the clock of last resort when all other normal synchronization sources have gone away. This is especially useful if that server has an ovenized oscillator. For this you would configure this driver at a stratum greater than any other likely sources of time (say 3 or 4) to prevent the server taking over when legitimate sources are still available.</p>
|
||||
<p>A third application for this driver is when an external discipline source is available, such as the NIST <tt>lockclock</tt> program, which synchronizes the local clock via a telephone modem and the NIST Automated Computer Time Service (ACTS), or the Digital Time Synchronization Service (DTSS), which runs on DCE machines. In this case the stratum should be set at zero, indicating a bona fide stratum-1 source. In the case of DTSS, the local clock can have a rather large jitter, depending on the interval between corrections and the intrinsic frequency error of the clock oscillator. In extreme cases, this can cause clients to exceed the 128-ms slew window and drop off the NTP subnet.</p>
|
||||
<p>In the case where a NTP time server is synchronized to some device or protocol that is not external to the NTP daemon itself, some means should be provided to pass such things as error and health values to the NTP daemon for dissemination to its clients. If this is not done, there is a very real danger that the device or protocol could fail and with no means to tell NTP clients of the mishap. When ordinary Unix system calls like <tt>adjtime()</tt> are used to discipline the kernel clock, there is no obvious way this can be done without modifying the code for each case. However, when a modified kernel with the <tt>ntp_adjtime()</tt> system call is available, that routine can be used for the same purpose as the <tt>adjtime()</tt> routine and in addition provided with the estimated error, maximum error, and leap-indicator values. This is the preferred way to synchronize the kernel clock and pass information to the NTP clients.</p>
|
||||
<p>In the default mode the behavior of the clock selection algorithm is modified when this driver is in use. The algorithm is designed so that this driver will never be selected unless no other discipline source is available. This can be overridden with the <tt>prefer</tt> keyword of the <tt>server</tt> configuration command, in which case only this driver will be selected for synchronization and all other discipline sources will be ignored. This behavior is intended for use when an external discipline source controls the system clock. See the <a href="../prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page for a detailed description of the exact behavior.</p>
|
||||
<p>The stratum for this driver is set at 5 by default, but can be changed by the <tt>fudge</tt> configuration command and/or the <tt>ntpdc</tt> utility. The reference ID is <tt>LCL</tt> by default, but can be changed using the same mechanisms. <b>*NEVER*</b> configure this driver to operate at a stratum which might possibly disrupt a client with access to a bona fide primary server, unless the local clock oscillator is reliably disciplined by another source. <b>*NEVER NEVER*</b> configure a server which might devolve to an undisciplined local clock to use multicast mode.</p>
|
||||
<p>This driver provides a mechanism to trim the local clock in both time and frequency, as well as a way to manipulate the leap bits. The <tt>fudge time1</tt> parameter adjusts the time (in seconds) and the <tt>fudge time2</tt> parameter adjusts the frequency (in parts per million). Both parameters are additive and operate only once; that is, each command (as from <tt>ntpdc</tt>) adds signed increments in time or frequency to the nominal local clock time and frequency.</p>
|
||||
<h4>Operation with an External Reference Source</h4>
|
||||
<p>There are special provisions for this driver to operate in conjunction with an external reference source, such as the <tt>LOCKCLOCK</tt> scheme used by the NIST time servers. In such schemes the system clock is disciplined by a source external to NTP, in the <tt>LOCKCLOCK</tt> case an ACTS telephone modem. To support <tt>LOCKCLOCK</tt> the NTP distribution should be built with the <tt>--enable-nist</tt> parameter in the configuration phase of the build procedure. This changes the system behavior as follows:</p>
|
||||
<ol>
|
||||
<li>The system clock is not disciplined in any way other than to call the <tt>ntp_adjtime()</tt> system call to obtain the kernel leap code, which becomes the driver leap code and. If the kernel leap code is 11 (not synchronized), the driver stratum is infinity; otherwise the stratum is set by the <tt>stratum</tt> subcommand on the <tt>fudge</tt> command applying to the driver.
|
||||
<li>The NTP algorithms operate in the normal fashion with this driver and possibly other drivers and servers; however, the local clock driver as the <tt>prefer</tt> peer will always be selected, even if declared falseticker by the selection algorithm or fails to survive the clustering algorithm.
|
||||
<li>If the driver leap code is 11, the system leap code is 11, system stratum infinity and system reference identifier <tt>DOWN</tt>. This provides a definitive status condition to dependent clients.
|
||||
</ol>
|
||||
<p>The local clock driver should be configured something like this:</p>
|
||||
<p><tt>server 127.127.1.1 prefer</tt></p>
|
||||
<p><tt>fudge 127.127.1.1 stratum 0 refid NIST</tt></p>
|
||||
<p>The <tt>prefer</tt> keyword forces the driver to discipline the clock, even if other servers are configured and running correctly. This is convenient when a number of servers watch each other for monitoring and statistics gathering. In particular, the <tt>peerstats</tt> data and <tt>sysstats</tt> data can be collected at each server, aggregated for daily or weekly reports and sent by electric mail to a monitoring site. In addition, the full suite of cryptographic authentication algorithms is avialable to other servers and dependent clients.</p>
|
||||
<p>Not: This driver is not recommended for new installations. A much more flexible replacement is available in the form of orphan mode described on the <a href="../assoc.html">Association Management page</a>.</p>
|
||||
<p>This driver is intended for use in an isolated network where no external source of synchronization such as a radio clock or modem is available. It allows a designated time server to act as a primary server to provide synchronization to other clients on the network. Pick a machine that has a good clock oscillator (Digital machines are good, Sun machines are not) and configure it with this driver. Set the clock using the best means available, like eyeball-and-wristwatch. Then, point all the other machines at this one or use broadcast mode to distribute time.</p>
|
||||
<p>Another application for this driver is if a particular server clock is to be used as the clock of last resort when all other normal synchronization sources have gone away. This is especially useful if that server has an ovenized oscillator. For this you would usually, but not necessarily, configure this driver at a stratum greater than any other likely sources of time, such as the default 5 for this driver, to prevent this driver taking over when legitimate sources elsewher in the network are available. To further protect the Internet infrastructure from accidental or malicious exposure to this driver, the driver is desabled if another source is available and operating.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>No <tt>filegen clockstats</tt> monitor data are produced by this driver.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
|
@ -2,52 +2,52 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Austron 2200A/2201A GPS Receivers</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Austron 2200A/2201A GPS Receivers</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Austron 2200A/2201A GPS Receivers</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.10.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_AS2201</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Austron 2200A/2201A GPS/LORAN Synchronized Clock and Timing Receiver connected via a serial port. It supports several special features of the clock, including the Input Buffer Module, Output Buffer Module, IRIG-B Interface Module and LORAN Assist Module. It requires the RS232 Buffered Serial Interface module for communication with the driver. For operation with multiple computers, it requires the <tt>ppsclock</tt> streams module described in the <a href="../ldisc.html">Line Disciplines and Streams Modules</a> page. The streams module requires a gadget box and 1-PPS level converter, such as described in the <a href="../pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page.</p>
|
||||
<p>For use with a single computer, the receiver can be connected directly to the receiver. For use with multiple computers, one of them is connected directly to the receiver and generates the polling messages. The other computers just listen to the receiver output directly or through a buffer amplifier. For computers that just listen, <tt>fudge flag2</tt> must be set and the <tt>ppsclock </tt>streams module configured on each of them.</p>
|
||||
<p>This receiver is capable of a comprehensive and large volume of statistics and operational data. The specific data collection commands and attributes are embedded in the driver source code; however, the collection process can be enabled or disabled using the flag4 flag. If set, collection is enabled; if not, which is the default, it is disabled. A comprehensive suite of data reduction and summary scripts is in the ./scripts/stats directory</p>
|
||||
of the ntp3 distribution.
|
||||
<h4>Monitor Data</h4>
|
||||
<p>When enabled by the <tt>flag4</tt> fudge flag, every received timecode is written as-is to the <tt>clockstats</tt> file.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Set for computers that listen-only.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<body>
|
||||
<h3>Austron 2200A/2201A GPS Receivers</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.10.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_AS2201</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Austron 2200A/2201A GPS/LORAN Synchronized Clock and Timing Receiver connected via a serial port. It supports several special features of the clock, including the Input Buffer Module, Output Buffer Module, IRIG-B Interface Module and LORAN Assist Module. It requires the RS232 Buffered Serial Interface module for communication with the driver.</p>
|
||||
<p>For use with a single computer, the receiver can be connected directly to the receiver. For use with multiple computers, one of them is connected directly to the receiver and generates the polling messages. The other computers just listen to the receiver output directly or through a buffer amplifier. For computers that just listen, <tt>fudge flag2</tt> must be set and the <tt>ppsclock </tt>streams module configured on each of them.</p>
|
||||
<p>This receiver is capable of a comprehensive and large volume of statistics and operational data. The specific data collection commands and attributes are embedded in the driver source code; however, the collection process can be enabled or disabled using the flag4 flag. If set, collection is enabled; if not, which is the default, it is disabled. A comprehensive suite of data reduction and summary scripts is in the ./scripts/stats directory</p>
|
||||
of the ntp3 distribution.
|
||||
<h4>Monitor Data</h4>
|
||||
<p>When enabled by the <tt>flag4</tt> fudge flag, every received timecode is written as-is to the <tt>clockstats</tt> file.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Set for computers that listen-only.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -2,30 +2,28 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Arbiter 1088A/B GPS Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Arbiter 1088A/B GPS Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Arbiter 1088A/B GPS Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.11.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_ARBITER</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt></p>
|
||||
<h4>
|
||||
<p>Description</p>
|
||||
</h4>
|
||||
<p>This driver supports the Arbiter 1088A/B Satellite Controlled Clock. The claimed accuracy of this clock is 100 ns relative to the PPS output when receiving four or more satellites.</p>
|
||||
<p>The receiver should be configured before starting the NTP daemon, in order to establish reliable position and operating conditions. It does not initiate surveying or hold mode. For use with NTP, the daylight savings time feature should be disables (<tt>D0</tt> command) and the broadcast mode set to operate in UTC (<tt>BU</tt> command).</p>
|
||||
<p>The timecode format supported by this driver is selected by the poll sequence <tt>B5</tt>, which initiates a line in the following format to be repeated once per second until turned off by the <tt>B0</tt> command.</p>
|
||||
<p>Format <tt>B5</tt> (24 ASCII printing characters):</p>
|
||||
<pre><cr><lf>i yy ddd hh:mm:ss.000bbb
|
||||
<body>
|
||||
<h3>Arbiter 1088A/B GPS Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.11.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_ARBITER</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Arbiter 1088A/B Satellite Controlled Clock. The claimed accuracy of this clock is 100 ns relative to the PPS output when receiving four or more satellites.</p>
|
||||
<p>The receiver should be configured before starting the NTP daemon, in order to establish reliable position and operating conditions. It does not initiate surveying or hold mode. For use with NTP, the daylight savings time feature should be disables (<tt>D0</tt> command) and the broadcast mode set to operate in UTC (<tt>BU</tt> command).</p>
|
||||
<p>The timecode format supported by this driver is selected by the poll sequence <tt>B5</tt>, which initiates a line in the following format to be repeated once per second until turned off by the <tt>B0</tt> command.</p>
|
||||
<p>Format <tt>B5</tt> (24 ASCII printing characters):</p>
|
||||
<pre><cr><lf>i yy ddd hh:mm:ss.000bbb
|
||||
|
||||
on-time = <cr>
|
||||
i = synchronization flag (' ' = locked, '?' = unlocked)
|
||||
@ -34,10 +32,10 @@ ddd = day of year
|
||||
hh:mm:ss = hours, minutes, seconds
|
||||
.000 = fraction of second (not used)
|
||||
bbb = tailing spaces for fill</pre>
|
||||
<p>The alarm condition is indicated by a '?' at i, which indicates the receiver is not synchronized. In normal operation, a line consisting of the timecode followed by the time quality character (TQ) followed by the receiver status string (SR) is written to the clockstats file.</p>
|
||||
<p>The time quality character is encoded in IEEE P1344 standard:</p>
|
||||
<p>Format <tt>TQ</tt> (IEEE P1344 estimated worst-case time quality)</p>
|
||||
<pre>0 clock locked, maximum accuracy
|
||||
<p>The alarm condition is indicated by a '?' at i, which indicates the receiver is not synchronized. In normal operation, a line consisting of the timecode followed by the time quality character (TQ) followed by the receiver status string (SR) is written to the clockstats file.</p>
|
||||
<p>The time quality character is encoded in IEEE P1344 standard:</p>
|
||||
<p>Format <tt>TQ</tt> (IEEE P1344 estimated worst-case time quality)</p>
|
||||
<pre>0 clock locked, maximum accuracy
|
||||
F clock failure, time not reliable
|
||||
4 clock unlocked, accuracy < 1 us
|
||||
5 clock unlocked, accuracy < 10 us
|
||||
@ -47,41 +45,41 @@ F clock failure, time not reliable
|
||||
9 clock unlocked, accuracy < 100 ms
|
||||
A clock unlocked, accuracy < 1 s
|
||||
B clock unlocked, accuracy < 10 s</pre>
|
||||
<p>The status string is encoded as follows:</p>
|
||||
<p>Format <tt>SR</tt> (25 ASCII printing characters)</p>
|
||||
<pre>V=vv S=ss T=t P=pdop E=ee
|
||||
<p>The status string is encoded as follows:</p>
|
||||
<p>Format <tt>SR</tt> (25 ASCII printing characters)</p>
|
||||
<pre>V=vv S=ss T=t P=pdop E=ee
|
||||
|
||||
vv = satellites visible
|
||||
ss = relative signal strength
|
||||
t = satellites tracked
|
||||
pdop = position dilution of precision (meters)
|
||||
ee = hardware errors</pre>
|
||||
<p>A three-stage median filter is used to reduce jitter and provide a dispersion measure. The driver makes no attempt to correct for the intrinsic jitter of the radio itself.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>When enabled by the <tt>flag4</tt> fudge flag, an additional line containing the latitude, longitude, elevation and optional deviation data is written to the <tt>clockstats</tt> file. The deviation data operates with an external pulse-per-second (PPS) input, such as a cesium oscillator or another radio clock. The PPS input should be connected to the B event channel and the radio initialized for deviation data on that channel. The deviation data consists of the mean offset and standard deviation of the external PPS signal relative the GPS signal, both in microseconds over the last 16 seconds.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<p>A three-stage median filter is used to reduce jitter and provide a dispersion measure. The driver makes no attempt to correct for the intrinsic jitter of the radio itself.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>When enabled by the <tt>flag4</tt> fudge flag, an additional line containing the latitude, longitude, elevation and optional deviation data is written to the <tt>clockstats</tt> file. The deviation data operates with an external pulse-per-second (PPS) input, such as a cesium oscillator or another radio clock. The PPS input should be connected to the B event channel and the radio initialized for deviation data on that channel. The deviation data consists of the mean offset and standard deviation of the external PPS signal relative the GPS signal, both in microseconds over the last 16 seconds.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -5,12 +5,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>NIST Modem Time Service</title>
|
||||
<title>NIST/USNO/PTB Modem Time Services</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Automated Computer Time Service (ACTS)</h3>
|
||||
<h3>NIST/USNO/PTB Modem Time Services</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.18.<i>u</i><br>
|
||||
|
@ -2,58 +2,58 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Heath WWV/WWVH Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Heath WWV/WWVH Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Heath WWV/WWVH Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.19.<i>u</i><br>
|
||||
Reference ID: <tt>WWV</tt><br>
|
||||
Driver ID: <tt>WWV_HEATH</tt><br>
|
||||
Serial Port: <tt>/dev/heath<i>u</i></tt>; 1200 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt><br>
|
||||
Requires: <tt>/usr/include/sys/termios.h</tt> header file with modem control</p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Heath GC-1000 Most Accurate Clock, with RS232C Output Accessory. This is a WWV/WWVH receiver somewhat less robust than other supported receivers. Its claimed accuracy is 100 ms when actually synchronized to the broadcast signal, but this doesn't happen even most of the time, due to propagation conditions, ambient noise sources, etc. When not synchronized, the accuracy is at the whim of the internal clock oscillator, which can wander into the sunset without warning. Since the indicated precision is 100 ms, expect a host synchronized only to this thing to wander to and fro, occasionally being rudely stepped when the offset exceeds the default CLOCK_MAX of 128 ms.</p>
|
||||
<p>The internal DIPswitches should be set to operate at 1200 baud in MANUAL mode and the current year. The external DIPswitches should be set to GMT and 24-hour format. It is very important that the year be set correctly in the DIPswitches; otherwise, the day of year will be incorrect after 28 April of a normal or leap year.</p>
|
||||
<p>In MANUAL mode the clock responds to a rising edge of the request to send (RTS) modem control line by sending the timecode. Therefore, it is necessary that the operating system implement the <tt>TIOCMBIC</tt> and <tt>TIOCMBIS</tt> ioctl system calls and <tt>TIOCM_RTS</tt> control bit. Present restrictions require the use of a POSIX-compatible programming interface, although other interfaces may work as well.</p>
|
||||
<p>The clock message consists of 23 ASCII printing characters in the following format:</p>
|
||||
<pre>hh:mm:ss.f dd/mm/yr<cr>
|
||||
<body>
|
||||
<h3>Heath WWV/WWVH Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.19.<i>u</i><br>
|
||||
Reference ID: <tt>WWV</tt><br>
|
||||
Driver ID: <tt>WWV_HEATH</tt><br>
|
||||
Serial Port: <tt>/dev/heath<i>u</i></tt>; 1200 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt><br>
|
||||
Requires: <tt>/usr/include/sys/termios.h</tt> header file with modem control</p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Heath GC-1000 Most Accurate Clock, with RS232C Output Accessory. This is a WWV/WWVH receiver somewhat less robust than other supported receivers. It's claimed accuracy is 100 ms when actually synchronized to the broadcast signal, but this doesn't happen even most of the time, due to propagation conditions, ambient noise sources, etc. When not synchronized, the accuracy is at the whim of the internal clock oscillator, which can wander into the sunset without warning. Since the indicated precision is 100 ms, expect a host synchronized only to this thing to wander to and fro, occasionally being rudely stepped when the offset exceeds the default CLOCK_MAX of 128 ms.</p>
|
||||
<p>The internal DIPswitches should be set to operate at 1200 baud in MANUAL mode and the current year. The external DIPswitches should be set to GMT and 24-hour format. It is very important that the year be set correctly in the DIPswitches; otherwise, the day of year will be incorrect after 28 April of a normal or leap year.</p>
|
||||
<p>In MANUAL mode the clock responds to a rising edge of the request to send (RTS) modem control line by sending the timecode. Therefore, it is necessary that the operating system implement the <tt>TIOCMBIC</tt> and <tt>TIOCMBIS</tt> ioctl system calls and <tt>TIOCM_RTS</tt> control bit. Present restrictions require the use of a POSIX-compatible programming interface, although other interfaces may work as well.</p>
|
||||
<p>The clock message consists of 23 ASCII printing characters in the following format:</p>
|
||||
<pre>hh:mm:ss.f dd/mm/yr<cr>
|
||||
|
||||
hh:mm:ss.f = hours, minutes, seconds
|
||||
f = deciseconds ('?' when out of spec)
|
||||
dd/mm/yr = day, month, year</pre>
|
||||
<p>The alarm condition is indicated by '?', rather than a digit, at A. Note that 0?:??:??.? is displayed before synchronization is first established and hh:mm:ss.? once synchronization is established and then lost again for about a day.</p>
|
||||
<p>A fudge time1 value of .07 s appears to center the clock offset residuals.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>WWV</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver
|
||||
</dl>
|
||||
Additional Information
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a> </p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<p>The alarm condition is indicated by '?', rather than a digit, at A. Note that 0?:??:??.? is displayed before synchronization is first established and hh:mm:ss.? once synchronization is established and then lost again for about a day.</p>
|
||||
<p>A fudge time1 value of .07 s appears to center the clock offset residuals.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>WWV</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver
|
||||
</dl>
|
||||
Additional Information
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a> </p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -4,7 +4,6 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586) [Netscape]">
|
||||
<title>Generic NMEA GPS Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
@ -16,20 +15,23 @@
|
||||
<p>Address: 127.127.20.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_NMEA</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 4800 baud, 8-bits, no parity<br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 4800 - 115200 bps, 8-bits, no parity<br>
|
||||
Serial Port: <tt>/dev/gpspps<i>u</i></tt>; for just the PPS signal (this is tried first for PPS, before <tt>/dev/gps<i>u</i></tt>)<br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; symlink to server:port (for nmead) Features: <tt>tty_clk</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports GPS receivers with the <tt>$GPRMC</tt> NMEA output string by default. Alternately the <tt>$GPGGA</tt> or <tt>$GPGLL </tt>may be selected.</p>
|
||||
<p>The driver expects the receiver to be set up to transmit a <tt>$GPRMC</tt> message every second.</p>
|
||||
<p>The accuracy depend on the receiver used. Inexpesive GPS models are available with a claimed PPS signal accuracy of 1 <font face="Symbol">m</font>s or better relative to the broadcast signal. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.</p>
|
||||
<p>If the Operating System supports the PPSAPI, RFC-2783, it will be used.<br> </p>
|
||||
<p>This driver supports GPS receivers with the <tt>$GPRMC, $GPGLL, $GPGGA, $GPZDA, and $GPZDG</tt> NMEA sentences by default. Note that Accord's custom NMEA sentence <tt>$GPZDG</tt> reports using the GPS timescale, while the rest of the sentences report UTC. The difference between the two is a whole number of seconds which increases with each leap second insertion in UTC. To avoid problems mixing UTC and GPS timescales, the driver disables processing of UTC sentences once <tt>$GPZDG</tt> is received.</p>
|
||||
<p>The driver expects the receiver to be set up to transmit at least one supported sentence every second.</p>
|
||||
<p>The accuracy depends on the receiver used. Inexpensive GPS models are available with a claimed PPS signal accuracy of 1 <font face="Symbol">m</font>s or better relative to the broadcast signal. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.</p>
|
||||
<p>If the Operating System supports PPSAPI (<a href="http://www.ietf.org/rfc/rfc2783.txt">RFC 2783</a>), fudge flag1 1 enables its use.<br> </p>
|
||||
<p>The various GPS sentences that this driver recognises look like this:<br>
|
||||
(others quietly ignored)</p>
|
||||
<pre><tt>$GPRMC,POS_UTC,POS_STAT,LAT,LAT_REF,LON,LON_REF,SPD,HDG,DATE,MAG_VAR,MAG_REF*CC<cr><lf>
|
||||
$GPGLL,LAT,LAT_REF,LONG,LONG_REF,POS_UTC,POS_STAT*CC<cr><lf>
|
||||
$GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO,G_UNIT,D_AGE,D_REF*CC<cr><lf>
|
||||
<pre><tt>$GPRMC,UTC,POS_STAT,LAT,LAT_REF,LON,LON_REF,SPD,HDG,DATE,MAG_VAR,MAG_REF*CS<cr><lf>
|
||||
$GPGLL,LAT,LAT_REF,LONG,LONG_REF,UTC,POS_STAT*CS<cr><lf>
|
||||
$GPGGA,UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO,G_UNIT,D_AGE,D_REF*CS<cr><lf>
|
||||
$GPZDA,UTC,DD,MM,YYYY,TH,TM,*CS<cr><lf>
|
||||
$GPZDG,GPSTIME,DD,MM,YYYY,AA.BB,V*CS<cr><lf>
|
||||
|
||||
POS_UTC - UTC of position. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.fff])
|
||||
UTC - Time of day on UTC timescale. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.fff])
|
||||
POS_STAT - Position status. (A = Data valid, V = Data invalid)
|
||||
LAT - Latitude (llll.ll)
|
||||
LAT_REF - Latitude direction. (N = North, S = South)
|
||||
@ -40,7 +42,7 @@ $GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO
|
||||
DATE - Date (ddmmyy)
|
||||
MAG_VAR - Magnetic variation (degrees) (x.x)
|
||||
MAG_REF - Magnetic variation (E = East, W = West)
|
||||
FIX_MODE - Position Fix Mode ( 0 = Invalid, >0 = Valid)
|
||||
FIX_MODE - Position Fix Mode (0 = Invalid, >0 = Valid)
|
||||
SAT_USED - Number Satellites used in solution
|
||||
HDOP - Horizontal Dilution of Precision
|
||||
ALT - Antenna Altitude
|
||||
@ -49,11 +51,23 @@ $GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO
|
||||
G_UNIT - Geoid units (M/F)
|
||||
D_AGE - Age of last DGPS Fix
|
||||
D_REF - Reference ID of DGPS station
|
||||
CC - Checksum (optional)
|
||||
GPSTIME - Time of day on GPS timescale. Hours, minutes and seconds [fraction (opt.)]. (hhmmss[.f])
|
||||
DD - Day of the month (1-31)
|
||||
MM - Month of the year (1-12)
|
||||
YYYY - Year
|
||||
AA.BB - Denotes the signal strength (should be < 05.00)
|
||||
V - GPS sync status
|
||||
'0' => INVALID time,
|
||||
'1' => accuracy of +/- 20ms,
|
||||
'2' => accuracy of +/- 100ns
|
||||
CS - Checksum
|
||||
<cr><lf> - Sentence terminator.</tt></pre>
|
||||
Alternate GPS sentences (other than <tt>$GPRMC</tt> - the default) may be enabled by setting the relevent bits of 'mode' in the server configuration line<br> * server 127.127.20.x mode X<br> bit 0 - enables RMC ( value = 1)<br> bit 1 - enables GGA ( value = 2)<br> bit 2 - enables GLL ( value = 4)<br>
|
||||
multiple sentences may be selected<br>
|
||||
<p>The driver will send a <tt>$PMOTG,RMC,0000*1D<cr><lf></tt> message each time a <tt>$GPRMC</tt> string is needed. This is not needed on most GPS receivers because they automatically send the <tt>$GPRMC</tt> string every second and will only work on GPS receivers that understand the <tt>$PMOTG</tt> string. Others will just ignore it.</p>
|
||||
|
||||
<p>Specific GPS sentences and bitrates may be selected by setting bits of the 'mode' in the server configuration line:<br>
|
||||
<tt>server 127.127.20.x mode X</tt><br> bit 0 - process <tt>$GPMRC</tt> (value = 1)<br> bit 1 - process <tt>$GPGGA</tt> (value = 2)<br> bit 2 - process <tt>$GPGLL</tt> (value = 4)<br> bit 4 - process <tt>$GPZDA</tt> or <tt>$GPZDG</tt> (value = 8)<br>
|
||||
<p>The default (mode 0) is to process all supported sentences, which results in the last received each cycle being used. Multiple sentences may be selected by adding their mode bit values. The driver uses 4800 bits per second by default. Faster bitrates can be selected using bits 4, 5, and 6 of the mode field:<br><br>
|
||||
bits 4/5/6 - select serial bitrate (0 for 4800 - the default, 16 for 9600, 32 for 19200, 48 for 38400, 64 for 57600, 80 for 115200)<br></p>
|
||||
<p>The driver will send a <tt>$PMOTG,RMC,0000*1D<cr><lf></tt> command each poll interval. This is not needed on most GPS receivers because they automatically send <tt>$GPRMC</tt> every second, but helps a Motorola GPS receiver that is otherwise silent. NMEA devices ignore commands they do not understand.</p>
|
||||
<h4>Setting up the Garmin GPS-25XL</h4>
|
||||
Switch off all output with by sending it the following string.
|
||||
<pre>"$PGRMO,,2<cr><lf>"</pre>
|
||||
@ -62,25 +76,25 @@ $GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO
|
||||
<p>On some systems the PPS signal isn't switched on by default. It can be switched on by sending the following string.</p>
|
||||
<pre>"$PGRMC,,,,,,,,,,,,2<cr><lf>"</pre>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>The GPS sentence(s) that is used is written to the clockstats file.</p>
|
||||
<p>The GPS sentence that is used is written to the clockstats file and available with ntpq -c clockvar.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dd>Specifies the PPS time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dd>Specifies the serial end of line time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dd>Disable PPS signal processing if 0 (default); enable PPS signal processing if 1.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Specifies the PPS signal on-time edge: 0 for assert (default), 1 for clear.
|
||||
<dd>If PPS signal processing is enabled, capture the pulse on the rising edge if 0 (default); capture on the falling edge if 1.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Controls the kernel PPS discipline: 0 for disable (default), 1 for enable.
|
||||
<dd>If PPS signal processing is enabled, use the <tt>ntpd</tt> clock discipline if 0 (default); use the kernel discipline if 1.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dd>Obscures location in timecode: 0 for disable (default), 1 for enable.
|
||||
</dl>
|
||||
<p>Additional Information</p>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
@ -88,4 +102,4 @@ $GPGGA,POS_UTC,LAT,LAT_REF,LONG,LONG_REF,FIX_MODE,SAT_USED,HDOP,ALT,ALT_UNIT,GEO
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
@ -2,33 +2,79 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>PPS Clock Discipline</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>PPS Clock Discipline</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>PPS Clock Discipline</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
<p>Address: 127.127.22.<i>u</i><br>
|
||||
Reference ID: <tt>PPS</tt><br>
|
||||
Driver ID: <tt>PPS</tt><br>
|
||||
Serial or Parallel Port: <tt>/dev/pps<i>u</i></tt><br>
|
||||
Requires: PPSAPI interface</p>
|
||||
<p>Note: This driver supersedes an older one of the same name. The older driver operated with several somewhat archaic signal interface devices, required intricate configuration and was poorly documented. This driver operates only with the PPSAPI interface proposed as an IETF standard. Note also that the <tt>pps</tt> configuration command has been obsoleted by this driver.</p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver furnishes an interface for the pulse-per-second (PPS) signal produced by a cesium clock, radio clock or related devices. It can be used to augment the serial timecode generated by a GPS receiver, for example. It can be used to remove accumulated jitter and re-time a secondary server when synchronized to a primary server over a congested, wide-area network and before redistributing the time to local clients. The driver includes extensive signal sanity checks and grooming algorithms. A range gate and frequency discriminator reject noise and signals with incorrect frequency. A multiple-stage median filter rejects jitter due to hardware interrupt and operating system latencies. A trimmed-mean algorithm determines the best time samples. With typical workstations and processing loads, the incidental jitter can be reduced to a few microseconds.</p>
|
||||
<p>While this driver can discipline the time and frequency relative to the PPS source, it cannot number the seconds. For this purpose an auxiliary source is required, ordinarily a radio clock operated as a primary reference (stratum 1) source; however, another NTP time server can be used as well. For this purpose, the auxiliary source should be specified as the prefer peer, as described in the <a href="../prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page.</p>
|
||||
<body>
|
||||
|
||||
<h3>PPS Clock Discipline</h3>
|
||||
<hr>
|
||||
|
||||
<p>Last change:
|
||||
|
||||
<!-- #BeginDate format:En2m -->22-Apr-2009 15:02<!-- #EndDate -->
|
||||
UTC</p>
|
||||
|
||||
<h4>Synopsis</h4>
|
||||
|
||||
<p>Address: 127.127.22.<i>u</i><br>
|
||||
Reference ID: <tt>PPS</tt><br>
|
||||
Driver ID: <tt>PPS</tt><br>
|
||||
Serial or Parallel Port: <tt>/dev/pps<i>u</i></tt><br>
|
||||
Requires: PPSAPI signal interface for PPS signal processing.</p>
|
||||
|
||||
<p>Note: This driver supersedes an older one of the same name. The older driver operated with several somewhat archaic signal interface devices, required intricate configuration and was poorly documented. This driver requires the Pulse per Second API (PPSAPI)<sup>1</sup>. Note also that the <tt>pps</tt> configuration command has been obsoleted by this driver.</p>
|
||||
|
||||
<h4>Description</h4>
|
||||
|
||||
<p>This driver furnishes an interface for the pulse-per-second (PPS) signal produced by a cesium clock, radio clock or related devices. It can be used to augment the serial timecode generated by a GPS receiver, for example. It can be used to remove accumulated jitter and re-time a secondary server when synchronized to a primary server over a congested, wide-area network and before redistributing the time to local clients. The driver includes extensive signal sanity checks and grooming algorithms. A range gate and frequency discriminator reject noise and signals with incorrect frequency. A multiple-stage median filter rejects jitter due to hardware interrupt and operating system latencies. A trimmed-mean algorithm determines the best time samples. With typical workstations and processing loads, the incidental jitter can be reduced to a few microseconds.</p>
|
||||
|
||||
<p>While this driver can discipline the time and frequency relative to the PPS source, it cannot number the seconds. For this purpose an auxiliary source is required, ordinarily a radio clock operated as a primary reference (stratum 1) source; however, another NTP time server can be used as well. For this purpose, the auxiliary source should be specified as the prefer peer, as described in the <a href="../prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page.</p>
|
||||
<p>The driver requires the PPSAPI interface<sup>1</sup>, which is a proposed IETF standard. The interface consists of the <tt>timepps.h</tt> header file and associated kernel support. Support for this interface is included in current versions of Solaris, FreeBSD and Linux and proprietary versions of Tru64 (Alpha) and SunOS. See the <a href="../pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page for further information.</p>
|
||||
<p>The PPS source can be connected via a serial or parallel port, depending on the hardware and operating system. A serial port can be dedicated to the PPS source or shared with another device; however, if dedicated the data leads should not be connected, as noise or unexpected signals can cause <tt>ntpd</tt> to exit.</p>
|
||||
<p>A radio clock is usually connected via a serial port and the PPS source connected via a level converter to the data carrier detect (DCD) pin (DB-9 pin 1, DB-25 pin 8) of the same connector. In some systems where a parallel port and driver are available, the PPS signal can be connected directly to the ACK pin (pin 10) of the connector. Whether the PPS signal is connected via a dedicated port or shared with another device, the driver opens the device <tt>/dev/pps%d</tt>, where <tt>%d</tt> is the unit number. As with other drivers, links can be used to redirect the logical name to the actual physical device.</p>
|
||||
<p>The driver normally operates like any other driver and uses the same mitigation algorithms and PLL/FLL clock discipline incorporated in the daemon. If kernel PLL/FLL support is available, the kernel PLL/FLL clock discipline can be used instead. The default behavior is not to use the kernel PPS clock discipline, even if present. This driver incorporates a good deal of signal processing to reduce jitter using the median filter and trimmed average algorithms in the driver interface. As the result, performance with minpoll and maxpoll configured at the minimum 4 (16s) is generally better than the kernel PPS discipline. However, fudge flag 3 can be used to enable the kernel PPS discipline if necessary.</p>
|
||||
<p>Note that the PPS source is considered valid only if the auxiliary source is the prefer peer, is reachable and is selectable to discipline the system clock. By default the stratum assigned to the PPS source is automatically determined. If the auxiliary source is unreachable or inoperative, the stratum is set to 16. Otherwise it is set to the stratum specified by the <tt>fudge stratum</tt> command, if present, or the auxiliary source stratum if not present. Please note the temptation to masquerade as a primary server by forcing the stratum to zero is decidedly dangerous, as it invites timing loops.</p>
|
||||
<p>The <tt>mode</tt> keyword of the <tt>server</tt> command can be used to set the PPSAPI mode bits which determine the capture edge and echo options. See the <tt>/usr/include/sys/timepps.h</tt> header file for the bit definitions, which must be converted to their decimal equivalents. This overrides the fudge <tt>flag2</tt> option.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<p>A radio clock is usually connected via a serial port and the PPS source
|
||||
connected via a level converter to the data carrier detect (DCD)
|
||||
pin (DB-9 pin 1, DB-25 pin 8) of the same connector. In some systems
|
||||
where a parallel port and driver are available, the PPS signal can
|
||||
be connected directly to the ACK pin (DB25 pin 10) of the connector.
|
||||
Whether the PPS signal is connected via a dedicated port or shared with another
|
||||
device, the driver opens the device <tt>/dev/pps%d</tt>,
|
||||
where <tt>%d</tt> is the unit number. As with other drivers, links can be
|
||||
used to redirect the logical name to the actual physical device.</p>
|
||||
<p>The driver normally operates like any other driver and uses the same mitigation
|
||||
algorithms and PLL/FLL clock discipline incorporated in the daemon.
|
||||
If kernel PLL/FLL support is available, the kernel PLL/FLL clock
|
||||
discipline can be used instead. The default behavior is not to use
|
||||
the kernel PPS clock discipline, even if present. This driver incorporates
|
||||
a good deal of signal processing to reduce jitter using the median
|
||||
filter algorithm in the driver. As the result, performance
|
||||
with <tt>minpoll</tt> configured at 4 (16s) is generally
|
||||
better than the kernel PPS discipline. However, fudge flag 3 can
|
||||
be used to enable the kernel PPS discipline if necessary.</p>
|
||||
<p>This driver
|
||||
is enabled only under one of two conditions (a) a prefer peer other than
|
||||
this driver is among the survivors of the mitigation algorithms or (b)
|
||||
there are no survivors and the <tt>minsane</tt> option
|
||||
of the <tt>tos</tt> command is 0. The prefer peer designates another source
|
||||
that can reliably number the seconds when available . However, if no
|
||||
sources are available, the system clock continues to be disciplined by
|
||||
the PPS driver on an indefinite basis.</p>
|
||||
<p>A scenario where the latter behavior can be most useful is a planetary orbiter
|
||||
fleet, for instance in the vicinity of Mars, where contact between orbiters
|
||||
and Earth only one or two times per Sol (Mars day). These orbiters have a
|
||||
precise timing reference based on an Ultra Stable Oscillator (USO) with accuracy
|
||||
in the order of a Cesium oscillator. A PPS signal is derived from the USO
|
||||
and can be disciplined from Earth on rare occasion or from another orbiter
|
||||
via NTP. In the above scenario the PPS signal disciplines the spacecraft clock
|
||||
between NTP updates.</p>
|
||||
<p>In a similar scenario a PPS signal can be used to discipline the clock between
|
||||
updates produced by the modem driver. This would provide precise synchronization
|
||||
without needing the Internet at all.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
@ -41,11 +87,14 @@
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Specifies the PPS signal on-time edge: 0 for assert (default), 1 for clear.
|
||||
<dd>Specifies PPS capture on the rising (assert) pulse edge if 0; falling
|
||||
(clear) edge if 1. (default),
|
||||
1 for clear.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Controls the kernel PPS discipline: 0 for disable (default), 1 for enable.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dd>Record a timestamp once for each second if 1. Useful for constructing
|
||||
Allan deviation plots..
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
|
@ -46,7 +46,6 @@
|
||||
<dl>
|
||||
<dt><tt>g</tt> CR
|
||||
<dd>Request for signal quality. Answer only valid during (late part of) resync to MSF signal. The response consists of two characters as follows:
|
||||
<ol>
|
||||
<dl compact>
|
||||
<dt>bit 7
|
||||
<dd>parity
|
||||
@ -79,7 +78,6 @@
|
||||
<dt>bit 2--0
|
||||
<dd>reception signal quality in the range 0--5 (very poor to very good); if in the range 0--2 no successful reception is to be expected. The reported value drops to zero when not resyncing, ie when first returned byte is not `3'.
|
||||
</dl>
|
||||
</ol>
|
||||
<dt><tt>h</tt> CR
|
||||
<dd>Request to resync to signal. Can take up from about 30s to 360s. Drains batteries so should not be used excessively. After this the clock time and date should be correct and the phase within 20ms of time as transmitted from the source signal (remember to allow for propagation time). By default the clock resyncs once per day in the late evening/early morning (presumably to catch transitions to/from daylight saving time quickly). This driver code, by default, resyncs at least once per hour to minimise clock wander.
|
||||
<dt><tt>o</tt> CR
|
||||
|
@ -16,8 +16,10 @@
|
||||
<p>Address: 127.127.28.<i>u</i><br>
|
||||
Reference ID: <tt>SHM</tt><br>
|
||||
Driver ID: <tt>SHM</tt></p>
|
||||
|
||||
<h4>Description</h4>
|
||||
<p>This driver receives its reference clock info from a shared memory-segment. The shared memory-segment is created with owner-only access for unit 0 and 1, and world access for unit 2 and 3</p>
|
||||
|
||||
<h4>Structure of shared memory-segment</h4>
|
||||
<pre>struct shmTime {
|
||||
int mode; /* 0 - if valid set
|
||||
@ -40,15 +42,59 @@
|
||||
int valid;
|
||||
int dummy[10];
|
||||
};</pre>
|
||||
|
||||
<h4>Operation mode=0</h4>
|
||||
<p>When the poll-method of the driver is called, the valid-flag of the shared memory-segment is checked:</p>
|
||||
<p>If set, the values in the record (clockTimeStampSec, clockTimeStampUSec, receiveTimeStampSec, receiveTimeStampUSec, leap, precision) are passed to ntp, and the valid-flag is cleared.</p>
|
||||
<p>If not set, a timeout is reported to ntp, nothing else happend</p>
|
||||
<p>Each second, the valid-flag of the shared memory-segment is checked:</p>
|
||||
<p>If set, the values in the record (clockTimeStampSec, clockTimeStampUSec, receiveTimeStampSec, receiveTimeStampUSec, leap, precision) are passed to ntp, and the valid-flag is cleared and a counter is bumped.</p>
|
||||
<p>If not set, a counter is bumped</p>
|
||||
<h4>Operation mode=1</h4>
|
||||
<p>When the poll-method of the driver is called, the valid-flag of the shared memory-segment is checked:</p>
|
||||
<p>If set, the count-field of the record is remembered, and the values in the record (clockTimeStampSec, clockTimeStampUSec, receiveTimeStampSec, receiveTimeStampUSec, leap, precision) are read. Then, the remembered count is compared to the count now in the record. If both are equal, the values read from the record are passed to ntp. If they differ, another process has modified the record while it was read out (was not able to produce this case), and failure is reported to ntp. The valid flag is cleared.</p>
|
||||
<p>If not set, a timeout is reported to ntp, nothing else happend</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<p>Each second, the valid-flag of the shared memory-segment is checked:</p>
|
||||
<p>If set, the count-field of the record is remembered, and the values in the record (clockTimeStampSec, clockTimeStampUSec, receiveTimeStampSec, receiveTimeStampUSec, leap, precision) are read. Then, the remembered count is compared to the count now in the record. If both are equal, the values read from the record are passed to ntp. If they differ, another process has modified the record while it was read out (was not able to produce this case), and failure is reported to ntp. The valid flag is cleared and a counter is bumped.</p>
|
||||
<p>If not set, a counter is bumped</p>
|
||||
|
||||
|
||||
<h4>gpsd</h4>
|
||||
|
||||
<a href="http://gpsd.berlios.de/"><i>gpsd</i></a>
|
||||
knows how to talk to many GPS devices.
|
||||
It works with <i>ntpd</i> through the SHM driver.
|
||||
<P>
|
||||
The <i>gpsd</i> man page suggests setting minpoll and maxpoll to 4.
|
||||
That was an attempt to reduce jitter.
|
||||
The SHM driver was fixed (ntp-4.2.5p138) to collect data each second rather than
|
||||
once per polling interval so that suggestion is no longer reasonable.
|
||||
<P>
|
||||
|
||||
|
||||
<h4>Clockstats</h4>
|
||||
If flag4 is set when the driver is polled, a clockstats record is written.
|
||||
The first 3 fields are the normal date, time, and IP address common to all clockstats records.
|
||||
<P>
|
||||
The 4th field is the number of second ticks since the last poll.
|
||||
The 5th field is the number of good data samples found. The last 64 will be used by ntpd.
|
||||
The 6th field is the number of sample that didn't have valid data ready.
|
||||
The 7th field is the number of bad samples.
|
||||
The 8th field is the number of times the the mode 1 info was update while nptd was trying to grab a sample.
|
||||
<P>
|
||||
|
||||
Here is a sample showing the GPS reception fading out:
|
||||
<pre>
|
||||
54364 84927.157 127.127.28.0 66 65 1 0 0
|
||||
54364 84990.161 127.127.28.0 63 63 0 0 0
|
||||
54364 85053.160 127.127.28.0 63 63 0 0 0
|
||||
54364 85116.159 127.127.28.0 63 62 1 0 0
|
||||
54364 85180.158 127.127.28.0 64 63 1 0 0
|
||||
54364 85246.161 127.127.28.0 66 66 0 0 0
|
||||
54364 85312.157 127.127.28.0 66 50 16 0 0
|
||||
54364 85375.160 127.127.28.0 63 41 22 0 0
|
||||
54364 85439.155 127.127.28.0 64 64 0 0 0
|
||||
54364 85505.158 127.127.28.0 66 36 30 0 0
|
||||
54364 85569.157 127.127.28.0 64 0 64 0 0
|
||||
54364 85635.157 127.127.28.0 66 0 66 0 0
|
||||
54364 85700.160 127.127.28.0 65 0 65 0 0
|
||||
</pre>
|
||||
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
@ -65,7 +111,7 @@
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dd>If flag4 is set, clockstats records will be written when the driver is polled.
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a></p>
|
||||
</dl>
|
||||
@ -73,4 +119,5 @@
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
|
@ -4,15 +4,24 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>Trimble Palisade Receiver</title>
|
||||
<title>Trimble Palisade and Thunderbolt Receivers</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
|
||||
<h1><font size="+2">Trimble Palisade Receiver</font>
|
||||
<h1><font size="+2">Trimble Palisade and Thunderbolt Receivers</font>
|
||||
<hr>
|
||||
</h1>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<h2><img src="../pic/driver29.gif" alt="gif" nosave height="100" width="420"></h2>
|
||||
</td>
|
||||
<td>
|
||||
<h2><img src="../pic/thunderbolt.jpg" alt="jpg" nosave height="270" width="420"></h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><font size="+1">Synopsis</font></h2>
|
||||
<table>
|
||||
<tr>
|
||||
@ -50,12 +59,20 @@
|
||||
</td>
|
||||
<td><b>9600 baud, 8-bits, 1-stop, odd parity</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<div align="right">
|
||||
<tt><font size="+1">Serial I/O (Thunderbolt):</font></tt></div>
|
||||
</td>
|
||||
<td><b>9600 baud, 8-bits, 1-stop, no parity</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><font size="+1">Description</font></h2>
|
||||
The <b>refclock_palisade</b> driver supports <a href="http://www.trimble.com/products/ntp">Trimble Navigation's Palisade Smart Antenna GPS receiver</a>.<br>
|
||||
Additional software and information about the Palisade GPS is available from: <a href="http://www.trimble.com/oem/ntp">http://www.trimble.com/oem/ntp</a>.<br>
|
||||
Latest NTP driver source, executables and documentation is maintained at: <a href="ftp://ftp.trimble.com/pub/ntp">ftp://ftp.trimble.com/pub/ntp</a>
|
||||
<p>This documentation describes version 7.12 of the GPS Firmware and version 2.46 (July 15, 1999) and later, of the driver source.<br> </p>
|
||||
<p>This documentation describes version 1 of the Thunderbolt Receiver Firmware, no tests have been made on further firmwares, please read "Notes on the Thunderbolt Receiver's Firmware" at the end of this documentation for more information.</p>
|
||||
<h2><font size="+1">Operating System Compatibility</font></h2>
|
||||
The Palisade driver has been tested on the following software and hardware platforms:<br>
|
||||
<center>
|
||||
@ -97,7 +114,8 @@
|
||||
<td>20 us</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</center><P>
|
||||
<b>Attention</b>: Thunderbolt Receiver has not being tested on the previous software and hardware plataforms.
|
||||
<h2><font size="+1">GPS Receiver</font></h2>
|
||||
The Palisade GPS receiver is an 8-channel smart antenna, housing the GPS receiver, antenna and interface in a single unit, and is designed for rooftop deployment in static timing applications.
|
||||
<p>Palisade generates a PPS synchronized to UTC within +/- 100 ns. The Palisade's external event input with 40 nanosecond resolution is utilized by the Palisade NTP driver for asynchronous precision time transfer.</p>
|
||||
@ -199,6 +217,19 @@
|
||||
<tt># and set flag2 to turn off event polling.</tt><br>
|
||||
<tt><a href="#flag2">fudge 127.127.29.0 flag2 1</a></tt><br>
|
||||
<tt>#------------------------------------------------------------------------------</tt><br> </p>
|
||||
|
||||
<h4>Thunderbolt NTP Configuration file</h4>
|
||||
<tt>#------------------------------------------------------------------------------</tt>
|
||||
<p>Configuration without event polling:<br>
|
||||
<tt>#------------------------------------------------------------------------------</tt><br>
|
||||
<tt># The Primary reference</tt><br>
|
||||
<tt>server 127.127.29.0 mode 2 # Trimble Thunderbolt GPS (Stratum 1).</tt><br>
|
||||
<tt># Set packet delay</tt><br>
|
||||
<tt><a href="#time1">fudge 127.127.29.0 time1 0.020</a></tt><br>
|
||||
<tt># and set flag2 to turn off event polling.</tt><br>
|
||||
<tt><a href="#flag2">fudge 127.127.29.0 flag2 1</a></tt><br>
|
||||
<tt>#------------------------------------------------------------------------------</tt><br> </p>
|
||||
Currently the Thunderbolt mode doesn't support event polling, the reasons are explained on the "Notes on the Thunderbolt Receiver's Firmware" section at the end of this documentation.
|
||||
<h2><a name="TimeTransfer"></a><font size="+1">Time Transfer and Polling</font></h2>
|
||||
Time transfer to the NTP host is performed via the Palisade's comprehensive time packet output. The time packets are output once per second, and whenever an event timestamp is requested.
|
||||
<p>The driver requests an event time stamp at the end of each polling interval, by pulsing the RTS (request to send) line on the serial port. The Palisade GPS responds with a time stamped event packet.</p>
|
||||
@ -235,7 +266,7 @@
|
||||
<h2><font size="+1">Mode Parameter</font></h2>
|
||||
<dl>
|
||||
<dt><tt><font size="+1">mode <i>number</i></font></tt>
|
||||
<dd>The mode parameter to the server command specifies the specific hardware this driver is for. The default is 0 for a normal Trimble Palisade. The only other option at this time is 1 for a Endrun Praecis in Trimble emulation mode.
|
||||
<dd>The mode parameter to the server command specifies the specific hardware this driver is for. The default is 0 for a normal Trimble Palisade. The other options are <b>1</b> for an <b>Endrun Praecis</b> in Trimble emulation mode, and <b>2</b> for the <b>Trimble Thunderbolt</b> GPS Disciplined Clock Receiver.
|
||||
</dl>
|
||||
<h2><font size="+1">DEFINEs</font></h2>
|
||||
The following constants are defined in the driver source code. These defines may be modified to improve performance or adapt to new operating systems.<br>
|
||||
@ -369,6 +400,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<blockquote>
|
||||
<h4>Leap Second Flag Definition:</h4>Bit 0: (1) UTC Time is available<br>
|
||||
Bits 1 - 3: Undefined<br>Bit 4: (1) Leap Scheduled: Leap second pending asserted by GPS control segment.<br>Bit 5: (1) Leap Pending: set 24 hours before, until beginning of leap second.<br>Bit 6: (1) GPS Leap Warning: 6 hours before until 6 hours after leap event<br>Bit 7: (1) Leap In Progress. Only set during the leap second.
|
||||
@ -576,6 +608,281 @@
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<h3>Thunderbolt Timing packets Data Format</h3>
|
||||
Thunderbolt can output 2 synchronous packets.
|
||||
<h4><b>Primary Timing Packet - 0x8FAB</h4>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>Byte</b></td>
|
||||
<td><b>Bit</b></td>
|
||||
<td><b>Item</b></td>
|
||||
<td><b>Type</b></td>
|
||||
<td><b>Value</b></td>
|
||||
<td><b>Description</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>0</td>
|
||||
<td></td>
|
||||
<td>Subcode</td>
|
||||
<td>UINT8</td>
|
||||
<td></td>
|
||||
<td>0xAB</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>1-4</td>
|
||||
<td></td>
|
||||
<td>Time of Week</td>
|
||||
<td>UINT32</td>
|
||||
<td></td>
|
||||
<td>GPS seconds of week</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5-6</td>
|
||||
<td></td>
|
||||
<td>Week Number</td>
|
||||
<td>UINT16</td>
|
||||
<td></td>
|
||||
<td>GPS Week Number</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>7-8</td>
|
||||
<td></td>
|
||||
<td>UTC Offset</td>
|
||||
<td>SINT16</td>
|
||||
<td></td>
|
||||
<td>UTC Offset (seconds)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">9</td>
|
||||
<td><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</tr><tr><td>4</tr></table></td>
|
||||
<td valign="top">Timing Flag</td>
|
||||
<td valign="top">Bit field</td>
|
||||
<td valign="top"><table><tr><td>0 or 1</td></tr><tr><td>0 or 1</td></tr><tr><td>0 or 1</td></tr><tr><td>0 or 1</tr><tr><td>0 or 1</tr></table></td></td>
|
||||
<td valign="top"><table><tr><td>GPS Time or UTC Time</td></tr><tr><td>GPS PPS or UTC PPS</td></tr><tr><td>time is set or time is not set</td></tr><tr><td>have UTC info or no UTC info</td></tr><tr><td>Time from GPS or time from user</td></tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>10</td>
|
||||
<td></td>
|
||||
<td>Seconds</td>
|
||||
<td>UINT8</td>
|
||||
<td>0-59</td>
|
||||
<td>(60 for UTC leap second event)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>11</td>
|
||||
<td></td>
|
||||
<td>Minutes</td>
|
||||
<td>UINT8</td>
|
||||
<td>0-59</td>
|
||||
<td>Minutes of Hour</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>12</td>
|
||||
<td></td>
|
||||
<td>Hours</td>
|
||||
<td>UINT8</td>
|
||||
<td>0-23</td>
|
||||
<td>Hour of Day</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>13</td>
|
||||
<td></td>
|
||||
<td>Day of Month</td>
|
||||
<td>UINT8</td>
|
||||
<td>1-31</td>
|
||||
<td>Day of Month</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14</td>
|
||||
<td></td>
|
||||
<td>Month</td>
|
||||
<td>UINT8</td>
|
||||
<td>1-12</td>
|
||||
<td>Month of Year</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15-16</td>
|
||||
<td></td>
|
||||
<td>Year</td>
|
||||
<td>UINT16</td>
|
||||
<td></td>
|
||||
<td>Four digits of Year (e.g. 1998)</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<h4><b>Supplemental Timing Packet - 0x8FAC</h4>
|
||||
<center>
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>Byte</b></td>
|
||||
<td><b>Bit</b></td>
|
||||
<td><b>Item</b></td>
|
||||
<td><b>Type</b></td>
|
||||
<td><b>Value</b></td>
|
||||
<td><b>Description</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>0</td>
|
||||
<td></td>
|
||||
<td>Subcode</td>
|
||||
<td>UINT8</td>
|
||||
<td></td>
|
||||
<td>0xAC</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">1</td>
|
||||
<td></td>
|
||||
<td valign="top">Receiver Mode</td>
|
||||
<td valign="top">UINT8</td>
|
||||
<td valign="top"><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr><tr><td>6</td></tr></table></td>
|
||||
<td valign="top"><table><tr><td>Automatic (2D/3D)</td></tr><tr><td>Single Satellite (Time)</td></tr><tr><td>Horizontal (2D)</td></tr><tr><td>Full Position (3D)</td></tr><tr><td>DGPS Reference</td></tr><tr><td>Clock Hold (2D)</td></tr><tr><td>Overdetermined Clock</td></tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">2</td>
|
||||
<td></td>
|
||||
<td valign="top">Disciplining Mode</td>
|
||||
<td valign="top">UINT8</td>
|
||||
<td valign="top"><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr><tr><td>6</td></tr></table></td>
|
||||
<td valign="top"><table><tr>Normal<td></td></tr><tr><td>Power-Up</td></tr><tr><td>Auto Holdover</td></tr><tr><td>Manual Holdover</td></tr><tr><td>Recovery</td></tr><tr><td>Not Used</td></tr><tr><td>Disciplining disabled</td></tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td></td>
|
||||
<td>Self-Survey Progress</td>
|
||||
<td>UINT 8</td>
|
||||
<td>0-100%</td>
|
||||
<td></td>
|
||||
<tr>
|
||||
<td>4-7</td>
|
||||
<td></td>
|
||||
<td>Holdover Duration</td>
|
||||
<td>UINT 32</td>
|
||||
<td></td>
|
||||
<td>seconds</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">8-9</td>
|
||||
<td><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</tr><tr><td>4</tr></table></td>
|
||||
<td valign="top">Critical Alarms</td>
|
||||
<td valign="top">UINT16</td>
|
||||
<td valign="top">Bit field</td>
|
||||
<td valign="top"><table><tr><td>ROM checksum error</td></tr><tr><td>RAM check has failed</td></tr><tr><td>Power supply failure</td></tr><tr><td>FPGA check has failed</td></tr><tr><td>Oscillator control voltage at rail</td></tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">10-11</td>
|
||||
<td valign="top"><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</tr><tr><td>4</tr><tr><td>5</td></tr><tr><td>6</td></tr></table></td>
|
||||
<td valign="top">Minor Alarms</td>
|
||||
<td valign="top">UINT16</td>
|
||||
<td valign="top">Bit field</td>
|
||||
<td valign="top"><table><tr><td>Normal</td></tr><tr><td>Power-Up</td></tr><tr><td>Auto Holdover</td></tr><tr><td>Manual Holdover</tr><tr><td>Recovery</tr><tr><td>Not Used</td></tr><tr><td>Disciplining disabled</td></tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">12</td>
|
||||
<td></td>
|
||||
<td valign="top">GPS Decoding Status</td>
|
||||
<td valign="top">UINT8</td>
|
||||
<td valign="top"><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>3</td></tr><tr><td>8</tr><tr><td>9</tr><tr><td>0x0A</td></tr><tr><td>0x0B</td></tr><tr><td>0x0C</td></tr><tr><td>0x10</tr></table></td>
|
||||
<td valign="top"><table><tr><td>Doing fixes</td></tr><tr><td>Don t have GPS time</td></tr><tr><td>PDOP is too high</td></tr><tr><td>No usable sats</tr><tr><td>Only 1 usable sat</tr><tr><td>Only 2 usable sats</td></tr><tr><td>Only 3 usable sats</td></tr><tr><td>The chosen sat is unusable</td></tr><tr><td>TRAIM rejected the fix</tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">13</td>
|
||||
<td></td>
|
||||
<td valign="top">Disciplining Activity</td>
|
||||
<td valign="top">UINT8</td>
|
||||
<td><table><tr><td>0</td></tr><tr><td>1</td></tr><tr><td>2</td></tr><tr><td>3</tr><tr><td>4</tr><tr><td>5</td></tr><tr><td>6</td></tr><tr><td>7</td></tr><tr><td>8</tr></table></td>
|
||||
<td><table><tr><td>Phase locking</td></tr><tr><td>Oscillator warming up</td></tr><tr><td>Frequency locking</td></tr><tr><td>Placing PPS</tr><tr><td>Initializing loop filter</tr><tr><td>Compensating OCXO</td></tr><tr><td>Inactive</td></tr><tr><td>Not used</td></tr><tr><td>Recovery mode</tr></table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>14</td>
|
||||
<td></td>
|
||||
<td>Spare Status 1</td>
|
||||
<td>UINT8</td>
|
||||
<td>0</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>15</td>
|
||||
<td></td>
|
||||
<td>Spare Status 2</td>
|
||||
<td>UINT8</td>
|
||||
<td>0</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>16-19</td>
|
||||
<td></td>
|
||||
<td>PPS Offset</td>
|
||||
<td>Single</td>
|
||||
<td></td>
|
||||
<td>Estimate of UTC/GPS offset (ns)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>20-23</td>
|
||||
<td></td>
|
||||
<td>10 MHz Offset</td>
|
||||
<td>Single</td>
|
||||
<td></td>
|
||||
<td>Estimate of UTC/GPS offset (ns)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>24-27</td>
|
||||
<td></td>
|
||||
<td>DAC Value</td>
|
||||
<td>UINT32</td>
|
||||
<td></td>
|
||||
<td>Offset binary (0x00 - 0xFFFFF)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>28-31</td>
|
||||
<td></td>
|
||||
<td>DAC Voltage</td>
|
||||
<td>Single</td>
|
||||
<td></td>
|
||||
<td>Volts</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>32-35</td>
|
||||
<td></td>
|
||||
<td>Temperature</td>
|
||||
<td>Single</td>
|
||||
<td></td>
|
||||
<td>degrees C</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>36-43</td>
|
||||
<td></td>
|
||||
<td>Latitude</td>
|
||||
<td>Double</td>
|
||||
<td></td>
|
||||
<td>radians</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>44-51</td>
|
||||
<td></td>
|
||||
<td>Longitude</td>
|
||||
<td>Double</td>
|
||||
<td></td>
|
||||
<td>radians</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>52-59</td>
|
||||
<td></td>
|
||||
<td>Altitude</td>
|
||||
<td>Double</td>
|
||||
<td></td>
|
||||
<td>Meters</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>60-67</td>
|
||||
<td></td>
|
||||
<td>Spare</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>For Future Expantion</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
<h2><a name="Pinouts"></a><font size="+1">Pinouts</font></h2>
|
||||
<a href="#Connection">The following connections are required when connecting Palisade with a host:</a><br> <br>
|
||||
<center>
|
||||
@ -762,12 +1069,19 @@
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
|
||||
<b><h3>Notes on the Thunderbolt Receiver's Firmware</h3></b>
|
||||
|
||||
The support for Thunderbolt Receiver in the palisade driver doesn't support (for now) event-polling, the reason is that the Thunderbolt receiver the patch is written for doesn't support time-on-request, so you just have to sit there and wait for the time to arrive with the PPS. We tried to contact Trimble because there's presumably a firmware update that support it, but we didn't have much luck.
|
||||
Here is a link explaining the situation:<p>
|
||||
<a href="https://lists.ntp.isc.org/pipermail/hackers/2006-April/002216.html">https://lists.ntp.isc.org/pipermail/hackers/2006-April/002216.html
|
||||
<p></p>
|
||||
<hr>
|
||||
<p>Questions or Comments:<br>
|
||||
<a href="mailto:sven_dietrich@trimble.com">Sven Dietrich</a><br>
|
||||
<a href="http://www.trimble.com/">Trimble Navigation Ltd.</a></p>
|
||||
<p>(last updated July 29, 1999)</p>
|
||||
<a href="mailto:fernandoph@iar.unlp.edu.ar">Fernando P. Hauscarriaga</a><br>
|
||||
<p>(last updated January 15, 2007)</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
;
|
||||
|
@ -1,117 +1,79 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<title>Ultralink Clock</title>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<link <link href="scripts/style.css" type="text/css" rel="stylesheet"> </HEAD> <BODY> <H3> Ultralink Clock</H3>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Ultralink Clock</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.34.<i>u</i><br>
|
||||
Reference ID: <tt>WWVB</tt><br>
|
||||
Driver ID: <tt>ULINK</tt><br>
|
||||
Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 bps, 8-bits, no parity<br>
|
||||
<br>
|
||||
Features: <tt>(none)</tt>
|
||||
<p>Address: 127.127.34.<i>u</i><br>
|
||||
Reference ID: <tt>WWVB</tt><br>
|
||||
Driver ID: <tt>ULINK</tt><br>
|
||||
Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 bps, 8-bits, no parity<br>
|
||||
Features: <tt>(none)</tt></p>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Ultralink Model 325 (replacement for Model 320) RS-232 powered WWVB receiver. PDF specs available on <a href="http://www.ulio.com/">http://www.ulio.com/</a>. This driver also supports the Model 320, 330,331,332 decoders in both polled or continous time code mode.<br>
|
||||
Leap second and quality are supported.</p>
|
||||
<p>Most of this code is originally from refclock_wwvb.c with thanks. Any mistakes are mine. Any improvements are welcome.</p>
|
||||
<hr>
|
||||
<pre> The Model 325 timecode format is:
|
||||
|
||||
<cr><lf>RQ_1C00LYYYY+DDDUTCS_HH:MM:SSL+5
|
||||
|
||||
where:
|
||||
|
||||
R = Signal readability indicator, ranging from R1 to R5
|
||||
Q R1 is unreadable, R5 is best reception
|
||||
_ = Space
|
||||
1 = prev. received data bit, values: 0, 1 ,M or ? unknown
|
||||
C = Signal reception from (C)olorado or (H)awaii
|
||||
0 = Hours since last WWVB time and flag code update, values
|
||||
0 00 to 99 (hopefully always 00)
|
||||
L = HEX A5 if receiver is locked to WWVB, Space if not
|
||||
YYYY = Year from 2000 to 2099
|
||||
+ = '+' if current year is a leap year, else ' '
|
||||
DDD = current day in the year from 1 to 365/366
|
||||
UTC = timezone (always UTC)
|
||||
S = Daylight savings indicator, (S)TD, (D)ST, (O) transition
|
||||
into DST, (I) transition out of DST
|
||||
_ = Space
|
||||
HH = UTC hour 0 to 23
|
||||
: = Time delimiter, ':' if synced, Space if not
|
||||
MM = Minutes of current hour from 0 to 59
|
||||
: = Time delimiter, ':' if synced, Space if not
|
||||
SS = Seconds of current minute from 0 to 59
|
||||
mm = 10's milliseconds of the current second from 00 to 99
|
||||
L = Leap second pending at end of month, (I)nsert, (D)elete
|
||||
or Space
|
||||
+5 = UT1 correction, +/- .1 sec increments
|
||||
</pre>
|
||||
<p>This driver supports the Ultralink Model 325 (replacement for Model 320) RS-232 powered WWVB receiver. PDF specs available on <a href="http://www.ulio.com/">http://www.ulio.com/</a>. This driver also supports the Model 320, 330,331,332 decoders in both polled or continous time code mode.Leap second and quality are supported. Most of this code is originally from refclock_wwvb.c with thanks. Any mistakes are mine. Any improvements are welcome.</p>
|
||||
<h4>Model 325 timecode format</h4>
|
||||
<p><tt><cr><lf>RQ_1C00LYYYY+DDDUTCS_HH:MM:SSL+5</tt></p>
|
||||
<p>R = Signal readability indicator, ranging from R1 to R5 Q R1 is unreadable, R5 is best reception<br>
|
||||
_ = Space<br>
|
||||
1 = prev. received data bit, values: 0, 1 ,M or ? unknown
|
||||
C = Signal reception from (C)olorado or (H)awaii 0 = Hours since last WWVB time and flag code update, values 0 00 to 99 (hopefully always 00)<br>
|
||||
L = HEX A5 if receiver is locked to WWVB, Space if not<br>
|
||||
YYYY = Year from 2000 to 2099<br>
|
||||
+ = '+' if current year is a leap year, else ' '<br>
|
||||
DDD = current day in the year from 1 to 365/366<br>
|
||||
UTC = timezone (always UTC)<br>
|
||||
S = Daylight savings indicator, (S)TD, (D)ST, (O) transition into DST, (I) transition out of DST<br>
|
||||
_ = Space<br>
|
||||
HH = UTC hour 0 to 23<br>
|
||||
: = Time delimiter, ':' if synced, Space if not<br>
|
||||
MM = Minutes of current hour from 0 to 59<br>
|
||||
: = Time delimiter, ':' if synced, Space if not<br>
|
||||
SS = Seconds of current minute from 0 to 59<br>
|
||||
mm = 10's milliseconds of the current second from 00 to 99<br>
|
||||
L = Leap second pending at end of month, (I)nsert, (D)elete or Space<br>
|
||||
+5 = UT1 correction, +/- .1 sec increments</p>
|
||||
<p>Note that Model 325 reports a very similar output like Model 33X series. The driver for this clock is similar to Model 33X behavior. On a unmodified new ULM325 clock, the polling flag (flag1 =1) needs to be set.</p>
|
||||
<hr>
|
||||
<pre> The Model 320 timecode format is:
|
||||
|
||||
<cr><lf>SQRYYYYDDD+HH:MM:SS.mmLT<cr>
|
||||
|
||||
where:
|
||||
|
||||
S = 'S' -- sync'd in last hour, '0'-'9' - hours x 10 since last update, else '?'
|
||||
Q = Number of correlating time-frames, from 0 to 5
|
||||
R = 'R' -- reception in progress, 'N' -- Noisy reception, ' ' -- standby mode
|
||||
YYYY = year from 1990 to 2089
|
||||
DDD = current day from 1 to 366
|
||||
+ = '+' if current year is a leap year, else ' '
|
||||
HH = UTC hour 0 to 23
|
||||
MM = Minutes of current hour from 0 to 59
|
||||
SS = Seconds of current minute from 0 to 59
|
||||
mm = 10's milliseconds of the current second from 00 to 99
|
||||
L = Leap second pending at end of month -- 'I' = inset, 'D'=delete
|
||||
T = DST <-> STD transition indicators
|
||||
</pre>
|
||||
<p>Note that this driver does not do anything with the T flag.</p>
|
||||
<p>The M320 also has a 'U' command which returns UT1 correction information. It is not used in this driver.</p>
|
||||
<hr>
|
||||
<pre> The Model 33x timecode format is:
|
||||
|
||||
S9+D 00 YYYY+DDDUTCS HH:MM:SSl+5
|
||||
|
||||
Where:
|
||||
|
||||
S = sync indicator S insync N not in sync
|
||||
the sync flag is WWVB decoder sync
|
||||
nothing to do with time being correct
|
||||
9+ = signal level 0 thru 9+ If over 9 indicated as 9+
|
||||
D = data bit ( fun to watch but useless ;-)
|
||||
space
|
||||
00 = hours since last GOOD WWVB frame sync
|
||||
space
|
||||
YYYY = current year
|
||||
+ = leap year indicator
|
||||
DDD = day of year
|
||||
UTC = timezone (always UTC)
|
||||
S = daylight savings indicator
|
||||
space
|
||||
HH = hours
|
||||
: = This is the REAL in sync indicator (: = insync)
|
||||
MM = minutes
|
||||
: = : = in sync ? = NOT in sync
|
||||
SS = seconds
|
||||
L = leap second flag
|
||||
+5 = UT1 correction (sign + digit ))
|
||||
</pre>
|
||||
<p>This driver ignores UT1 correction,DST indicator,Leap year and signal level.</p>
|
||||
<hr>
|
||||
<h4>Model 320 timecode format</h4>
|
||||
<p><tt><cr><lf>SQRYYYYDDD+HH:MM:SS.mmLT<cr></tt></p>
|
||||
<p>S = 'S' -- sync'd in last hour, '0'-'9' - hours x 10 since last update, else '?'<br>
|
||||
Q = Number of correlating time-frames, from 0 to 5<br>
|
||||
R = 'R' -- reception in progress,'N' -- Noisy reception, ' ' -- standby mode<br>
|
||||
YYYY = year from 1990 to 2089<br>
|
||||
DDD = current day from 1 to 366 + = '+' if current year is a leap year, else ' '<br>
|
||||
HH = UTC hour 0 to 23<br>
|
||||
MM = Minutes of current hour from 0 to 59<br>
|
||||
SS = Seconds of current minute from 0 to 59<br>
|
||||
mm = 10's milliseconds of the current second from 00 to 99<br>
|
||||
L = Leap second pending at end of month -- 'I' = insert, 'D'=delete<br>
|
||||
T = DST <-> STD transition indicators</p>
|
||||
<p>Note that this driver does not do anything with the T flag. The M320 also has a 'U' command which returns UT1 correction information. It is not used in this driver.</p>
|
||||
<h4>Model 33x timecode format</h4>
|
||||
<p><tt>S9+D 00 YYYY+DDDUTCS HH:MM:SSl+5</tt></p>
|
||||
<p>S = sync indicator S insync N not in sync the sync flag is WWVB decoder sync nothing to do with time being correct </p>
|
||||
<p>9+ = signal level 0 thru 9+ If over 9 indicated as 9<br>
|
||||
D = data bit (fun to watch but useless ;-) space<br>
|
||||
00 = hours since last GOOD WWVB frame sync space<br>
|
||||
YYYY = current year + = leap year indicator<br>
|
||||
DDD = day of year<br>
|
||||
UTC = timezone (always UTC)<br>
|
||||
S = daylight savings indicator space<br>
|
||||
HH = hours : = This is the REAL in sync indicator (: = insync)<br>
|
||||
MM = minutes : = : = in sync ? = NOT in sync<br>
|
||||
SS = seconds<br>
|
||||
L = leap second flag<br>
|
||||
+5 = UT1 correction (sign + digit ))</p>
|
||||
<p>This driver ignores UT1 correction, DST indicator,Leap year and signal level.</p>
|
||||
<h4>Fudge factors</h4>
|
||||
<p>flag1 polling enable (1=poll 0=no poll)</p>
|
||||
<hr>
|
||||
<address><a href="mailto:frank.migge@oracle.com">mail</a></address>
|
||||
<!-- hhmts start -->Last modified: Mon Mar 8 10:12:08 PST 2004<!-- hhmts end -->
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="Ultralink Clock_files/footer.txt"></script>
|
||||
</BODY>
|
||||
</head>
|
||||
|
||||
</html>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -18,73 +18,73 @@
|
||||
Driver ID: <tt>WWV_AUDIO</tt><br>
|
||||
Autotune Port: <tt>/dev/icom</tt>; 1200/9600 baud, 8-bits, no parity<br>
|
||||
Audio Device: <tt>/dev/audio</tt> and <tt>/dev/audioctl</tt>
|
||||
<h4>Description</h4>
|
||||
This driver synchronizes the computer time using data encoded in shortwave radio transmissions from NIST time/frequency stations <a href="http://www.bldrdoc.gov/timefreq/stations/wwv.html">WWV</a> in Ft. Collins, CO, and <a href="http://www.bldrdoc.gov/timefreq/stations/wwvh.htm">WWVH</a> in Kauai, HI. Transmissions are made continuously on 2.5, 5, 10 and 15 MHz from both stations and on 20 MHz from WWV. An ordinary shortwave receiver can be tuned manually to one of these frequencies or, in the case of ICOM receivers, the receiver can be tuned automatically by the driver as propagation conditions change throughout the day and season. The performance of this driver when tracking one of the stations is ordinarily better than 1 ms in time with frequency drift less than 0.1 PPM when not tracking any station.<p>The demodulation and decoding algorithms used by this driver are based on a machine language program developed for the TAPR DSP93 DSP unit, which uses the TI 320C25 DSP chip. The analysis, design and performance of the program running on this unit is described in: Mills, D.L. A precision radio clock for WWV transmissions. Electrical Engineering Report 97-8-1, University of Delaware, August 1997, 25 pp. Available from <a href="http://www.eecis.udel.edu/%7emills/reports.html">www.eecis.udel.edu/~mills/reports.htm</a>. For use in this driver, the original program was rebuilt in the C language and adapted to the NTP driver interface. The algorithms have been modified to improve performance, especially under weak signal conditions and to provide an automatic frequency and station selection feature.</p>
|
||||
<h4>Description</h4>This driver synchronizes the computer time using shortwave radio transmissions from NIST time/frequency stations <a href="http://www.bldrdoc.gov/timefreq/stations/wwv.html">WWV</a> in Ft. Collins, CO, and <a href="http://www.bldrdoc.gov/timefreq/stations/wwvh.htm">WWVH</a> in Kauai, HI. Transmissions are made continuously on 2.5, 5, 10 and 15 MHz from both stations and on 20 MHz from WWV. An ordinary shortwave receiver can be tuned manually to one of these frequencies or, in the case of ICOM receivers, the receiver can be tuned automatically by the driver as propagation conditions change throughout the day and season. The radio is connected via an optional attenuator and cable to either the microphone or line-in port of a workstation or PC.
|
||||
<p>The driver requires an audio codec or sound card with sampling rate 8 kHz and <font face="symbol">m</font>-law companding to demodulate the data. This is the same standard as used by the telephone industry and is supported by most hardware and operating systems, including Solaris, FreeBSD and Linux, among others. In this implementation only one audio driver and codec can be supported on a single machine. In order to assure reliable signal capture, the codec frequency error must be less than 187 PPM (.0187 percent). If necessary, the <tt>tinker codec</tt> configuration command can be used to bracket the codec frequency to this range.</p>
|
||||
<p>In general and without calibration, the driver is accurate within 1 ms relative to the broadcast time when tracking a station. However, variations up to 0.3 ms can be expected due to diurnal variations in ionospheric layer height and ray geometry. In Newark DE, 2479 km from the transmitter, the predicted two-hop propagation delay varies from 9.3 ms in sunlight to 9.0 ms in moonlight. When not tracking the station the accuracy depends on the computer clock oscillator stability, ordinarily better than 0.5 PPM.</p>
|
||||
<p>After calibration relative to the PPS signal from a GPS receiver, the mean offset with a 2.4-GHz P4 running FreeBSD 6.1 is generally within 0.1 ms short-term with 0.4 ms jitter. The long-term mean offset varies up to 0.3 ms due to propagation path geometry variations. The processor load due to the driver is 0.4 percent on the P4.</p>
|
||||
<p>The driver performs a number of error checks to protect against overdriven or underdriven input signal levels, incorrect signal format or improper hardware configuration. The specific checks are detailed later in this page. Note that additional checks are done elsewhere in the reference clock interface routines.</p>
|
||||
<p>This driver incorporates several features in common with other audio drivers such as described in the <a href="driver7.html">Radio CHU Audio Demodulator/Decoder</a> and the <a href="driver6.html">IRIG Audio Decoder</a> pages. They include automatic gain control (AGC), selectable audio codec port and signal monitoring capabilities. For a discussion of these common features, as well as a guide to hookup, debugging and monitoring, see the <a href="../audio.html">Reference Clock Audio Drivers</a> page.</p>
|
||||
<p>The WWV signal format is described in NIST Special Publication 432 (Revised 1990). It consists of three elements, a 5-ms, 1000-Hz pulse, which occurs at the beginning of each second, a 800-ms, 1000-Hz pulse, which occurs at the beginning of each minute, and a pulse-width modulated 100-Hz subcarrier for the data bits, one bit per second. The WWVH format is identical, except that the 1000-Hz pulses are sent at 1200 Hz. Each minute encodes nine BCD digits for the time of century plus seven bits for the daylight savings time (DST) indicator, leap warning indicator and DUT1 correction.</p>
|
||||
<h4>Program Architecture</h4>
|
||||
<p>As in the original program, the clock discipline is modelled as a Markov process, with probabilistic state transitions corresponding to a conventional clock and the probabilities of received decimal digits. The result is a performance level which results in very high accuracy and reliability, even under conditions when the minute beep of the signal, normally its most prominent feature, can barely be detected by ear using a communications receiver.</p>
|
||||
<p>The analog audio signal from the shortwave radio is sampled at 8000 Hz and converted to digital representation. The 1000/1200-Hz pulses and 100-Hz subcarrier are first separated using two IIR filters, a 600-Hz bandpass filter centered on 1100 Hz and a 150-Hz lowpass filter. The minute synch pulse is extracted using an 800-ms synchronous matched filter and pulse grooming logic which discriminates between WWV and WWVH signals and noise. The second synch pulse is extracted using a 5-ms FIR matched filter and 8000-stage comb filter.</p>
|
||||
<p>The phase of the 100-Hz subcarrier relative to the second synch pulse is fixed at the transmitter; however, the audio stage in many radios affects the phase response at 100 Hz in unpredictable ways. The driver adjusts for each radio using two 170-ms synchronous matched filters. The I (in-phase) filter is used to demodulate the subcarrier envelope, while the Q (quadrature-phase) filter is used in a tracking loop to discipline the codec sample clock and thus the demodulator phase.</p>
|
||||
<p>A bipolar data signal is determined from the matched filter I and Q channels using a pulse-width discriminator. The discriminator samples the I channel at 15 ms (<i>n</i>), 200 ms (<i>s</i><sub>1</sub>) and 500 ms (<i>s</i><sub>0</sub>), and the envelope (RMS I and Q channels) at 200 ms (<i>e</i><sub>1</sub>) and the end of the second (<i>e</i><sub>0</sub>). The bipolar data signal is expressed <i>s</i><sub>1</sub> - 2<i>s</i><sub>0 </sub>- <i>n.</i> Note that, since the signals <i>s</i><sub>0</sub> and <i>s</i><sub>1</sub> include the noise <i>n</i>, this term cancels out. The data bit SNR is calculated as 20 log<sub>10</sub>(<i>e</i><sub>1</sub> / <i>e</i><sub>0</sub>). If the driver has not synchronized to the minute pulse, or if the data bit amplitude <i>e</i><sub>1</sub> or SNR are below thresholds, the bit is considered invalid and the bipolar signal is forced to zero.</p>
|
||||
<h4>Technical Overview</h4>
|
||||
<p>The driver processes 8-kHz <font face="symbol">m</font>-law companded codec samples using maximum-likelihood techniques which exploit the considerable degree of redundancy available in the broadcast signal. The WWV signal format is described in NIST Special Publication 432 (Revised 1990) and also available on the <a href="http://tf.nist.gov/stations/wwvtimecode.htm">WWV/H web site</a>. It consists of three elements, a 5-ms, 1000-Hz pulse, which occurs at the beginning of each second, a 800-ms, 1000-Hz pulse, which occurs at the beginning of each minute, and a pulse-width modulated 100-Hz subcarrier for the data bits, one bit per second. The WWVH format is identical, except that the 1000-Hz pulses are sent at 1200 Hz. Each minute encodes nine BCD digits for the time of century plus seven bits for the daylight savings time (DST) indicator, leap warning indicator and DUT1 correction.</p>
|
||||
<p>The demodulation and decoding algorithms used by this driver are based on a machine language program developed for the TAPR DSP93 DSP unit, which uses the TI 320C25 DSP chip. The analysis, design and performance of the program for this unit is described in: Mills, D.L. A precision radio clock for WWV transmissions. Electrical Engineering Report 97-8-1, University of Delaware, August 1997, 25 pp. Available from <a href="http://www.eecis.udel.edu/%7emills/reports.html">www.eecis.udel.edu/~mills/reports.htm</a>. For use in this driver, the original program was rebuilt in the C language and adapted to the NTP driver interface. The algorithms have been modified to improve performance, especially under weak signal conditions and to provide an automatic frequency and station selection feature.</p>
|
||||
<p>As in the original program, the clock discipline is modelled as a Markov process, with probabilistic state transitions corresponding to a conventional clock and the probabilities of received decimal digits. The result is a performance level with very high accuracy and reliability, even under conditions when the minute beep of the signal, normally its most prominent feature, can barely be detected by ear using a communications receiver.</p>
|
||||
<h4>Baseband Signal Processing</h4>
|
||||
<p>The 1000/1200-Hz pulses and 100-Hz subcarrier are first separated using a 600-Hz bandpass filter centered on 1100 Hz and a 150-Hz lowpass filter. The minute pulse is extracted using an 800-ms synchronous matched filter and pulse grooming logic which discriminates between WWV and WWVH signals and noise. The second pulse is extracted using a 5-ms FIR matched filter for each station and a single 8000-stage comb filter.</p>
|
||||
<p>The phase of the 100-Hz subcarrier relative to the second pulse is fixed at the transmitter; however, the audio stage in many radios affects the phase response at 100 Hz in unpredictable ways. The driver adjusts for each radio using two 170-ms synchronous matched filters. The I (in-phase) filter is used to demodulate the subcarrier envelope, while the Q (quadrature-phase) filter is used in a type-1 phase-lock loop (PLL) to discipline the demodulator phase.</p>
|
||||
<p>A bipolar data signal is determined from the matched filter subcarrier envelope using a pulse-width discriminator. The discriminator samples the I channel at 15 ms (<i>n</i>), 200 ms (<i>s</i><sub>0</sub>) and 500 ms (<i>s</i><sub>1</sub>), and the envelope (RMS I and Q channels) at 200 ms (<i>e</i><sub>1</sub>) and the end of the second (<i>e</i><sub>0</sub>). The bipolar data signal is expressed 2<i>s</i><sub>1</sub> - <i>s</i><sub>0</sub> - <i>n</i>, where positive values correspond to data 1 and negative values correspond to data 0. Note that, since the signals <i>s</i><sub>0</sub> and <i>s</i><sub>1</sub> include the noise <i>n</i>, the noise component cancels out. The data bit SNR is calculated as 20 log<sub>10</sub>(<i>e</i><sub>1</sub> / <i>e</i><sub>0</sub>). If the driver has not synchronized to the minute pulse, or if the data bit amplitude <i>e</i><sub>1</sub> or SNR are below thresholds, the bit is considered invalid and the bipolar signal is forced to zero.</p>
|
||||
<p>The bipolar signal is exponentially averaged in a set of 60 accumulators, one for each second, to determine the semi-static miscellaneous bits, such as DST indicator, leap second warning and DUT1 correction. In this design a data average value larger than a positive threshold is interpreted as +1 (hit) and a value smaller than a negative threshold as a -1 (miss). Values between the two thresholds, which can occur due to signal fades, are interpreted as an erasure and result in no change of indication.</p>
|
||||
<p>The BCD digit in each digit position of the timecode is represented as four data bits. The bits are correlated with the bits corresponding to each of the valid decimal digits in this position. If any of the four bits are invalid, the correlated value for all digits in this position is assumed zero. In either case, the values for all digits are exponentially averaged in a likelihood vector associated with this position. The digit associated with the maximum over all averaged values then becomes the maximum likelihood selection for this position and the ratio of the maximum over the next lower value represents the digit SNR.</p>
|
||||
<p>The decoding matrix contains nine row vectors, one for each digit position. Each row vector includes the maximum likelihood digit, likelihood vector and other related data. The maximum likelihood digit for each of the nine digit positions becomes the maximum likelihood time of the century. A built-in transition function implements a conventional clock with decimal digits that count the minutes, hours, days and years, as corrected for leap seconds and leap years. The counting operation also rotates the likelihood vector corresponding to each digit as it advances. Thus, once the clock is set, each clock digit should correspond to the maximum likelihood digit as transmitted.</p>
|
||||
<p>Each row of the decoding matrix also includes a compare counter and the most recently determined maximum likelihood digit. If a digit likelihood exceeds the decision level and compares with previous digits for a number of successive minutes in any row, the maximum likelihood digit replaces the clock digit in that row. When this condition is true for all rows and the second epoch has been reliably determined, the clock is set (or verified if it has already been set) and delivers correct time to the integral second. The fraction within the second is derived from the logical master clock, which runs at 8000 Hz and drives all system timing functions.</p>
|
||||
<p>The logical master clock is derived from the audio codec clock. Its frequency is disciplined by a frequency-lock loop (FLL) which operates independently of the data recovery functions. At averaging intervals determined by the measured jitter, the frequency error is calculated as the difference between the most recent and the current second epoch divided by the interval. The sample clock frequency is then corrected by this amount. When first started, the frequency averaging interval is eight seconds, in order to compensate for intrinsic codec clock frequency offsets up to 125 PPM. Under most conditions, the averaging interval doubles in stages from the initial value to over 1000 seconds, which results in an ultimate frequency precision of 0.125 PPM, or about 11 ms/day.</p>
|
||||
<p>It is important that the logical clock frequency is stable and accurately determined, since in most applications the shortwave radio will be tuned to a fixed frequency where WWV or WWVH signals are not available throughout the day. In addition, in some parts of the US, especially on the west coast, signals from either or both WWV and WWVH may be available at different times or even at the same time. Since the propagation times from either station are almost always different, each station must be reliably identified before attempting to set the clock.</p>
|
||||
<p>Reliable station identification requires accurate discrimination between very weak signals in noise and noise alone. The driver very aggresively soaks up every scrap of signal information, but has to be careful to avoid making pseudo-sense of noise alone. The signal quality metric depends on the minute pulse amplitude and SNR measured in second 0 of the minute, together with the data subcarrier amplitude and SNR measured in second 1. If all four values are above defined thresholds a hit is declared, otherwise a miss. The number of hits declared in the last six minutes by each station represents the high order bits of the metric value, while the current minute pulse amplitude repressents the low order bits. The resulting value is then scaled from zero to 100 for use as a quality indicator. It is used by the autotune function described below and reported in the timecode string.</p>
|
||||
<h4>Maximum-Likelihood Decoder</h4>
|
||||
<p>The BCD digit in each digit position of the timecode is represented as four data bits. The bits are correlated with the bits corresponding to each of the valid decimal digits in this position. If any of the four bits are invalid, the correlated value for all digits in this position is assumed zero. In either case, the values for all digits are exponentially averaged in a likelihood vector associated with this position. The digit associated with the maximum over all averaged values then becomes the maximum-likelihood candidate for this position and the ratio of the maximum over the next lower value represents the digit SNR.</p>
|
||||
<p>The decoding matrix contains nine row vectors, one for each digit position. Each row vector includes the maximum-likelihood digit, likelihood vector and other related data. The maximum-likelihood digit for each of the nine digit positions becomes the maximum-likelihood time of the century. A built-in transition function implements a conventional clock with decimal digits that count the minutes, hours, days and years, as corrected for leap seconds and leap years. The counting operation also rotates the likelihood vector corresponding to each digit as it advances. Thus, once the clock is set, each clock digit should correspond to the maximum-likelihood digit as transmitted.</p>
|
||||
<p>Each row of the decoding matrix also includes a compare counter and the most recently determined maximum-likelihood digit. If a digit likelihood exceeds the decision level and compares with previous digits for a number of successive minutes in any row, the maximum-likelihood digit replaces the clock digit in that row. When this condition is true for all rows and the second epoch has been reliably determined, the clock is set (or verified if it has already been set) and delivers correct time to the integral second. The fraction within the second is derived from the logical master clock, which runs at 8000 Hz and drives all system timing functions.</p>
|
||||
<h4>Master Clock Discipline</h4>
|
||||
<p>The logical master clock is derived from the audio codec clock. Its frequency is disciplined by a frequency-lock loop (FLL) which operates independently of the data recovery functions. The maximum value of the 5-ms pulse after the comb filter represents the on-time epoch of the second. At averaging intervals determined by the measured jitter, the frequency error is calculated as the difference between the epoches over the interval divided by the interval itself. The sample clock frequency is then corrected by this amount divided by a time constant of 8.</p>
|
||||
<p>When first started, the frequency averaging interval is 8 seconds, in order to compensate for intrinsic codec clock frequency offsets up to 125 PPM. Under most conditions, the averaging interval doubles in stages from the initial value to 1024 s, which results in an ultimate frequency resolution of 0.125 PPM, or about 11 ms/day.</p>
|
||||
<p>The data demodulation functions operate using the subcarrier clock, which is independent of the epoch. However, the data decoding functions are driven by the epoch. The decoder is phase-locked to the epoch in such a way that, when the clock state machine has reliably decoded the broadcast time to the second, the epoch timestamp of that second becomes a candidate to set the system clock.</p>
|
||||
<p>The comb filter can have a long memory and is vulnerable to noise and stale data, especially when coming up after a long fade. Therefore, a candidate is considered valid only if the 5-ms signal amplitude and SNR are above thresholds. In addition, the system clock is not set until after one complete averaging interval has passed with valid candidates.</p>
|
||||
<h4>Station Identification</h4>
|
||||
<p>It is important that the logical clock frequency is stable and accurately determined, since in many applications the shortwave radio will be tuned to a fixed frequency where WWV or WWVH signals are not available throughout the day. In addition, in some parts of the US, especially on the west coast, signals from either or both WWV and WWVH may be available at different times or even at the same time. Since the propagation times from either station are almost always different, each station must be reliably identified before attempting to set the clock.</p>
|
||||
<p>Reliable station identification requires accurate discrimination between very weak signals in noise and noise alone. The driver very aggressively soaks up every scrap of signal information, but has to be careful to avoid making pseudo-sense of noise alone. The signal quality metric depends on the minute pulse amplitude and SNR measured in second 0 of the minute, together with the data subcarrier amplitude and SNR measured in second 1. If all four values are above defined thresholds a hit is declared, otherwise a miss. In principle, the data pulse in second 58 is usable, but the AGC in most radios is not fast enough for a reliable measurement.</p>
|
||||
<p>The number of hits declared in the last 6 minutes for each station represents the high order bits of the metric, while the current minute pulse amplitude represents the low order bits. Only if the metric is above a defined threshold is the station signal considered acceptable. The metric is also used by the autotune function described below and reported in the timecode string.</p>
|
||||
<h4>Performance</h4>
|
||||
<p>It is the intent of the design that the accuracy and stability of the indicated time be limited only by the characteristics of the ionospheric propagation medium. Conventional wisdom is that synchronization via the HF medium is good only to a millisecond under the best propagation conditions. The performance of the NTP daemon disciplined by the driver is clearly better than this, even under marginal conditions. Ordinarily, with marginal to good signals and a frequency averaging interval of 1024 s, the frequency is stabilized within 0.1 PPM and the time within 0.5 ms. The frequency stability characteristic is highly important, since the clock may have to free-run for several hours before reacquiring the WWV/H signal.</p>
|
||||
<p>The expected accuracy over a typical day was determined using the DSP93 and an oscilloscope and cesium oscillator calibrated with a GPS receiver. With marginal signals and allowing 15 minutes for initial synchronization and frequency compensation, the time accuracy determined from the WWV/H second synch pulse was reliably within 125 <font face="Symbol">m</font>s. In the particular DSP93 used for program development, the uncorrected CPU clock frequency offset was 45.8±0.1 PPM. Over the first hour after initial synchronization, the clock frequency drifted about 1 PPM as the frequency averaging interval increased to the maximum 1024 s. Once reaching the maximum, the frequency wandered over the day up to 1 PPM, but it is not clear whether this is due to the stability of the DSP93 clock oscillator or the changing height of the ionosphere. Once the frequency had stabilized and after loss of the WWV/H signal, the frequency drift was less than 0.5 PPM, which is equivalent to 1.8 ms/h or 43 ms/d. This resulted in a step phase correction up to several milliseconds when the signal returned.</p>
|
||||
<p>The measured propagation delay from the WWV transmitter at Boulder, CO, to the receiver at Newark, DE, is 23.5±0.1 ms. This is measured to the peak of the pulse after the second synch comb filter and includes components due to the ionospheric propagation delay, nominally 8.9 ms, communications receiver delay and program delay. The propagation delay can be expected to change about 0.2 ms over the day, as the result of changing ionosphere height. The DSP93 program delay was measured at 5.5 ms, most of which is due to the 400-Hz bandpass filter and 5-ms matched filter. Similar delays can be expected of this driver.</p>
|
||||
<h4>Program Operation</h4>The driver begins operation immediately upon startup. It first searches for one or both of the stations WWV and WWVH and attempts to acquire minute synch. This may take some fits and starts, as the driver expects to see several consecutive minutes with good signals and low jitter. If the autotune function is active, the driver will rotate over all five frequencies and both WWV and WWVH stations until at least three good minutes are found.<p>When a minute synch candidate has been found, the driver acquires second synch, which can take up to several minutes, depending on signal quality. At the same time the driver accumulates likelihood values for the unit (seconds) digit of the nine digits of the timecode, plus the seven miscellaneous bits included in the WWV/H transmission format. When a good unit digit has been found, the driver accumlates likelihood values for the remaining eight digits of the timecode. When three repetitions of all nine digits have decoded correctly, which normally takes 15 minutes with good signals, and up to 40 minutes when buried in noise, and the second synch has been acquired, the clock is set (or verified) and is selectable to discipline the system clock.</p>
|
||||
<p>Once the clock is set, it continues to provide correct timecodes, even if all signals are losst. The time is considered correct as long as the second synch amplitude and SNR are above specified thresholds and jitter is below threshold. As long as the clock is set or verified, the system clock offsets are provided once each minute to the reference clock interface, where they are processed using the same algorithms used with other local reference clocks and remote servers. Using these algorithms, the system clock can in principle be disciplined to a much finer resolution than the 125-<font face="Symbol">m</font>s sample interval would suggest, although the ultimate accuracy is probably limited by propagation delay variations as the ionspheric height varies throughout the day and night.</p>
|
||||
<p>The codec clock frequency is disciplined during times when WWV/H signals are available. The algorithm refines the frequency offset using increasingly longer averaging intervals to 1024 s, where the precision is about 0.1 PPM. With good signals, it takes well over two hours to reach this degree of precision; however, it can take many more hours than this in case of marginal signals. Once reaching the limit, the algorithm will follow frequency variations due to temperature fluctuations and ionospheric height variations.</p>
|
||||
<p>It is the intent of the design that the accuracy and stability of the indicated time be limited only by the characteristics of the ionospheric propagation medium. Conventional wisdom is that manual synchronization via oscilloscope and HF medium is good only to a millisecond under the best propagation conditions. The performance of the NTP daemon disciplined by this driver is clearly better than this, even under marginal conditions.</p>
|
||||
<p>The figure below shows the measured offsets over a typical day near the bottom of the sunspot cycle ending in October, 2006. Variations up to ±0.4 ms can be expected due to changing ionospheric layer height and ray geometry over the day and night.</p>
|
||||
<div align="center">
|
||||
<img src="../pic/offset1211.gif" alt="gif"></div>
|
||||
<p>The figure was constructed using a 2.4-GHz P4 running FreeBSD 6.1. For these measurements the computer clock was disciplined within a few microseconds of UTC using a PPS signal and GPS receiver and the measured offsets determined from the filegen peerstats data.</p>
|
||||
<p>The predicted propagation delay from the WWV transmitter at Boulder, CO, to the receiver at Newark, DE, varies over 9.0-9.3 ms. In addition, the receiver contributes 4.7 ms and the 600-Hz bandpass filter 0.9 ms. With these values, the mean error is less than 0.1 ms and varies ±0.3 ms over the day as the result of changing ionospheric height and ray geometry.</p>
|
||||
<h4>Program Operation</h4>
|
||||
The driver begins operation immediately upon startup. It first searches for one or both of the stations WWV and WWVH and attempts to acquire minute synch. This may take some fits and starts, as the driver expects to see several consecutive minutes with good signals and low jitter. If the autotune function is active, the driver will rotate over all five frequencies and both WWV and WWVH stations until finding a station and frequency with acceptable metric.
|
||||
<p>While this is going on the the driver acquires second synch, which can take up to several minutes, depending on signal quality. When minute synch has been acquired, the driver accumulates likelihood values for the unit (seconds) digit of the nine timecode digits, plus the seven miscellaneous bits included in the WWV/H transmission format. When a good unit digit has been found, the driver accumulated likelihood values for the remaining eight digits of the timecode. When three repetitions of all nine digits have decoded correctly, which normally takes 15 minutes with good signals, and up to 40 minutes when buried in noise, and the second synch has been acquired, the clock is set (or verified) and is selectable to discipline the system clock.</p>
|
||||
<p>Once the clock is set, it continues to provide correct timecodes as long as the signal metric is above threshold, as described in the previous section. As long as the clock is correctly set or verified, the system clock offsets are provided once each minute to the reference clock interface, where they are processed using the same algorithms as with other reference clocks and remote servers.</p>
|
||||
<p>It may happen as the hours progress around the clock that WWV and WWVH signals may appear alone, together or not at all. When the driver has mitigated which station and frequency is best, it sets the reference identifier to the string WV<i>f</i> for WWV and WH<i>f</i> for WWVH, where <i>f</i> is the frequency in megahertz. If the propagation delays have been properly set with the <tt>fudge time1</tt> (WWV) and <tt>fudge time2</tt> (WWVH) commands in the configuration file, handover from one station to the other is seamless.</p>
|
||||
<p>Once the clock has been set for the first time, it will appear reachable and selectable to discipline the system clock. Operation continues as long as the signal quality from at least one station on at least one frequency is acceptable. A consequence of this design is that, once the clock is set, the time and frequency are disciplined only by the second synch pulse and the clock digits themselves are driven by the clock state machine. If for some reason the state machine drifts to the wrong second, it would never reresynchronize. To protect against this most unlikely situation, if after two days with no signals, the clock is considered unset and resumes the synchronization procedure from the beginning.</p>
|
||||
<p>However, as long as the clock has once been set correctly and allowed to converge to the intrinsic codec clock frequency, it will continue to read correctly even during the holdover interval, but with increasing dispersion. Assuming the clock frequency can be disciplined within 1 PPM, it can coast without signals for several days without exceeding the NTP step threshold of 128 ms. During such periods the root dispersion increases at 5 <font face="Symbol">m</font>s per second, which makes the driver appear less likely for selection as time goes on. Eventually, when the dispersion due all causes exceeds 1 s, it is no longer suitable for synchronization.</p>
|
||||
<p>To work well, the driver needs a shortwave receiver with good audio response at 100 Hz. Most shortwave and communications receivers roll off the audio response below 250 Hz, so this can be a problem, especially with receivers using DSP technology, since DSP filters can have very fast rolloff outside the passband. Some DSP transceivers, in particular the ICOM 775, have a programmable low frequency cutoff which can be set as low as 80 Hz. However, this particular radio has a strong low frequency buzz at about 10 Hz which appears in the audio output and can affect data recovery under marginal conditions. Although not tested, it would seem very likely that a cheap shortwave receiver could function just as well as an expensive communications receiver.</p>
|
||||
<p>Operation continues as long as the signal metric from at least one station on at least one frequency is acceptable. A consequence of this design is that, once the clock is set, the time and frequency are disciplined only by the second synch pulse and the clock digits themselves are driven by the clock state machine. If for some reason the state machine drifts to the wrong second, it would never resynchronize. To protect against this most unlikely situation, if after two days with no signals, the clock is considered unset and resumes the synchronization procedure from the beginning.</p>
|
||||
<p>Once the system clock been set correctly it will continue to read correctly even during the holdover interval, but with increasing dispersion. Assuming the system clock frequency can be disciplined within 1 PPM, it can coast without signals for several days without exceeding the NTP step threshold of 128 ms. During such periods the root distance increases at 15 <font face="Symbol">m</font>s per second, which makes the driver appear less likely for selection as time goes on. Eventually, when the distance due all causes exceeds 1 s, it is no longer suitable for synchronization. Ordinarily, this happens after about 18 hours with no signals. The <tt>tinker maxdist</tt> configuration command can be used to change this value.</p>
|
||||
<h4>Autotune</h4>
|
||||
<p>The driver includes provisions to automatically tune the radio in response to changing radio propagation conditions throughout the day and night. The radio interface is compatible with the ICOM CI-V standard, which is a bidirectional serial bus operating at TTL levels. The bus can be connected to a serial port using a level converter such as the CT-17.</p>
|
||||
<p>Each ICOM radio is assigned a unique 8-bit ID select code, usually expressed in hex format. To activate the CI-V interface, the <tt>mode</tt> keyword of the <tt>server</tt> configuration command specifies a nonzero select code in decimal format. A table of ID select codes for the known ICOM radios is given on the <a href="../audio.html">Reference Clock Audio Drivers</a> page. A missing <tt>mode</tt> keyword or a zero argument leaves the interface disabled.</p>
|
||||
<p>If specified, the driver will attempt to open the device <tt>/dev/icom</tt> and, if successful will activate the autotune function and tune the radio to each operating frequency in turn while attempting to acquire minute synch from either WWV or WWVH. However, the driver is liberal in what it assumes of the configuration. If the <tt>/dev/icom</tt> link is not present or the open fails or the CI-V bus or radio is inoperative, the driver quietly gives up with no harm done.</p>
|
||||
<p>Once acquiring minute synch, the driver operates as described above to set the clock. However, during seconds 59, 0 and 1 of each minute it tunes the radio to one of the five broadcast frequencies to measure the minute synch pulse amplitude and SNR in second 0 and data pulse amplitude and SNR in second 1 to update the signal metric. In principle, the data pulse in second 58 is usable, but the AGC in most radios is not fast enough for a reliable measurement. Each of the five frequencies are probed in a five-minute rotation to build a database of current propagation conditions for all signals that can be heard at the time. At the end of each probe a mitigation procedure scans the database and retunes the radio to the best frequency and station found. For this to work well, the radio should be set for a fast AGC recovery time. This is most important while tracking a strong signal, which is normally the case, and then probing another frequency, which may have much weaker signals.</p>
|
||||
<p>At the end of each probe, the frequency and station with the maximum metric is chosen, with ties going first to the highest frequency and then to WWV in order. A station is considered valid only if the metric is above a specified threshold' if below, the rotating probes continue until a valid station is found.</p>
|
||||
<dl>
|
||||
</dl>
|
||||
<h4>Diagnostics</h4>
|
||||
<p>The driver includes provisions to automatically tune the radio in response to changing radio propagation conditions throughout the day and night. The radio interface is compatible with the ICOM CI-V standard, which is a bidirectional serial bus operating at TTL levels. The bus can be connected to a standard serial port using a level converter such as the CT-17. Further details are on the <a href="../audio.html">Reference Clock Audio Drivers</a> page.</p>
|
||||
<p>If specified, the driver will attempt to open the device <tt>/dev/icom</tt> and, if successful will activate the autotune function and tune the radio to each operating frequency in turn while attempting to acquire minute synch from either WWV or WWVH. However, the driver is liberal in what it assumes of the configuration. If the <tt>/dev/icom</tt> link is not present or the open fails or the CI-V bus is inoperative, the driver quietly gives up with no harm done.</p>
|
||||
<p>Once acquiring minute synch, the driver operates as described above to set the clock. However, during seconds 59, 0 and 1 of each minute it tunes the radio to one of the five broadcast frequencies to measure the signal metric as described above. Each of the five frequencies are probed in a five-minute rotation to build a database of current propagation conditions for all signals that can be heard at the time. At the end of each probe a mitigation procedure scans the database and retunes the radio to the best frequency and station found. For this to work well, the radio should be set for a fast AGC recovery time. This is most important while tracking a strong signal, which is normally the case, and then probing another frequency, which may have much weaker signals.</p>
|
||||
<p>The mitigation procedure selects the frequency and station with the highest valid metric, ties going first to the highest frequency and then to WWV in order. A station is considered valid only if the metric is above a specified threshold; if no station is above the metric, the rotating probes continue until a valid station is found.</p>
|
||||
<p>The behavior of the autotune function over a typical day is shown in the figure below.</p>
|
||||
<div align="center">
|
||||
<img src="../pic/freq1211.gif" alt="gif"></div>
|
||||
<p>As expected, the lower frequencies prevail when the ray path is in moonlight (0100-1300 UTC) and the higher frequencies when the path is in sunlight (1300-0100 UTC). Note three periods in the figure show zero frequency when signals are below the minimum for all frequencies and stations.</p>
|
||||
<h4>Debugging Aids</h4>
|
||||
<p>The most convenient way to track the driver status is using the <tt>ntpq</tt> program and the <tt>clockvar</tt> command. This displays the last determined timecode and related status and error counters, even when the driver is not disciplining the system clock. If the debugging trace feature (<tt>-d</tt> on the <tt>ntpd</tt> command line) is enabled, the driver produces detailed status messages as it operates. If the <tt>fudge flag 4</tt> is set, these messages are written to the <tt>clockstats</tt> file. All messages produced by this driver have the prefix <tt>wwv</tt> for convenient filtering with the Unix <tt>grep</tt> command.</p>
|
||||
<p>The autotune process produces diagnostic information along with the timecode. This is very useful for evaluating the performance of the algorithms, as well as radio propagation conditions in general. The message is produced once each minute for each frequency in turn after minute synch has been acquired.</p>
|
||||
<p><tt>wwv5 status agc epoch secamp/secsnr datamp/datsnr wwv wwvh</tt></p>
|
||||
<p>where the fields after the <tt>wwv5</tt> identifier are: <tt>status</tt> contains status bits, <tt>agc</tt> audio gain, <tt>epoch </tt>second epoch, <tt>secamp/secsnr </tt>second pulse ampliture/SNR, and <tt>wwv</tt> and <tt>wwvh</tt> are two sets of fields, one each for WWV and WWVH. Each of the two fields has the format</p>
|
||||
<p>where the fields after the <tt>wwv5</tt> identifier are: <tt>status</tt> contains status bits, <tt>agc</tt> audio gain, <tt>epoch </tt>second epoch, <tt>secamp/secsnr </tt>second pulse amplitude/SNR, and <tt>wwv</tt> and <tt>wwvh</tt> are two sets of fields, one each for WWV and WWVH. Each of the two fields has the format</p>
|
||||
<p><tt>ident score metric minamp/minsnr</tt></p>
|
||||
<p>where <tt>ident </tt>encodes the station (<tt>WV</tt> for WWV, <tt>WH</tt> for WWVH) and frequency (2, 5, 10, 15 or 20), <tt>score</tt> 32-bit shift register recording the hits (1) and misses (0) of the last 32 probes (hits and misses enter from the right), <tt>metric</tt> is described above, and <tt>minamp/minsnr</tt> minute pulse ampliture/SNR. An example is:</p>
|
||||
<p><tt>wwv5 000d 111 5753 3967/20.1 3523/10.2 WV20 bdeff 100 8348/30.0 WH20 0000 1 22/-12.4</tt></p>
|
||||
<p>where <tt>ident </tt>encodes the station (<tt>WV</tt> for WWV, <tt>WH</tt> for WWVH) and frequency (2, 5, 10, 15 or 20), <tt>score</tt> 32-bit shift register recording the hits (1) and misses (0) of the last 32 probes (hits and misses enter from the right), <tt>metric</tt> is described above, and <tt>minamp/minsnr</tt> is the minute pulse ampliture/SNR. An example is:</p>
|
||||
<pre><tt>wwv5 000d 111 5753 3967/20.1 3523/10.2 WV20 bdeff 100 8348/30.0 WH20 0000 1 22/-12.4</tt></pre>
|
||||
<p>There are several other messages that can occur; these are documented in the source listing.</p>
|
||||
<h4>Debugging Aids</h4>
|
||||
<p>The most convenient way to track the driver status is using the <tt>ntpq</tt> program and the <tt>clockvar</tt> command. This displays the last determined timecode and related status and error counters, even when the driver is not disciplining the system clock. If the debugging trace feature (<tt>-d</tt> on the <tt>ntpd</tt> command line)is enabled, the driver produces detailed status messages as it operates. If the <tt>fudge flag 4</tt> is set, these messages are written to the <tt>clockstats</tt> file. All messages produced by this driver have the prefix <tt>wwv</tt> for convenient filtering with the Unix <tt>grep</tt> command.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
|
||||
|
||||
When enabled by the <tt>filegen</tt> facility, every received timecode is written to the <tt>clockstats</tt> file in the following format:
|
||||
<p><tt>sq yyyy ddd hh:mm:ss ld du lset agc ident metric errs freq avg<br>
|
||||
s</tt> synch indicator (<tt>?</tt> or space)
|
||||
<tt>q </tt>quality character (see below)
|
||||
<tt>yyyy </tt>Gregorian year
|
||||
<tt>ddd </tt>day of year
|
||||
<tt>hh </tt>hour of day
|
||||
<tt>mm </tt>minute of hour
|
||||
<tt>l </tt>leap second warning <tt>L</tt>
|
||||
<tt>d </tt>DST state <tt>S, D, I, O</tt><br>
|
||||
<tt>dut </tt>DUT sign and magnitude
|
||||
<tt>lset </tt>minutes since last set
|
||||
<tt>agc </tt>audio gain
|
||||
<tt>ident </tt>station identifier and frequency
|
||||
<tt>metric </tt>signal metric (0-100)
|
||||
<tt>errs </tt>data bit errors in last minute
|
||||
<tt>freq </tt>codec frequency offset (PPM)
|
||||
<tt>avg </tt>frequency averaging interval (s)
|
||||
</p>
|
||||
The fields beginning with <tt>year</tt> and extending through <tt>dut</tt> are decoded from the received data and are in fixed-length format. The <tt>agc</tt> and <tt>lset</tt> fields, as well as the following driver-dependent fields, are in variable-length format.
|
||||
<p><tt>sq yyyy ddd hh:mm:ss l d du lset agc ident metric errs freq avg<br>
|
||||
</tt></p>
|
||||
The fields beginning with <tt>yyyy</tt> and extending through <tt>du</tt> are decoded from the received data and are in fixed-length format. The remaining fields are in variable-length format. The fields are as follows:
|
||||
<dl>
|
||||
<dt><tt>s</tt>
|
||||
<dd>The synch indicator is initially <tt>?</tt> before the clock is set, but turns to space when all nine digits of the timecode are correctly set and the decoder is synchronized to the station within 125 <font face="Symbol">m</font>s.
|
||||
@ -96,12 +96,13 @@
|
||||
<dt><tt>0x4</tt>
|
||||
<dd>Digit error alarm. Less than nine decimal digits were found in the last minute.<dt><tt>0x2</tt>
|
||||
<dd>Error alarm. More than 40 data bit errors were found in the last minute.<dt><tt>0x1</tt>
|
||||
<dd>Compare alarm. A maximum likelihood digit failed to agree with the current associated clock digit in the last minute.</dl>It is important to note that one or more of the above alarms does not necessarily indicate a clock error, but only that the decoder has detected a condition that may result in an error. However, the local clock update is not suppressed if any alarm bits are set other than a synch alarm.<dt><tt>yyyy ddd hh:mm:ss</tt>
|
||||
<dd>The timecode format itself is self explanatory. Since the driver latches the on-time epoch directly from the second synch pulse, the seconds fraction is always zero. Although the transmitted timecode includes only the year of century, the Gregorian year is augmented by 2000.<dt><tt>l</tt>
|
||||
<dd>The leap second warning is normally space, but changes to <tt>L</tt> if a leap second is to occur at the end of the month of June or December.
|
||||
<dd>Compare alarm. A maximum-likelihood digit failed to agree with the current associated clock digit in the last minute.</dl>It is important to note that one or more of the above alarms does not necessarily indicate a clock error, but only that the decoder has detected a marginal condition.<dt><tt>yyyy ddd hh:mm:ss</tt>
|
||||
<dd>The timecode format itself is self explanatory. Since the driver latches the on-time epoch directly from the second synch pulse, the seconds fraction is always zero. Although the transmitted timecode includes only the year of century, the Gregorian year is augmented by 2000.
|
||||
<dt><tt>l</tt>
|
||||
<dd>The leap second warning is normally space, but changes to <tt>L</tt> if a leap second is to occur at the end of the month.
|
||||
<dt><tt>d</tt>
|
||||
<dd>The DST state is <tt>S</tt> or <tt>D</tt> when standard time or daylight time is in effect, respectively. The state is <tt>I</tt> or <tt>O</tt> when daylight time is about to go into effect or out of effect, respectively.
|
||||
<dt><tt>dut</tt>
|
||||
<dt><tt>du</tt>
|
||||
<dd>The DUT sign and magnitude shows the current UT1 offset relative to the displayed UTC time, in deciseconds.
|
||||
<dt><tt>lset</tt>
|
||||
<dd>Before the clock is set, the interval since last set is the number of minutes since the driver was started; after the clock is set, this is number of minutes since the decoder was last synchronized to the station within 125 <font face="Symbol">m</font>s.
|
||||
@ -112,9 +113,9 @@
|
||||
<dt><tt>metric</tt>
|
||||
<dd>The signal metric described above from 0 (no signal) to 100 (best).
|
||||
<dt><tt>errs</tt>
|
||||
<dd>The bit error counter is useful to determine the quality of the data signal received in the most recent minute. It is normal to drop a couple of data bits under good signal conditions and increasing numbers as conditions worsen. While the decoder performs moderately well even with half the bits are in error in any minute, usually by that point the metric drops below threshold and the decoder switches to a different frequency.<dt><tt>freq</tt>
|
||||
<dd>The bit error counter is useful to determine the quality of the data signal received in the most recent minute. It is normal to drop a couple of data bits even under good signal conditions and increasing numbers as conditions worsen. While the decoder performs moderately well even with half the bits are in error in any minute, usually by that point the metric drops below threshold and the decoder switches to a different frequency.<dt><tt>freq</tt>
|
||||
<dd>The frequency offset is the current estimate of the codec frequency offset to within 0.1 PPM. This may wander a bit over the day due to local temperature fluctuations and propagation conditions.
|
||||
<dt><tt>avgt</tt>
|
||||
<dt><tt>avg</tt>
|
||||
<dd>The averaging time is the interval between frequency updates in powers of two to a maximum of 1024 s. Attainment of the maximum indicates the driver is operating at the best possible resolution in time and frequency.
|
||||
</dl>
|
||||
<p>An example timecode is:</p>
|
||||
|
@ -2,65 +2,107 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<title>Spectracom 8170 and Netclock/2 WWVB Receivers</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<title>Spectracom WWVB/GPS Receivers</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.style1 {font-family: Symbol}
|
||||
-->
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Spectracom 8170 and Netclock/2 WWVB Receivers</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.4.<i>u</i><br>
|
||||
Reference ID: <tt>WWVB</tt><br>
|
||||
Driver ID: <tt>WWVB_SPEC</tt><br>
|
||||
Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: <tt>tty_clk</tt>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports all known Spectracom radio and satellite clocks, including the Model 8170 and Netclock/2 WWVB Synchronized Clocks and the Netclock/GPS GPS Master Clock. The claimed accuracy of the WWVB clocks is 100 usec relative to the broadcast signal. These clocks have proven a reliable source of time, except in some parts of the country with high levels of conducted RF interference. WIth the GPS clock the claimed accuracy is 130 ns. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.</p>
|
||||
<p>The DIPswitches on these clocks should be set to 24-hour display, AUTO DST off, data format 0 or 2 (see below) and baud rate 9600. If this clock is used as the source for the IRIG Audio Decoder (<tt>refclock_irig.c</tt> in this distribution), set the DIPswitches for AM IRIG output and IRIG format 1 (IRIG B with signature control).</p>
|
||||
<p>There are two timecode formats used by these clocks. Format 0, which is available with all clocks, and format 2, which is available with all clocks except the original (unmodified) Model 8170.</p>
|
||||
<p>Format 0 (22 ASCII printing characters):<br>
|
||||
<cr><lf>i ddd hh:mm:ss TZ=zz<cr><lf></p>
|
||||
<p>on-time = first <cr><br>
|
||||
i = synchronization flag (' ' = in synch, '?' = out synch)<br>
|
||||
hh:mm:ss = hours, minutes, seconds</p>
|
||||
<p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours.</p>
|
||||
<p>Format 2 (24 ASCII printing characters):<br>
|
||||
lt;cr>lf>iqyy ddd hh:mm:ss.fff ld</p>
|
||||
<p>on-time = <cr><br>
|
||||
i = synchronization flag (' ' = in synch, '?' = out synch)<br>
|
||||
q = quality indicator (' ' = locked, 'A'...'D' = unlocked)<br>
|
||||
yy = year (as broadcast)<br>
|
||||
ddd = day of year<br>
|
||||
hh:mm:ss.fff = hours, minutes, seconds, milliseconds</p>
|
||||
<p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours. The unlock condition is indicated by other than ' ' at <tt>q</tt>.</p>
|
||||
<p>The <tt>q</tt> is normally ' ' when the time error is less than 1 ms and a character in the set <tt>A...D</tt> when the time error is less than 10, 100, 500 and greater than 500 ms respectively. The <tt>l</tt> is normally ' ', but is set to <tt>L</tt> early in the month of an upcoming UTC leap second and reset to ' ' on the first day of the following month. The <tt>d</tt> is set to <tt>S</tt> for standard time <tt>S</tt>, <tt>I</tt> on the day preceding a switch to daylight time, <tt>D</tt> for daylight time and <tt>O</tt> on the day preceding a switch to standard time. The start bit of the first <cr> is synchronized to the indicated time as returned.</p>
|
||||
<p>This driver does not need to be told which format is in use - it figures out which one from the length of the message. A three-stage median filter is used to reduce jitter and provide a dispersion measure. The driver makes no attempt to correct for the intrinsic jitter of the radio itself, which is a known problem with the older radios.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>The driver writes each timecode as received to the <tt>clockstats</tt> file. When enabled by the <tt>flag4</tt> fudge flag, a table of quality data maintained internally by the Netclock/2 is retrieved and written to the <tt>clockstats</tt> file when the first timecode message of a new dayis received.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>WWVB</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
</dl>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<body>
|
||||
|
||||
<h3>Spectracom WWVB/GPS Receivers</h3>
|
||||
|
||||
<hr>
|
||||
Last update:
|
||||
|
||||
<!-- #BeginDate format:En2m -->22-Apr-2009 15:00<!-- #EndDate -->
|
||||
UTC</p>
|
||||
|
||||
<h4>Synopsis</h4>
|
||||
|
||||
<p>Address: 127.127.4.<i>u</i><br>
|
||||
Reference ID: <tt>WWVB</tt><br>
|
||||
Driver ID: <tt>WWVB_SPEC</tt><br>
|
||||
Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 baud, 8-bits, no parity<br>
|
||||
Features: Optional PPS signal processing, <tt>tty_clk</tt><br>
|
||||
Requires: Optional PPS signal processing requires the PPSAPI signal interface.</p>
|
||||
|
||||
<h4>Description</h4>
|
||||
|
||||
<p>This driver supports all known Spectracom radio and satellite clocks, including the Model 8170 and Netclock/2 WWVB Synchronized Clocks and the Netclock/GPS GPS Master Clock. The claimed accuracy of the WWVB clocks is 100 <span class="style1">m</span>s relative to the broadcast signal. These clocks have proven a reliable source of time, except in some parts of the country with high levels of conducted RF interference. WIth the GPS clock the claimed accuracy is 130 ns. However, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.</p>
|
||||
|
||||
<p>The DIPswitches on these clocks should be set to 24-hour display, AUTO DST off, data format 0 or 2 (see below) and baud rate 9600. If this clock is used as the source for the IRIG Audio Decoder (<tt>refclock_irig.c</tt> in this distribution), set the DIPswitches for AM IRIG output and IRIG format 1 (IRIG B with signature control).</p>
|
||||
|
||||
<p>There are two timecode formats used by these clocks. Format 0, which is available with all clocks, and format 2, which is available with all clocks except the original (unmodified) Model 8170.</p>
|
||||
|
||||
<p>Format 0 (22 ASCII printing characters):<br>
|
||||
<cr><lf>i ddd hh:mm:ss TZ=zz<cr><lf></p>
|
||||
|
||||
<p>on-time = first <cr><br>
|
||||
i = synchronization flag (' ' = in synch, '?' = out synch)<br>
|
||||
hh:mm:ss = hours, minutes, seconds</p>
|
||||
|
||||
<p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours.</p>
|
||||
|
||||
<p>Format 2 (24 ASCII printing characters):<br>
|
||||
lt;cr>lf>iqyy ddd hh:mm:ss.fff ld</p>
|
||||
|
||||
<p>on-time = <cr><br>
|
||||
i = synchronization flag (' ' = in synch, '?' = out synch)<br>
|
||||
q = quality indicator (' ' = locked, 'A'...'D' = unlocked)<br>
|
||||
yy = year (as broadcast)<br>
|
||||
ddd = day of year<br>
|
||||
hh:mm:ss.fff = hours, minutes, seconds, milliseconds</p>
|
||||
|
||||
<p>The alarm condition is indicated by other than ' ' at <tt>i</tt>, which occurs during initial synchronization and when received signal is lost for about ten hours. The unlock condition is indicated by other than ' ' at <tt>q</tt>.</p>
|
||||
|
||||
<p>The <tt>q</tt> is normally ' ' when the time error is less than 1 ms and a character in the set <tt>A...D</tt> when the time error is less than 10, 100, 500 and greater than 500 ms respectively. The <tt>l</tt> is normally ' ', but is set to <tt>L</tt> early in the month of an upcoming UTC leap second and reset to ' ' on the first day of the following month. The <tt>d</tt> is set to <tt>S</tt> for standard time <tt>S</tt>, <tt>I</tt> on the day preceding a switch to daylight time, <tt>D</tt> for daylight time and <tt>O</tt> on the day preceding a switch to standard time. The start bit of the first <cr> is synchronized to the indicated time as returned.</p>
|
||||
|
||||
<p>This driver does not need to be told which format is in use - it figures out which one from the length of the message. A three-stage median filter is used to reduce jitter and provide a dispersion measure. The driver makes no attempt to correct for the intrinsic jitter of the radio itself, which is a known problem with the older radios.</p>
|
||||
|
||||
<h4<PPS Signal Processing</h4>
|
||||
|
||||
<p>When PPS signal processing is enabled, and when the system clock has been set by this or another driver and the PPS signal offset is within 0.4 s of the system clock offset, the PPS signal replaces the timecode for as long as the PPS signal is active. If for some reason the PPS signal fails for one or more poll intervals, the driver reverts to the timecode. If the timecode fails for one or more poll intervals, the PPS signal is disconnected.</p>
|
||||
|
||||
<h4>Monitor Data</h4>
|
||||
|
||||
<p>The driver writes each timecode as received to the <tt>clockstats</tt> file. When enabled by the <tt>flag4</tt> fudge flag, a table of quality data maintained internally by the Netclock/2 is retrieved and written to the <tt>clockstats</tt> file when the first timecode message of a new day is received.</p>
|
||||
|
||||
<h4>Fudge Factors</h4>
|
||||
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the PPS time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Specifies the serial time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>WWVB</tt>.
|
||||
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Disable PPS signal processing if 0 (default); enable PPS signal processing if 1.
|
||||
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>If PPS signal processing is enabled, capture the pulse on the rising edge if 0 (default); capture on the falling edge if 1.
|
||||
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>If PPS signal processing is enabled, use the <tt>ntpd</tt> clock discipline if 0 (default); use the kernel discipline if 1.
|
||||
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
|
||||
</dl>
|
||||
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
</html>
|
@ -1,54 +1,37 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>IRIG Audio Decoder</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>IRIG Audio Decoder</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.6.<i>u</i><br>
|
||||
Reference ID: <tt>IRIG</tt><br>
|
||||
Driver ID: <tt>IRIG_AUDIO</tt><br>
|
||||
Audio Device: <tt>/dev/audio</tt> and <tt>/dev/audioctl</tt>
|
||||
<p>Note: This driver supersedes an older one of the same name, address and ID which required replacing the original kernel audio driver with another which worked only on older Sun SPARC architectures and SunOS operating systems. The new driver requires no modification of the operating system and works on FreeBSD, SunOS and Solaris. While it is generic and likely portable to other systems, it is somewhat slower than the original, since the extensive signal conditioning, filtering and decoding is done in user space, not kernel space.</p>
|
||||
Address: 127.127.6.<i>u</i><br>
|
||||
Reference ID: <tt>IRIG</tt><br>
|
||||
Driver ID: <tt>IRIG_AUDIO</tt><br>
|
||||
Audio Device: <tt>/dev/audio</tt> and <tt>/dev/audioctl</tt>
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Inter-Range Instrumentation Group (IRIG) standard time distribution signal using the audio codec native to some workstations. This signal is generated by several radio clocks, including those made by Arbiter, Austron, Bancomm, Odetics, Spectracom and TrueTime, among others, although it is often an add-on option. The signal is connected via an optional attenuator box and cable to either the microphone or line-in port. The driver receives, demodulates and decodes the IRIG-B and IRIG-E signal formats using internal filters designed to reduce the effects of noise and interference.</p>
|
||||
<p>This driver synchronizes the computer time using the Inter-Range Instrumentation Group (IRIG) standard time distribution signal. This signal is generated by several radio clocks, including those made by Arbiter, Austron, Bancomm, Odetics, Spectracom, Symmetricom and TrueTime, among others, although it is often an add-on option. The signal is connected via an optional attenuator and cable to either the microphone or line-in port of a workstation or PC.</p>
|
||||
<p>The driver requires an audio codec or sound card with sampling rate 8 kHz and <font face="symbol">m</font>-law companding to demodulate the data. This is the same standard as used by the telephone industry and is supported by most hardware and operating systems, including Solaris, FreeBSD and Linux, among others. In this implementation, only one audio driver and codec can be supported on a single machine. In order to assure reliable signal capture, the codec frequency error must be less than 250 PPM (.025 percent). If necessary, the <tt>tinker codec</tt> configuration command can be used to bracket the codec frequency to this range.</p>
|
||||
<p>For proper operation the IRIG signal source should be configured for analog signal levels, not digital TTL levels. In most radios the IRIG signal is driven ±10 V behind 50 Ohms. In such cases the cable should be terminated at the line-in port with a 50-Ohm resistor to avoid overloading the codec. Where feasible, the IRIG signal source should be operated with signature control so that, if the signal is lost or mutilated, the source produces an unmodulated signal, rather than possibly random digits. The driver automatically rejects the data and declares itself unsynchronized in this case. Some devices, in particular Spectracom radio/satellite clocks, provide additional year and status indication; other devices may not.</p>
|
||||
<p>In general and without calibration, the driver is accurate within 500 <font face="symbol">m</font>s relative to the IRIG time. After calibrating relative to the PPS signal from a GPS receiver, the mean offset with a 2.4-GHz P4 running FreeBSD 6.1 is less than 20 <font face="symbol">m</font>s with standard deviation 10 <font face="symbol">m</font>s. Most of this is due to residuals after filtering and averaging the raw codec samples, which have an inherent jitter of 125 <font face="symbol">m</font>s. The processor load due to the driver is 0.6 percent on the P4.</p>
|
||||
<p>However, be acutely aware that the accuracy with Solaris 2.8 and beyond has been seriously degraded to the order of several milliseconds. The Sun kernel driver has a sawtooth modulation with amplitude over 5 ms P-P and period 5.5 s. This distortion is especially prevalent with Sun Blade 1000 and possibly other systems.</p>
|
||||
<p>The driver performs a number of error checks to protect against overdriven or underdriven input signal levels, incorrect signal format or improper hardware configuration. The specific checks are detailed later in this page. Note that additional checks are done elsewhere in the reference clock interface routines.</p>
|
||||
<p>This driver incorporates several features in common with other audio drivers such as described in the <a href="driver7.html">Radio CHU Audio Demodulator/Decoder</a> and the <a href="driver36.html">Radio WWV/H Audio Demodulator/Decoder</a> pages. They include automatic gain control (AGC), selectable audio codec port and signal monitoring capabilities. For a discussion of these common features, as well as a guide to hookup, debugging and monitoring, see the <a href="../audio.html">Reference Clock Audio Drivers</a> page.</p>
|
||||
<p>The IRIG signal format uses an amplitude-modulated carrier with pulse-width modulated data bits. For IRIG-B, the carrier frequency is 1000 Hz and bit rate 100 b/s; for IRIG-E, the carrier frequenchy is 100 Hz and bit rate 10 b/s. While IRIG-B provides the best accuracy, generally within a few tens of microseconds relative to IRIG time, it can also generate a significant load on the processor with older workstations. Generally, the accuracy with IRIG-E is about ten times worse than IRIG-B, but the processor load is ten times less.</p>
|
||||
<p>The program processes 8000-Hz <font face="symbol">m</font>-law companded samples using separate signal filters for IRIG-B and IRIG-E, a comb filter, envelope detector and automatic threshold corrector. Cycle crossings relative to the corrected slice level determine the width of each pulse and its value - zero, one or position identifier. The data encode 20 BCD digits which determine the second, minute, hour and day of the year and sometimes the year and synchronization condition. The comb filter exponentially averages the corresponding samples of successive baud intervals in order to reliably identify the reference carrier cycle. A type-II phase-lock loop (PLL) performs additional integration and interpolation to accurately determine the zero crossing of that cycle, which determines the reference timestamp. A pulse-width discriminator demodulates the data pulses, which are then encoded as the BCD digits of the timecode. The timecode and reference timestamp are updated once each second with IRIG-B (ten seconds with IRIG-E) and local clock offset samples saved for later processing. At poll intervals of 64 s, the saved samples are processed by a trimmed-mean filter and used to update the system clock.</p>
|
||||
<p>Infinite impulse response (IIR) filters are used with both IRIG-B and IRIG-E formats. An 800-Hz highpass filter is used for IRIG-B and a 130-Hz lowpass filter for IRIG-E. These are intended for use with noisy signals, such as might be received over a telephone line or radio circuit, or when interfering signals may be present in the audio passband. The driver determines which IRIG format is in use by sampling the amplitude of each filter output and selecting the one with maximum signal. An automatic gain control feature provides protection against overdriven or underdriven input signal amplitudes. It is designed to maintain adequate demodulator signal amplitude while avoiding occasional noise spikes. In order to assure reliable capture, the decompanded input signal amplitude must be greater than 100 units and the codec sample frequency error less than 250 PPM (.025 percent).</p>
|
||||
<p>The program performs a number of error checks to protect against overdriven or underdriven input signal levels, incorrect signal format or improper hardware configuration. The specific checks are detailed later in this page. Note that additional checks are done elsewhere in the reference clock interface routines.</p>
|
||||
<p>Unlike other drivers, which can have multiple instantiations, this one supports only one. It does not seem likely that more than one audio codec would be useful in a single machine. More than one would probably chew up too much CPU time anyway.</p>
|
||||
<h4>IRIG-B Timecode Format</h4>
|
||||
<p>The 100 elements of the IRIG timecode are numbered from 0 through 99. Position identifiers occur at elements 0, 9, 19 and every ten thereafter to 99. The control function (CF) elements begin at element 50 (CF 1) and extend to element 78 (CF 27). The straight-binary-seconds (SBS) field, which encodes the seconds of the UTC day, begins at element 80 (CF 28) and extends to element 97 (CF 44). The encoding of elements 50 (CF 1) through 78 (CF 27) is device dependent. This driver presently decodes the CF elements, but does nothing with them.</p>
|
||||
<p>Where feasible, the IRIG signal source should be operated with signature control so that, if the signal is lost or mutilated, the source produces an unmodulated signal, rather than possibly random digits. The driver will automatically reject the data and declare itself unsynchronized in this case. Some devices, in particular Spectracom radio/satellite clocks, provide additional year and status indication in the format:</p>
|
||||
<pre>
|
||||
Element CF Function
|
||||
-------------------------------------
|
||||
55 6 time sync status
|
||||
60-63 10-13 BCD year units
|
||||
65-68 15-18 BCD year tens
|
||||
</pre>
|
||||
Other devices set these elements to zero.
|
||||
<h4>Performance and Horror Stories</h4>
|
||||
<p>The <font face="symbol">m</font>-law companded data format allows considerable latitude in signal levels; however, an automatic gain control (AGC) function is implemented to further compensate for varying input signal levels and to avoid signal distortion. For proper operation, the IRIG signal source should be configured for analog signal levels, NOT digital TTL levels.</p>
|
||||
<p>The accuracy of the system clock synchronized to the IRIG-B source with this driver and the <tt>ntpd</tt> daemon is 10-20 <font face="symbol">m</font>s with a Sun UltraSPARC II running Solaris 2.6 and maybe twice that with a Sun SPARC IPC running SunOS 4.1.3. Be however acutely aware that the accuracy with Solaris 2.8 and presumably beyond has seriously degraded to the order of several milliseconds. The Sun kernel driver has a sawtooth modulation with amplitude over 5 ms peak-peak and period 5.5 s. The crafty IRIG driver uses a transverse filter to remove the modulation and something called a botttom-fisher to remove incidental positive spikes especially prevalent with Sun Blade 1000 and possibly other systems. The result is nominal accuracy and jitter something less than 0.5 ms, but the this is still far inferior to the performance with older systems.</p>
|
||||
<p>The processor resources consumed by the daemon can be significant, ranging from about 1.2 percent on the faster UltraSPARC II to 38 percent on the slower SPARC IPC. However, the overall timing accuracy is limited by the resolution and stability of the CPU clock oscillator and the interval between clock corrections, which is 64 s with this driver. This performance, while probably the best that can be achieved by the daemon itself, can be improved with assist from the PPS discipline as described elsewhere in this documentation.</p>
|
||||
<h4>Autotune</h4>
|
||||
<p>The driver includes provisions to automatically tune the radio in response to changing radio propagation conditions throughout the day and night. The radio interface is compatible with the ICOM CI-V standard, which is a bidirectional serial bus operating at TTL levels. The bus can be connected to a serial port using a level converter such as the CT-17.</p>
|
||||
<p>Each ICOM radio is assigned a unique 8-bit ID select code, usually expressed in hex format. To activate the CI-V interface, the <tt>mode</tt> keyword of the <tt>server</tt> configuration command specifies a nonzero select code in decimal format. A table of ID select codes for the known ICOM radios is given on the <a href="../audio.html">Reference Clock Audio Drivers</a> page. A missing <tt>mode</tt> keyword or a zero argument leaves the interface disabled.</p>
|
||||
<p>If specified, the driver will attempt to open the device <tt>/dev/icom</tt> and, if successful will activate the autotune function and tune the radio to each operating frequency in turn while attempting to acquire minute sync from CHU. However, the driver is liberal in what it assumes of the configuration. If the <tt>/dev/icom</tt> link is not present or the open fails or the CI-V bus or radio is inoperative, the driver quietly gives up with no harm done.</p>
|
||||
<h4>Technical Overview</h4>
|
||||
<p>The IRIG signal format uses an amplitude-modulated carrier with pulse-width modulated data bits. For IRIG-B, the carrier frequency is 1000 Hz and bit rate 100 b/s; for IRIG-E, the carrier frequenchy is 100 Hz and bit rate 10 b/s. While IRIG-B provides the best accuracy, generally within a few tens of microseconds relative to IRIG time, it can also generate a significant processor load with older workstations. Generally, the accuracy with IRIG-E is about ten times worse than IRIG-B, but the processor load is somewhat less. Technical details about the IRIG formats can be found in <a href="http://handle.dtic.mil/100.2/ADA346250">IRIG Standard 200-98</a>.</p>
|
||||
<p>The driver processes 8000-Hz <font face="symbol">m</font>-law companded samples using separate signal filters for IRIG-B and IRIG-E, a comb filter, envelope detector and automatic threshold corrector. An infinite impulse response (IIR) 1000-Hz bandpass filter is used for IRIG-B and an IIR 130-Hz lowpass filter for IRIG-E. These are intended for use with noisy signals, such as might be received over a telephone line or radio circuit, or when interfering signals may be present in the audio passband. The driver determines which IRIG format is in use by sampling the amplitude of each filter output and selecting the one with maximum signal.</p>
|
||||
<p>Cycle crossings relative to the corrected slice level determine the width of each pulse and its value - zero, one or position identifier (PI). The data encode ten characters (20 BCD digits) which determine the second, minute, hour and day of the year and with some IRIG generators the year and synchronization condition. The comb filter exponentially averages the corresponding samples of successive baud intervals in order to reliably identify the reference carrier cycle.</p>
|
||||
<p>A type-II phase-lock loop (PLL) performs additional integration and interpolation to accurately determine the zero crossing of that cycle, which determines the reference timestamp. A pulse-width discriminator demodulates the data pulses, which are then encoded as the BCD digits of the timecode. The timecode and reference timestamp are updated once each second with IRIG-B (ten seconds with IRIG-E) and local clock offset samples saved for later processing. At poll intervals of 64 s, the saved samples are processed by a median filter and used to update the system clock.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
The timecode format used for debugging and data recording includes data helpful in diagnosing problems with the IRIG signal and codec connections. With debugging enabled (-d on the ntpd command line), the driver produces one line for each timecode in the following format:
|
||||
<p><tt>00 1 98 23 19:26:52 721 143 0.694 47 20 0.083 66.5 3094572411.00027</tt></p>
|
||||
<p>The first field containes the error flags in hex, where the hex bits are interpreted as below. This is followed by the IRIG status indicator, year of century, day of year and time of day. The status indicator and year are not produced by some IRIG devices. Following these fields are the carrier amplitude (0-8100), codec gain (0-255), field phase (0-79), time constant (2-20), modulation index (0-1), carrier phase error (0±0.5) and carrier frequency error (PPM). The last field is the on-time timestamp in NTP format. The fraction part is a good indicator of how well the driver is doing. With an UltrSPARC 30, this is normally within a few tens of microseconds relative to the IRIG-B signal and within a few hundred microseconds with IRIG-E.</p>
|
||||
The timecode format used for debugging and data recording includes data helpful in diagnosing problems with the IRIG signal and codec connections. The driver produces one line for each timecode in the following format:
|
||||
<p><tt>00 00 98 23 19:26:52 2782 143 0.694 10 0.3 66.5 3094572411.00027</tt></p>
|
||||
<p>If clockstats is enabled, the most recent line is written to the clockstats file every 64 s. If verbose recording is enabled (fudge flag 4) each line is written as generated.</p>
|
||||
<p>The first field containes the error flags in hex, where the hex bits are interpreted as below. This is followed by the year of century, day of year and time of day. Note that the time of day is for the previous minute, not the current time. The status indicator and year are not produced by some IRIG devices and appear as zeros. Following these fields are the carrier amplitude (0-3000), codec gain (0-255), modulation index (0-1), time constant (4-10), carrier phase error (0±0.5) and carrier frequency error (PPM). The last field is the on-time timestamp in NTP format.</p>
|
||||
<p>The error flags are defined as follows in hex:</p>
|
||||
<dl>
|
||||
<dt><tt>x01</tt>
|
||||
@ -65,6 +48,8 @@
|
||||
<dd>Seconds numbering discrepancy. The decoder second does not match the IRIG second. This is usually the result of an overdriven codec, wrong signal format or noisy IRIG signal.
|
||||
<dt><tt>x40</tt>
|
||||
<dd>Codec error (overrun). The machine is not fast enough to keep up with the codec.
|
||||
<dt><tt>x80</tt>
|
||||
<dd>Device status error (Spectracom).
|
||||
</dl>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
@ -88,5 +73,4 @@
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -13,76 +13,54 @@
|
||||
<h3>Radio CHU Audio Demodulator/Decoder</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.7.<i>u</i><br>
|
||||
Reference ID: <tt>CHU</tt><br>
|
||||
Driver ID: <tt>CHU</tt><br>
|
||||
Modem Port: <tt>/dev/chu<i>u</i></tt>; 300 baud, 8-bits, no parity<br>
|
||||
Autotune Port: <tt>/dev/icom</tt>; 1200/9600 baud, 8-bits, no parity<br>
|
||||
Audio Device: <tt>/dev/chu_audio</tt> and <tt>/dev/audioctl</tt>
|
||||
Address: 127.127.7.<i>u</i><br>
|
||||
Reference ID: <tt>CHU</tt><br>
|
||||
Driver ID: <tt>CHU</tt><br>
|
||||
Modem Port: <tt>/dev/chu<i>u</i></tt>; 300 baud, 8-bits, no parity<br>
|
||||
Autotune Port: <tt>/dev/icom</tt>; 1200/9600 baud, 8-bits, no parity<br>
|
||||
Audio Device: <tt>/dev/audio</tt> and <tt>/dev/audioctl</tt>
|
||||
<h4>Description</h4>
|
||||
<p>This driver synchronizes the computer time using data encoded in radio transmissions from Canadian time/frequency station CHU in Ottawa, Ontario. It replaces an earlier one, built by Dennis Ferguson in 1988, which required a special line discipline to preprocessed the signal. The new driver includes more powerful algorithms implemented directly in the driver and requires no preprocessing.</p>
|
||||
<p>CHU transmissions are made continuously on 3330 kHz, 7335 kHz and 14670 kHz in upper sideband, compatible AM mode. An ordinary shortwave receiver can be tuned manually to one of these frequencies or, in the case of ICOM receivers, the receiver can be tuned automatically as propagation conditions change throughout the day and night. The performance of this driver when tracking the station is ordinarily better than 1 ms in time with frequency drift less than 0.5 PPM when not tracking the station.</p>
|
||||
<p>While there are currently no known commercial CHU receivers, a simple but effective receiver/demodulator can be constructed from an ordinary shortwave receiver and Bell 103 compatible, 300-b/s modem or modem chip, as described on the <a href="../pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page. The driver can use the modem to receive the radio signal and demodulate the data or, if available, the driver can use the audio codec of the Sun workstation or another with compatible audio interface. In the latter case, the driver implements the modem using DSP routines, so the radio can be connected directly to either the microphone or line input port.</p>
|
||||
<p>This driver synchronizes the computer time using shortwave radio transmissions
|
||||
from Canadian time/frequency station <a href="http://inms-ienm.nrc-cnrc.gc.ca/time_services/shortwave_broadcasts_e.html">CHU</a> in
|
||||
Ottawa, Ontario. CHU transmissions are made continuously on 3.330,
|
||||
7.850 and 14.670 MHz in upper sideband, compatible AM mode. An ordinary
|
||||
shortwave receiver can be tuned manually to one of these frequencies or, in
|
||||
the case of ICOM receivers, the receiver can be tuned automatically as propagation
|
||||
conditions change throughout the day and season.</p>
|
||||
<p>The driver can be compiled to use either an audio codec or soundcard, or a Bell 103-compatible, 300-b/s modem or modem chip, as described on the <a href="../pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page. If compiled for a modem, the driver uses it to receive the radio signal and demodulate the data. If compiled for the audio codec, it requires a sampling rate of 8 kHz and <font face="symbol">m</font>-law companding to demodulate the data. This is the same standard as used by the telephone industry and is supported by most hardware and operating systems, including Solaris, FreeBSD and Linux, among others. The radio is connected via an optional attenuator and cable to either the microphone or line-in port of a workstation or PC. In this implementation, only one audio driver and codec can be supported on a single machine.</p>
|
||||
<p>In general and without calibration, the driver is accurate within 1 ms relative to the broadcast time when tracking a station. However, variations up to 0.3 ms can be expected due to diurnal variations in ionospheric layer height and ray geometry. In Newark DE, 625 km from the transmitter, the predicted one-hop propagation delay varies from 2.8 ms in sunlight to 2.6 ms in moonlight. When not tracking the station the accuracy depends on the computer clock oscillator stability, ordinarily better than 0.5 PPM.</p>
|
||||
<p>After calibration relative to the PPS signal from a GPS receiver, the mean offset with a 2.4-GHz P4 running FreeBSD 6.1 is generally within 0.2 ms short-term with 0.4 ms jitter. The long-term mean offset varies up to 0.3 ms due to propagation path geometry variations. The processor load due to the driver is 0.4 percent on the P4.</p>
|
||||
<p>The driver performs a number of error checks to protect against overdriven or underdriven input signal levels, incorrect signal format or improper hardware configuration. The specific checks are detailed later in this page. Note that additional checks are done elsewhere in the reference clock interface routines.</p>
|
||||
<p>This driver incorporates several features in common with other audio drivers such as described in the <a href="driver36.html">Radio WWV/H Audio Demodulator/Decoder</a> and the <a href="driver6.html">IRIG Audio Decoder</a> pages. They include automatic gain control (AGC), selectable audio codec port and signal monitoring capabilities. For a discussion of these common features, as well as a guide to hookup, debugging and monitoring, see the <a href="../audio.html">Reference Clock Audio Drivers</a> page.</p>
|
||||
<p>Ordinarily, the driver poll interval is set to 14 (about 4.5 h), although this can be changed with configuration commands. As long as the clock is set or verified at least once during this interval, the NTP algorithms will consider the source reachable and selectable to discipline the system clock. However, if this does not happen for eight poll intervals, the algorithms will consider the source unreachable and some other source will be chosen (if available) to discipline the system clock.</p>
|
||||
<p>The decoding algorithms process the data using maximum-likelihood techniques which exploit the considerable degree of redundancy available in each broadcast message or burst. As described below, every character is sent twice and, in the case of format A bursts, the burst is sent eight times every minute. In the case of format B bursts, which are sent once each minute, the burst is considered correct only if every character matches its repetition in the burst. In the case of format A messages, a majority decoder requires at least six repetitions for each digit in the timecode and more than half of the repetitions decode to the same digit. Every character in every burst provides an independent timestamp upon arrival with a potential total of over 60 timestamps for each minute.</p>
|
||||
<p>A timecode in the format described below is assembled when all bursts have been received in the minute. The timecode is considered valid and the clock set when at least one valid format B burst has been decoded and the above requirements are met. The <tt>yyyy</tt> year field in the timecode indicates whether a valid format B burst has been received. Upon startup, this field is initialized at zero; when a valid format B burst is received, it is set to the current Gregorian year. The <tt>q</tt> quality character field in the timecode indicates whether a valid timecode has been determined. If any of the high order three bits of this character are set, the timecode is invalid.</p>
|
||||
<p>Once the clock has been set for the first time, it will appear reachable and selectable to discipline the system clock, even if the broadcast signal is lost. Since the signals are almost always available during some period of the day and the NTP clock discipline algorithms are designed to work well even in this case, it is unlikely that the system clock could drift more than a few tens of milliseconds during periods of signal loss. To protect against this most unlikely situation, if after four days with no signals, the clock is considered unset and resumes the synchronization procedure from the beginning.</p>
|
||||
<p>The last three fields in the timecode are useful in assessing the quality of the radio channel during the most recent minute bursts were received. The <tt>bcnt</tt> field shows the number of format A bursts in the range 1-8. The <tt>dist</tt> field shows the majority decoder distance, or the minimum number of sample repetitions for each digit of the timecode in the range 0-16. The <tt>tsmp</tt> field shows the number of timestamps determined in the range 0-60. For a valid timecode, <tt>bcnt</tt> must be at least 3, <tt>dist</tt> must be greater than <tt>bcnt</tt> and <tt>tsmp</tt> must be at least 20.</p>
|
||||
<h4>Program Operation</h4>
|
||||
<p>The program consists of four major parts: the DSP modem, maximum likelihood UART, burst assembler and majority decoder. The DSP modem demodulates Bell 103 modem answer-frequency signals; that is, frequency-shift keyed (FSK) tones of 2225 Hz (mark) and 2025 Hz (space). This is done using a 4th-order IIR filter and limiter/discriminator with 500-Hz bandpass centered on 2125 Hz and followed by a FIR raised-cosine lowpass filter optimized for the 300-b/s data rate. Alternately, the driver can be compiled to delete the modem and input 300 b/s data directly from an external modem via a serial port.</p>
|
||||
<p>The maximum likelihood UART is implemented using a set of eight 11-stage shift registers, one for each of eight phases of the 300-b/s bit clock. At each phase a new baseband signal value from the DSP modem is shifted into the corresponding register and the maximum and minimum over all 11 samples computed. This establishes a slice level midway between the maximum and minimum over all stages. For each stage, a signal level above this level is a mark (1) and below is a space (0). A quality metric is calculated for each register with respect to the slice level and the a-priori signal consisting of a mark bit (previous stop bit), space (start) bit, eight arbitrary information bits and the first of the two mark (stop) bits.</p>
|
||||
<p>The shift registers are processed in round-robin order as each modem value arrives until one of them shows a valid framing pattern consisting of a mark bit, space bit, eight arbitrary data bits and a mark bit. When found, the data bits from the register with the best metric is chosen as the maximum likelihood character and the UART begins to process the next character.</p>
|
||||
<p>The burst assembler processes characters either from the maximum likelihood UART or directly from the serial port as configured. A burst begins when a character is received and is processed after a timeout interval when no characters are received. If the interval between characters is greater than two characters, but less than the timeout interval, the burst is rejected as a runt and a new burst begun. As each character is received, a timestamp is captured and saved for later processing.</p>
|
||||
<p>A valid burst consists of ten characters in two replicated five-character blocks. A format B block contains the year and other information in ten hexadecimal digits. A format A block contains the timecode in ten decimal digits, the first of which is a framing code (6). The burst assembler must deal with cases where the first character of a format A burst is lost or is noise. This is done using the framing code to correct the phase, either one character early or one character late.</p>
|
||||
<p>The burst distance is incremented by one for each bit in the first block that matches the corresponding bit in the second block and decremented by one otherwise. In a format B burst the second block is bit-inverted relative to the first, so a perfect burst of five 8-bit characters has distance -40. In a format A block the two blocks are identical, so a perfect burst has distance +40. Format B bursts must be perfect to be acceptable; however, format A bursts, which are further processed by the majority decoder, are acceptable if the distance is at least 28.</p>
|
||||
<p>Each minute of transmission includes eight format A bursts containing two timecodes for each second from 31 through 39. The majority decoder uses a decoding matrix of ten rows, one for each digit position in the timecode, and 16 columns, one for each 4-bit code combination that might be decoded at that position. In order to use the character timestamps, it is necessary to reliably determine the second number of each burst. In a valid burst, the last digit of the two timecodes in the block must match and the value must be in the range 2-9 and greater than in the previous burst.</p>
|
||||
<p>As each hex digit of a valid burst is processed, the value at the row corresponding to the digit position in the timecode and column corresponding to the code found at that position is incremented. At the end of each minute of transmission, each row of the decoding matrix encodes the number of occurrences of each code found at the corresponding position of the timecode. However, the first digit (framing code) is always 6, the ninth (second tens) is always 3 and the last (second units) changes for each burst, so are not used.</p>
|
||||
<p>The maximum over all occurrences at each timecode digit position is the distance for that position and the corresponding code is the maximum likelihood candidate. If the distance is zero, the decoder assumes a miss; if the distance is not more than half the total number of occurrences, the decoder assumes a soft error; if two different codes with the same distance are found, the decoder assumes a hard error. In all these cases the decoder encodes a non-decimal character which will later cause a format error when the timecode is reformatted. The decoding distance is defined as the minimum distance over the first nine digits; the tenth digit varies over the seconds and is uncounted.</p>
|
||||
<p>The result of the majority decoder is a nine-digit timecode representing the maximum likelihood candidate for the transmitted timecode in that minute. Note that the second and fraction within the minute are always zero and that the actual reference point to calculate timestamp offsets is backdated to the first second of the minute. At this point the timecode block is reformatted and the year, days, hours and minutes extracted along with other information from the format B burst, including DST state, DUT1 correction and leap warning. The reformatting operation checks the timecode for invalid code combinations that might have been left by the majority decoder and rejects the entire timecode if found.</p>
|
||||
<p>If the timecode is valid, it is passed to the reference clock interface along with the backdated timestamp offsets accumulated over the minute. A perfect set of nine bursts could generate as many as 90 timestamps, but the maximum the interface can handle is 60. These are processed by the interface using a median filter and trimmed-mean average, so the resulting system clock correction is usually much better than would otherwise be the case with radio noise, UART jitter and occasional burst errors.</p>
|
||||
<h4>Technical Overview</h4>
|
||||
<p>The driver processes 8-kHz <font face="symbol">m</font>-law companded codec samples using maximum-likelihood techniques which exploit the considerable degree of redundancy available in each broadcast message or burst. As described below, every character is sent twice and, in the case of format A bursts, the burst is sent eight times every minute. The single format B burst is considered correct only if every character matches its repetition in the burst. For the eight format A bursts, a majority decoder requires more than half of the 16 repetitions for each digit decode to the same value. Every character in every burst provides an independent timestamp upon arrival with a potential total of 60 timestamps for each minute.</p>
|
||||
<p>The CHU timecode format is described on the <a href="http://inms-ienm.nrc-cnrc.gc.ca/time_services/chu_e.html">CHU website</a>. A timecode is assembled when all bursts have been received in each minute. The timecode is considered valid and the clock set when at least one valid format B burst has been decoded and the majority decoder declares success. Once the driver has synchronized for the first time, it will appear reachable and selectable to discipline the system clock. It is normal on occasion to miss a minute or two due to signal fades or noise. If eight successive minutes are missed, the driver is considered unreachable and the system clock will free-wheel at the latest determined frequency offset. Since the signals are almost always available during some period of the day and the NTP clock discipline algorithms are designed to work well even with long intervals between updates, it is unlikely that the system clock will drift more than a few milliseconds during periods of signal loss.</p>
|
||||
<h4>Baseband Signal Processing</h4>
|
||||
<p>The program consists of four major parts: the DSP modem, maximum-likelihood UART, burst assembler and majority decoder. The DSP modem demodulates Bell 103 modem answer-frequency signals; that is, frequency-shift keyed (FSK) tones of 2225 Hz (mark) and 2025 Hz (space). It consists of a 500-Hz bandpass filter centered on 2125 Hz followed by a limiter/discriminator and raised-cosine lowpass filter optimized for the 300-b/s data rate. </p>
|
||||
<p>The maximum likelihood UART is implemented using a set of eight 11-stage shift registers, one for each of eight phases of the 300-b/s bit clock. At each phase a new baseband signal from the DSP modem is shifted into the corresponding register and the maximum and minimum over all 11 samples computed. This establishes a span (difference) and slice level (average) over all 11 stages. For each stage, a signal level above the slice is a mark (1) and below that is a space (0). A quality metric is calculated for each register with respect to the slice level and the a-priori signal consisting of a start bit (space), eight arbitrary information bits and two stop bits (mark).</p>
|
||||
<p>The shift registers are processed in round-robin order as the phases of each bit arrive. At the end of each bit all eight phases are searched for valid framing bits, sufficient span and best metric. The best candidate found in this way represents the maximum-likelihood character. The process then continues for all ten characters in the burst.</p>
|
||||
<p>The burst assembler processes characters either from the maximum-likelihood UART or directly from the serial port as configured. A burst begins when a character is received and is processed after a timeout interval when no characters are received. If the interval between characters is greater than two characters, but less than the timeout interval, the burst is rejected as a runt and a new burst begun. As each character is received, a timestamp is captured and saved for later processing.</p>
|
||||
<p>A valid burst consists of ten characters in two replicated five-character blocks, each block representing ten 4-bit BCD digits. The format B blocks sent in second 31 contain the year and other information in ten digits. The eight format A blocks sent in seconds 32-39 contain the timecode in ten digits, the first of which is a framing code (6). The burst assembler must deal with cases where the first character of a format A burst is lost or is noise. This is done using the framing codes to correct the discrepancy, either one character early or one character late.</p>
|
||||
<p>The burst distance is incremented by one for each bit in the first block that matches the corresponding bit in the second block and decremented by one otherwise. In a format B burst the second block is bit-inverted relative to the first, so a perfect burst of five 8-bit characters has distance -40. In a format A burst the two blocks are identical, so a perfect burst has distance +40. Format B bursts must be perfect to be acceptable; however, format A bursts, which are further processed by the majority decoder, are acceptable if the distance is at least 28.</p>
|
||||
<h4>Majority Decoder</h4>
|
||||
<p>Each minute of transmission includes eight format A bursts containing two timecodes for each second from 32 through 39. The majority decoder uses a decoding matrix of ten rows, one for each digit position in the timecode, and 16 columns, one for each 4-bit code combination that might be decoded at that position. In order to use the character timestamps, it is necessary to reliably determine the second number of each burst. In a valid burst, the last digit of the two timecodes in the burst must match and the value must be in the range 2-9 and greater than in the previous burst.</p>
|
||||
<p>As each digit of a valid burst is processed, the value at the row corresponding to the digit position in the timecode and column corresponding to the code found at that position is incremented. At the end of the minute, each row of the decoding matrix encodes the number of occurrences of each code found at the corresponding position.</p>
|
||||
<p>The maximum over all occurrences at each digit position is the distance for that position and the corresponding code is the maximum-likelihood digit. If the distance is not more than half the total number of occurrences, the decoder assumes a soft error and discards all information collected during the minute. The decoding distance is defined as the sum of the distances over the first nine digits; the tenth digit varies over the seconds and is uncounted.</p>
|
||||
<p>The result of the majority decoder is a nine-digit timecode representing the maximum-likelihood candidate for the transmitted timecode in that minute. Note that the second and fraction within the minute are always zero and that the actual reference point to calculate timestamp offsets is backdated to the first second of the minute. At this point the timecode block is reformatted and the year, days, hours and minutes extracted along with other information from the format B burst, including DST state, DUT1 correction and leap warning. The reformatting operation checks the timecode for invalid code combinations that might have been left by the majority decoder and rejects the entire timecode if found.</p>
|
||||
<p>If the timecode is valid, it is passed to the reference clock interface along with the backdated timestamps accumulated over the minute. A perfect set of eight bursts could generate as many as 80 timestamps, but the maximum the interface can handle is 60. These are processed using a median filter and trimmed-mean average, so the resulting system clock correction is usually much better than would otherwise be the case with radio noise, UART jitter and occasional burst errors.</p>
|
||||
<h4>Autotune</h4>
|
||||
<p>The driver includes provisions to automatically tune the radio in response to changing radio propagation conditions throughout the day and night. The radio interface is compatible with the ICOM CI-V standard, which is a bidirectional serial bus operating at TTL levels. The bus can be connected to a standard serial port using a level converter such as the CT-17.</p>
|
||||
<p>Each ICOM radio is assigned a unique 8-bit ID select code, usually expressed in hex format. To activate the CI-V interface, the <tt>mode</tt> keyword of the <tt>server</tt> configuration command specifies a nonzero select code in decimal format. A table of ID select codes for the known ICOM radios is given below. Since all ICOM select codes are less than 128, the high order bit of the code is used by the driver to specify the baud rate. If this bit is not set, the rate is 9600 bps for the newer radios; if set, the rate is 1200 bps for the older radios. A missing <tt>mode</tt> keyword or a zero argument leaves the interface disabled.</p>
|
||||
<p>If specified, the driver will attempt to open the device <tt>/dev/icom</tt> and, if successful will tune the radio to 3.330 MHz. If after five minutes at this frequency not more than two format A bursts have been received for any minute, the driver will tune to 7.335 MHz, then to 14.670 MHz, then return to 3.330 MHz and continue in this cycle. However, the driver is liberal in what it assumes of the configuration. If the <tt>/dev/icom</tt> link is not present or the open fails or the CI-V bus or radio is inoperative, the driver quietly gives up with no harm done.</p>
|
||||
<h4>Radio Broadcast Format</h4>
|
||||
<p>The CHU time broadcast includes an audio signal compatible with the Bell 103 modem standard (mark = 2225 Hz, space = 2025 Hz). It consist of nine, ten-character bursts transmitted at 300 b/s and beginning each second from second 31 to second 39 of the minute. Each character consists of eight data bits plus one start bit and two stop bits to encode two hex digits. The burst data consist of five characters (ten hex digits) followed by a repeat of these characters. In format A, the characters are repeated in the same polarity; in format B, the characters are repeated in the opposite polarity.</p>
|
||||
<p>Format A bursts are sent at seconds 32 through 39 of the minute in hex digits</p>
|
||||
<p><tt>6dddhhmmss6dddhhmmss</tt></p>
|
||||
<p>The first ten digits encode a frame marker (<tt>6</tt>) followed by the day (<tt>ddd</tt>), hour (<tt>hh</tt>), minute (<tt>mm</tt>) and second (<tt>ss</tt>). Since format A bursts are sent during the third decade of seconds the tens digit of <tt>ss</tt> is always 3. The driver uses this to determine correct burst synchronization. These digits are then repeated with the same polarity.</p>
|
||||
<p>Format B bursts are sent at second 31 of the minute in hex digits</p>
|
||||
<p><tt>xdyyyyttaaxdyyyyttaa</tt></p>
|
||||
<p>The first ten digits encode a code (<tt>x</tt> described below) followed by the DUT1 (<tt>d</tt> in deciseconds), Gregorian year (<tt>yyyy</tt>), difference TAI - UTC (<tt>tt</tt>) and daylight time indicator (<tt>aa</tt>) peculiar to Canada. These digits are then repeated with inverted polarity.</p>
|
||||
<p>The <tt>x</tt> is coded</p>
|
||||
<dl>
|
||||
<dt><tt>1</tt>
|
||||
<dd>Sign of DUT (0 = +)/dd>
|
||||
<dt><tt>2</tt>
|
||||
<dd>Leap second warning. One second will be added.
|
||||
<dt><tt>4</tt>
|
||||
<dd>Leap second warning. One second will be subtracted. This is not likely to happen in our universe.
|
||||
<dt><tt>8</tt>
|
||||
<dd>Even parity bit for this nibble.
|
||||
</dl>
|
||||
<p>By design, the last stop bit of the last character in the burst coincides with 0.5 second. Since characters have 11 bits and are transmitted at 300 b/s, the last stop bit of the first character coincides with 0.5 - 10 * 11/300 = 0.133 second. Depending on the UART, character interrupts can vary somewhere between the beginning of bit 9 and end of bit 11. These eccentricities can be corrected along with the radio propagation delay using the <tt>fudge time1</tt> variable.</p>
|
||||
<p>The driver includes provisions to automatically tune the radio in response to changing radio propagation conditions throughout the day and night. The radio interface is compatible with the ICOM CI-V standard, which is a bidirectional serial bus operating at TTL levels. The bus can be connected to a standard serial port using a level converter such as the CT-17. Further details are on the <a href="../audio.html">Reference Clock Audio Drivers</a> page.</p>
|
||||
<p>If specified, the driver will attempt to open the device <tt>/dev/icom</tt> and, if successful will tune the radio to 3.331 MHz. The 1-kHz offset is useful with a narrowband SSB filter where the passband includes the carrier and modem signals. However, the driver is liberal in what it assumes of the configuration. If the <tt>/dev/icom</tt> link is not present or the open fails or the CI-V bus is inoperative, the driver continues in single-frequency mode.</p>
|
||||
<p>As long as no bursts are received, the driver cycles over the three frequencies in turn, one minute for each station. When bursts are received from one or more stations, the driver operates in a five-minute cycle. During the first four minutes it tunes to the station with the highest metric. During the last minute it alternates between the other two stations in turn in order to measure the metric.</p>
|
||||
<h4>Debugging Aids</h4>
|
||||
<p>The most convenient way to track the program status is using the <tt>ntpq</tt> program and the <tt>clockvar</tt> command. This displays the last determined timecode and related status and error counters, even when the program is not discipline the system clock. If the debugging trace feature (<tt>-d</tt> on the <tt>ntpd</tt> command line)is enabled, the program produces detailed status messages as it operates. If the <tt>fudge flag 4</tt> is set, these messages are written to the <tt>clockstats</tt> file. All messages produced by this driver have the prefix <tt>chu</tt> for convenient filtering with the Unix <tt>grep</tt> command.</p>
|
||||
<p>With debugging enabled the driver produces messages in the following formats:</p>
|
||||
<p>A format <tt>chuA</tt> message is produced for each format A burst received in seconds 32 through 39 of the minute:</p>
|
||||
<p><tt>chuA n b s code</tt></p>
|
||||
<p>where <tt>n</tt> is the number of characters in the burst (0-11), <tt>b</tt> the burst distance (0-40), <tt>s</tt> the synchronization distance (0-40) and <tt>code</tt> the burst characters as received. Note that the hex digits in each character are reversed and the last ten digits inverted, so the burst</p>
|
||||
<p><tt>11 40 1091891300ef6e76ecff</tt></p>
|
||||
<p>is interpreted as containing 11 characters with burst distance 40. The nibble-swapped timecode shows DUT1 +0.1 second, year 1998 and TAI -UTC 31 seconds.</p>
|
||||
<p>A format <tt>chuB</tt> message is produced for each format B burst received in second 31 of the minute:</p>
|
||||
<p><tt>chuB n b f s m code</tt></p>
|
||||
<p>where <tt>n</tt> is the number of characters in the burst (0-11), <tt>b</tt> the burst distance (0-40), <tt>f</tt> the field alignment (-1, 0, 1), <tt>s</tt>the synchronization distance (0-16), <tt>m</tt>the burst number (2-9) and <tt>code</tt> the burst characters as received. Note that the hex digits in each character are reversed, so the burst</p>
|
||||
<p><tt>10 38 0 16 9 06851292930685129293</tt></p>
|
||||
<p>is interpreted as containing 11 characters with burst distance 38, field alignment 0, synchronization distance 16 and burst number 9. The nibble-swapped timecode shows day 58, hour 21, minute 29 and second 39.</p>
|
||||
<p>The most convenient way to track the program status is using the <tt>ntpq</tt> program and the <tt>clockvar</tt> command. This displays the last determined timecode and related status and error counters, even when the program is not discipline the system clock. If the debugging trace feature (<tt>-d</tt> on the <tt>ntpd</tt> command line) is enabled, the program produces detailed status messages as it operates. If the <tt>fudge flag 4</tt> is set, these messages are written to the <tt>clockstats</tt> file. All messages produced by this driver have the prefix <tt>chu</tt> for convenient filtering with the Unix <tt>grep</tt> command.</p>
|
||||
<p>With debugging enabled the driver produces messages in the following formats: A single message beginning with <tt>chuB</tt> is produced for each format B burst received in second 31, while eight messages beginning with <tt>chuA</tt> are produced for each format A burst received in seconds 32 through 39 of the minute. The first four fields are</p>
|
||||
<p><tt>stat sig n b</tt></p>
|
||||
<p>where <tt>stat</tt> is the status code, <tt>sig</tt> the character span, <tt>n</tt> the number of characters in the burst (9-11) and <tt>b</tt> the burst distance (0-40). Good bursts will have spans of a 800 or more and the other numbers near the top of the range specified. See the source for the interpretation of the remaining data in the burst. Note that each character of the burst is encoded as two digits in nibble-swapped order.</p>
|
||||
<p>If the CI-V interface for ICOM radios is active, a debug level greater than 1 will produce a trace of the CI-V command and response messages. Interpretation of these messages requires knowledge of the CI-V protocol, which is beyond the scope of this document.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
When enabled by the <tt>filegen</tt> facility, every received timecode is written to the <tt>clockstats</tt> file in the following format:
|
||||
<pre>
|
||||
sq yy ddd hh:mm:ss.fff ld dut lset agc rfrq bcnt dist tsmp
|
||||
When enabled by the <tt>filegen</tt> facility, every received timecode is written to the <tt>clockstats</tt> file in the following format:<pre>
|
||||
sq yyyy ddd hh:mm:ss lw dst du lset agc rfrq bcnt dist tsmp
|
||||
|
||||
s sync indicator
|
||||
q quality character
|
||||
@ -91,141 +69,78 @@
|
||||
hh hour of day
|
||||
mm minute of hour
|
||||
ss second of minute
|
||||
fff millisecond of second
|
||||
l leap second warning
|
||||
d DST state
|
||||
lw leap second warning
|
||||
dst DST state
|
||||
dut DUT sign and magnitude in deciseconds
|
||||
lset minutes since last set
|
||||
agc audio gain (0-255)
|
||||
rfrq radio frequency
|
||||
bcnt burst count
|
||||
dist decoding distance
|
||||
ident CHU identifier code
|
||||
dist decoder distance
|
||||
tsmp timestamps captured
|
||||
</pre>
|
||||
The fields beginning with <tt>year</tt> and extending through <tt>dut</tt> are decoded from the received data and are in fixed-length format. The <tt>agc</tt> and <tt>lset</tt> fields, as well as the following driver-dependent fields, are in variable-length format.
|
||||
The fields beginning with <tt>year</tt> and extending through <tt>dut</tt> are decoded from the received data and are in fixed-length format. The <tt>agc</tt> and <tt>lset</tt> fields, as well as the following driver-dependent fields, are in variable-length format.
|
||||
<dl>
|
||||
<dt><tt>s</tt>
|
||||
<dd>The sync indicator is initially <tt>?</tt> before the clock is set, but turns to space when the clock is correctly set.
|
||||
<dd>The sync indicator is initially <tt>?</tt> before the clock is set, but turns to space when the clock has been correctly set.
|
||||
<dt><tt>q</tt>
|
||||
<dd>The quality character is a four-bit hexadecimal code showing which alarms have been raised during the most recent minute. Each bit is associated with a specific alarm condition according to the following:
|
||||
<dl>
|
||||
<dt><tt>8</tt>
|
||||
<dd>Decoder alarm. A majority of repetitions for at least one digit of the timecode fails to agree.
|
||||
<dt><tt>4</tt>
|
||||
<dd>Timestamp alarm. Fewer than 20 timestamps have been determined.
|
||||
<dt><tt>4</tt>
|
||||
<dd>Decoder alarm. A majority of repetitions for at least one digit of the timecode fails to agree.
|
||||
<dt><tt>2</tt>
|
||||
<dd>Format alarm. The majority timecode contains invalid bit combinations.
|
||||
<dt><tt>1</tt>
|
||||
<dd>Frame alarm. A framing or format error occurred on at least one burst during the minute.
|
||||
</dl>
|
||||
<p>It is important to note that one or more of the above alarms does not necessarily indicate a clock error, but only that the decoder has detected a condition that may in future result in an error.</p>
|
||||
<dt><tt>yyyy ddd hh:mm:ss.fff</tt>
|
||||
<dd>Format alarm. One or more bursts contained invalid data or was improperly formatted.<dt><tt>1</tt>
|
||||
<dd>Frame alarm. One or more bursts was improperly framed or contained too many repetition errors.</dl>
|
||||
<p>The timestamp and decoder alarms are fatal; the data accumulated during the minute are not used to set the clock. The format and fram alarm are nonfatal; only the data in the burst are discarded.</p>
|
||||
|
||||
|
||||
|
||||
<dt><tt>yyyy ddd hh:mm:ss</tt>
|
||||
<dd>The timecode format itself is self explanatory. Note that the Gregorian year is decoded directly from the transmitted timecode.
|
||||
<dt><tt>l</tt>
|
||||
<dd>The leap second warning is normally space, but changes to <tt>L</tt> if a leap second is to occur at the end of the month of June or December.
|
||||
<dt><tt>d</tt>
|
||||
<dd>The DST code for Canada encodes the state for all provinces.
|
||||
|
||||
<dt><tt>lw</tt>
|
||||
<dd>The leap second warning is normally space, but changes to <tt>L</tt> if a leap second is to occur at the end of the month.<dt><tt>dst</tt>
|
||||
<dd>The DST code for Canada encodes the state for all provinces. It is encoded as two hex characters.
|
||||
<dt><tt>dut</tt>
|
||||
<dd>The DUT sign and magnitude shows the current UT1 offset relative to the displayed UTC time, in deciseconds.
|
||||
<dd>The DUT sign and magnitude shows the current UT1 offset relative to the displayed UTC time, in deciseconds. It is encoded as one digit preceeded by sign.
|
||||
<dt><tt>lset</tt>
|
||||
<dd>Before the clock is set, the interval since last set is the number of minutes since the program was started; after the clock is set, this is number of minutes since the time was last verified relative to the broadcast signal.
|
||||
<dt><tt>agc</tt>
|
||||
<dd>The audio gain shows the current codec gain setting in the range 0 to 255. Ordinarily, the receiver audio gain control or IRIG level control should be set for a value midway in this range.
|
||||
<dt><tt>rfrq</tt>
|
||||
<dd>The current radio frequency, if the CI-V interface is active, or 'X' if not.
|
||||
<dt><tt>bcnt</tt>
|
||||
<dd>The number of format A bursts received during the most recent minute bursts were received.
|
||||
<dt><tt>dist</tt>
|
||||
<dd>The minimum decoding distance determined during the most recent minute bursts were received.
|
||||
<dt><tt>tsmp</tt>
|
||||
<dd>The number of timestamps determined during the most recent minute bursts were received.
|
||||
<dd>Before the clock is set, this is the number of minutes since the program was started; after the clock is set, this is the number of minutes since the time was last verified relative to the broadcast signal.<dt><tt>agc</tt>
|
||||
<dd>The audio gain shows the current codec gain setting in the range 0 to 255. Ordinarily, the receiver audio gain control should be set for a value midway in this range.
|
||||
<dt><tt>ident</tt>
|
||||
<dd>The CHU identifier <tt>CHU </tt>followed by the current radio frequency
|
||||
code, if the CI-V interface is active, or <tt>CHU</tt> if not. The radio
|
||||
frequncy is encoded as 0 for 3.330 MHz, 1 for 7.850 MHz and 2
|
||||
for 14.670 MHz.<dt><tt>dist</tt>
|
||||
<dd>The decoding distance determined during the most recent minute bursts were received. The values range from 0 to 160, with the higher values indicating better signals. The decoding algorithms require the distance at least 50; otherwise all data in the minute are discarded.<dt><tt>tsmp</tt>
|
||||
<dd>The number of timestamps determined during the most recent minute bursts were received. The values range from 0 to 60, with the higher values indicating better signals. The decoding algoriths require at least 20 timestamps in the minute; otherwise all data in the minute are discarded.
|
||||
</dl>
|
||||
<h4>Modes</h4>
|
||||
<p>The <tt>mode</tt> keyword of the <tt>server</tt> configuration command specifies the ICOM ID select code. A missing or zero argument disables the CI-V interface. Following are the ID select codes for the known radios.</p>
|
||||
<table width="100%" cols="6">
|
||||
<tr>
|
||||
<td>Radio</td>
|
||||
<td>Hex</td>
|
||||
<td>Decimal</td>
|
||||
<td>Radio</td>
|
||||
<td>Hex</td>
|
||||
<td>Decimal</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC725</td>
|
||||
<td>0x28</td>
|
||||
<td>40</td>
|
||||
<td>IC781</td>
|
||||
<td>0x26</td>
|
||||
<td>38</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC726</td>
|
||||
<td>0x30</td>
|
||||
<td>48</td>
|
||||
<td>R7000</td>
|
||||
<td>0x08</td>
|
||||
<td>8</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC735</td>
|
||||
<td>0x04</td>
|
||||
<td>4</td>
|
||||
<td>R71</td>
|
||||
<td>0x1A</td>
|
||||
<td>26</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC751</td>
|
||||
<td>0x1c</td>
|
||||
<td>28</td>
|
||||
<td>R7100</td>
|
||||
<td>0x34</td>
|
||||
<td>52</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC761</td>
|
||||
<td>0x1e</td>
|
||||
<td>30</td>
|
||||
<td>R72</td>
|
||||
<td>0x32</td>
|
||||
<td>50</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC765</td>
|
||||
<td>0x2c</td>
|
||||
<td>44</td>
|
||||
<td>R8500</td>
|
||||
<td>0x4a</td>
|
||||
<td>74</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IC775</td>
|
||||
<td>0x46</td>
|
||||
<td>68</td>
|
||||
<td>R9000</td>
|
||||
<td>0x2a</td>
|
||||
<td>42</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the propagation delay for CHU (45:18N 75:45N), in seconds and fraction, with default 0.0.
|
||||
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>CHU</tt>.
|
||||
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>When the audio driver is compiled, this flag selects the audio input port, where 0 is the mike port (default) and 1 is the line-in port. It does not seem useful to select the compact disc player port.
|
||||
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>When the audio driver is compiled, this flag enables audio monitoring of the input signal. For this purpose, the speaker volume must be set before the driver is started.
|
||||
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Enable verbose <tt>clockstats</tt> recording if set.
|
||||
|
||||
</dl>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
@ -158,7 +158,28 @@
|
||||
<p><b><tt>Gude Analog- und Digitalsystem GmbH 'Expert mouseCLOCK USB v2.0'</tt></b><br>
|
||||
<br></p>
|
||||
|
||||
<li><b><tt>server 127.127.8.0-3 mode 20</tt></b>
|
||||
<p><b><tt>RAWDCF receiver similar to mode 14, but operating @ 75 baud (DTR=high/RTS=low)</tt></b><br>
|
||||
</p>
|
||||
<p>Driving the DCF clocks at 75 baud may help to get them to work with a bunch of common USB serial converters, that do 75 but cannot do 50 baud at all, e.g. those based on Prolific PL2303.
|
||||
<br></p>
|
||||
|
||||
<li><b><tt>server 127.127.8.0-3 mode 21</tt></b>
|
||||
<p><b><tt>RAWDCF receiver similar to mode 16, but operating @ 75 baud (DTR=low/RTS=high) </tt></b><br>
|
||||
</p>
|
||||
<p>See comment from mode 20 clock.
|
||||
<br></p>
|
||||
|
||||
<li><b><tt>server 127.127.8.0-3 mode 22</tt></b>
|
||||
<p><b><tt>MEINBERG, mode 2 but with POWERUP trust </tt></b><br>
|
||||
</p>
|
||||
|
||||
<li><b><tt>server 127.127.8.0-3 mode 23</tt></b>
|
||||
<p><b><tt>MEINBERG, mode 7 but with POWERUP trust </tt></b><br>
|
||||
</p>
|
||||
|
||||
</ul>
|
||||
|
||||
<p>Actual data formats and setup requirements of the various clocks can be found in <a href="../parsedata.html">NTP PARSE clock data formats</a>.</p>
|
||||
<h4>Operation</h4>
|
||||
<p>The reference clock support software carefully monitors the state transitions of the receiver. All state changes and exceptional events (such as loss of time code transmission) are logged via the syslog facility. Every hour a summary of the accumulated times for the clock states is listed via syslog.</p>
|
||||
|
@ -2,57 +2,56 @@
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Magnavox MX4200 GPS Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.01 [en] (Win95; I) [Netscape]">
|
||||
<title>Magnavox MX4200 GPS Receiver</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Magnavox MX4200 GPS Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.9.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_MX4200</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 4800 baud, 8-bits, no parity<br>
|
||||
Features: <tt>ppsclock</tt> (required)
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Magnavox MX4200 Navigation Receiver adapted to precision timing applications. It requires the <tt>ppsclock</tt> line discipline or streams module described in the <a href="../ldisc.html">Line Disciplines and Streams Modules</a> page. It also requires a level converter such as described in the <a href="../pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page.</p>
|
||||
<p>This driver supports all compatible receivers such as the 6-channel MX4200, MX4200D, and the 12-channel MX9212, MX9012R, MX9112.</p>
|
||||
<p><a href="http://www.leica-gps.com/"><img src="../pic/9400n.jpg" alt="Leica MX9400N Navigator" height="143" width="180" align="left"></a> <a href="http://www.leica-gps.com/">Leica Geosystems</a> acquired the Magnavox commercial GPS technology business in February of 1994. They now market and support former Magnavox GPS products such as the MX4200 and its successors.</p>
|
||||
<br clear="LEFT">
|
||||
<p>Leica MX9400N Navigator.</p>
|
||||
<h4>Operating Modes</h4>
|
||||
<p>This driver supports two modes of operation, static and mobile, controlled by clock flag 2.</p>
|
||||
<p>In static mode (the default) the driver assumes that the GPS antenna is in a fixed location. The receiver is initially placed in a "Static, 3D Nav" mode, where latitude, longitude, elevation and time are calculated for a fixed station. An average position is calculated from this data. After 24 hours, the receiver is placed into a "Known Position" mode, initialized with the calculated position, and then solves only for time.</p>
|
||||
<p>In mobile mode, the driver assumes the GPS antenna is mounted on a moving platform such as a car, ship, or aircraft. The receiver is placed in "Dynamic, 3D Nav" mode and solves for position, altitude and time while moving. No position averaging is performed.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>The driver writes each timecode as received to the <tt>clockstats</tt> file. Documentation for the <cite>NMEA-0183</cite> proprietary sentences produced by the MX4200 can be found in <a href="../mx4200data.html">MX4200 Receiver Data Format</a>.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Assume GPS receiver is on a mobile platform if set.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a> </p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
<body>
|
||||
<h3>Magnavox MX4200 GPS Receiver</h3>
|
||||
<hr>
|
||||
<h4>Synopsis</h4>
|
||||
Address: 127.127.9.<i>u</i><br>
|
||||
Reference ID: <tt>GPS</tt><br>
|
||||
Driver ID: <tt>GPS_MX4200</tt><br>
|
||||
Serial Port: <tt>/dev/gps<i>u</i></tt>; 4800 baud, 8-bits, no parity<br>
|
||||
Features: <tt>ppsclock</tt> (required)
|
||||
<h4>Description</h4>
|
||||
<p>This driver supports the Magnavox MX4200 Navigation Receiver adapted to precision timing applications. This driver supports all compatible receivers such as the 6-channel MX4200, MX4200D, and the 12-channel MX9212, MX9012R, MX9112.</p>
|
||||
<p><a href="http://www.leica-gps.com/"><img src="../pic/9400n.jpg" alt="Leica MX9400N Navigator" height="143" width="180" align="left"></a> <a href="http://www.leica-gps.com/">Leica Geosystems</a> acquired the Magnavox commercial GPS technology business in February of 1994. They now market and support former Magnavox GPS products such as the MX4200 and its successors.</p>
|
||||
<br clear="LEFT">
|
||||
<p>Leica MX9400N Navigator.</p>
|
||||
<h4>Operating Modes</h4>
|
||||
<p>This driver supports two modes of operation, static and mobile, controlled by clock flag 2.</p>
|
||||
<p>In static mode (the default) the driver assumes that the GPS antenna is in a fixed location. The receiver is initially placed in a "Static, 3D Nav" mode, where latitude, longitude, elevation and time are calculated for a fixed station. An average position is calculated from this data. After 24 hours, the receiver is placed into a "Known Position" mode, initialized with the calculated position, and then solves only for time.</p>
|
||||
<p>In mobile mode, the driver assumes the GPS antenna is mounted on a moving platform such as a car, ship, or aircraft. The receiver is placed in "Dynamic, 3D Nav" mode and solves for position, altitude and time while moving. No position averaging is performed.</p>
|
||||
<h4>Monitor Data</h4>
|
||||
<p>The driver writes each timecode as received to the <tt>clockstats</tt> file. Documentation for the <cite>NMEA-0183</cite> proprietary sentences produced by the MX4200 can be found in <a href="mx4200data.html">MX4200 Receiver Data Format</a>.</p>
|
||||
<h4>Fudge Factors</h4>
|
||||
<dl>
|
||||
<dt><tt>time1 <i>time</i></tt>
|
||||
<dd>Specifies the time offset calibration factor, in seconds and fraction, with default 0.0.
|
||||
<dt><tt>time2 <i>time</i></tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>stratum <i>number</i></tt>
|
||||
<dd>Specifies the driver stratum, in decimal from 0 to 15, with default 0.
|
||||
<dt><tt>refid <i>string</i></tt>
|
||||
<dd>Specifies the driver reference identifier, an ASCII string from one to four characters, with default <tt>GPS</tt>.
|
||||
<dt><tt>flag1 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag2 0 | 1</tt>
|
||||
<dd>Assume GPS receiver is on a mobile platform if set.
|
||||
<dt><tt>flag3 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
<dt><tt>flag4 0 | 1</tt>
|
||||
<dd>Not used by this driver.
|
||||
</dl>
|
||||
<h4>Additional Information</h4>
|
||||
<p><a href="../refclock.html">Reference Clock Drivers</a> </p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<title>MX4200 Receiver Data Format</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
<link href="../scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@ -1068,7 +1068,7 @@
|
||||
Example:<br>
|
||||
<code>$PMVXG,830,T,1998,10,12,15:30:46,U,S,000298,00003,000000,01*02</code>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="../scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -13,17 +13,34 @@
|
||||
<h3>External Clock Discipline and the Local Clock Driver</h3>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">18:38</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="246">Thursday, July 28, 2005</csobj></p>
|
||||
<hr>
|
||||
<p>The NTPv4 implementation includes provisions for an external clock, where the system clock is implemented by some external hardware device. One implementation might take the form of a bus peripheral with a high resolution counter disciplined by a GPS receiver, for example. Another implementation might involve another synchronization protocol, such as the Digital Time Synchronization Service (DTSS), where the system time is disciplined to this protocol and NTP clients of the server obtain synchronization indirectly via the server. A third implementation might be a completely separate clock discipline algorithm and synchronization protocol, such as the <tt>Lockclock</tt> algorithm used with NIST Automated Computer Time Service (ACTS) modem synchronized time.</p>
|
||||
<p>The NTPv4 implementation includes provisions for an external clock, where
|
||||
the system clock is implemented by some external hardware device.
|
||||
One implementation might take the form of a bus peripheral with a high resolution
|
||||
counter disciplined by a GPS receiver, for example. Another implementation
|
||||
might involve another synchronization protocol, such as the Digital Time Synchronization
|
||||
Service (DTSS), where the system time is disciplined to this protocol and
|
||||
NTP clients of the server obtain synchronization indirectly via the server.
|
||||
A third implementation might be a completely separate clock discipline algorithm
|
||||
and synchronization protocol, such as the <tt>Lockclock</tt> algorithm used
|
||||
with NIST Automated Computer Time Service (ACTS) modem synchronized time.</p>
|
||||
<p>When external clocks are used in conjunction with NTP service, some way needs to be provided for the external clock driver and NTP daemon <tt>ntpd</tt> to communicate and determine which discipline is in control. This is necessary in order to provide backup, for instance if the external clock or protocol were to fail and synchronization service fall back to other means, such as a local reference clock or another NTP server. In addition, when the external clock and driver are in control, some means needs to be provided for the clock driver to pass on status information and error statistics to the NTP daemon.</p>
|
||||
<p>Control and monitoring functions for the external clock and driver are implemented using the <a href="drivers/driver1.html">Local Clock (type 1) driver</a> and the <tt>ntp_adjtime()</tt> system call. This system call is implemented by special kernel provisions included in the kernel of several operating systems, including Solaris, Tru64, FreeBSD and Linux, and possibly others. When the external clock is disabled or not implemented, the system call is used to pass time and frequency information, as well as error statistics, to the kernel. Besides disciplining the system time, the same interface can be used by other applications to determine the operating parameters of the discipline.</p>
|
||||
<p>When the external clock is enabled, <tt>ntpd</tt> does not discipline the system clock, nor does it maintain the error statistics. In this case, the external clock and driver do this using mechanisms unknown to <tt>ntpd</tt>; however, in this case the kernel state variables are retrieved at 64-s intervals by the Local Clock driver and used by the clock selection and mitigation algorithms to determine the system variables presented to other NTP clients and peers. In this way, downstream clients and servers in the NTP subnet can make an intelligent choice when more than one server is available.</p>
|
||||
<p>In order to implement a reliable mitigation between ordinary NTP sources and the external clock source, a protocol is necessary between the local clock driver and the external clock driver. This is implemented using Boolean variables and certain bits in the kernel clock status word. The Boolean variables include the following:</p>
|
||||
<p><tt>ntp_enable</tt>. set/reset by the <tt>enable</tt> command. enables ntp clock discipline</p>
|
||||
<p><tt>ntp_enable</tt>. set/reset by the <tt>enable</tt> command. enables ntpd
|
||||
clock discipline</p>
|
||||
<p><tt>ntp_contro</tt>l. set during initial configuration if kernel support is available</p>
|
||||
<p><tt>kern_enable</tt> Set/reset by the <tt>enable</tt> command</p>
|
||||
<p>If the <tt>kern_enable</tt> switch is set, the daemon computes the offset, frequency, maximum error, estimated error, time constand and status bits, then provides them to the kernel via <tt>ntp_adjtime()</tt>. If this switch is not set, these values are not passed to the kernel; however, the daemon retrieves their present values and uses them in place of the values computed by the daemon.</p>
|
||||
<p>If the <tt>kern_enable</tt> switch is set, the daemon computes the offset,
|
||||
frequency, maximum error, estimated error, time constant and status bits,
|
||||
then provides them to the kernel via <tt>ntp_adjtime()</tt>. If this switch
|
||||
is not set, these values are not passed to the kernel; however, the daemon
|
||||
retrieves their present values and uses them in place of the values computed
|
||||
by the daemon.</p>
|
||||
<p>The <tt>pps_update</tt> bit set in the protocol routine if the prefer peer has survived and has offset less than 128 ms; otherwise set to zero.</p>
|
||||
<p>The <tt>pps_contro</tt>l Updated to the current time by kernel support if the PPS signal is enabled and working correctly. Set to zero in the adjust routine if the interval since the last update exceeds 120 s.</p>
|
||||
<p>The <tt>PPS control</tt> Updated to the current time by kernel support if
|
||||
the PPS signal is enabled and working correctly. Set to zero in the adjust
|
||||
routine if the interval since the last update exceeds 120 s.</p>
|
||||
<p>The <tt>ntp_enable</tt> and <tt>kern_enable</tt> are set by the configuration module. Normally, both switches default on, so the daemon can control the time and the kernel discipline can be used, if available. The <tt>pps_update</tt> switch is set by the protocol module when it believes the PPS provider source is legitimate and operating within nominals. The <tt>ntp_control</tt> switch is set during configuration by interrogating the kernel. If both the <tt>kern_enable</tt> and <tt>ntp_control</tt> switches are set, the daemon disciplines the clock via the kernel and the internal daemon discipline is disabled.</p>
|
||||
<p>The external clock driver controls the system time and clock selection in the following way. Normally, the driver adjusts the kernel time using the <tt>ntp_adjtime()</tt> system call in the same way as the daemon. In the case where the kernel discipline is to be used intact, the clock offset is provided in this call and the loop operates as specified. In the case where the driver steers only the frequency, the offset is specified as zero.</p>
|
||||
<hr>
|
||||
|
@ -11,20 +11,29 @@
|
||||
<body>
|
||||
<h3>Gadget Box PPS Level Converter and CHU Modem</h3>
|
||||
<img src="pic/gadget.jpg" alt="gif" align="left">A Gadget Box built by Chuck Hanavin
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<p>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links11.txt"></script>
|
||||
<script type="text/javascript" language="javascript" src="scripts/misc.txt"></script>
|
||||
<br clear="left">
|
||||
</p>
|
||||
<h4>table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#intro">Introduction</a>
|
||||
<li class="inline"><a href="#ckt">Circuit Description</a>
|
||||
<li class="inline"><a href="#file">Files</a>
|
||||
<li class="inline"><a href="#intro">Introduction</a></li>
|
||||
<li class="inline"><a href="#ckt">Circuit Description</a></li>
|
||||
<li class="inline"><a href="#file">Files</a></li>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="intro">Introduction</h4>
|
||||
<p>Many radio clocks used as a primary reference source for NTP servers produce a pulse-per-second (PPS) signal that can be used to improve accuracy to a high degree. However, the signals produced are usually incompatible with the modem interface signals on the serial ports used to connect the signal to the host. The gadget box consists of a handful of electronic components assembled in a small aluminum box. It includes level converters and a optional radio modem designed to decode the radio timecode signals transmitted by the Canadian time and frequency station CHU. A complete set of schematics, PCB artwork, drill templates can be obrtained via the web from ftp.udel.edu as <a href="ftp://ftp.udel.edu/pub/ntp/hardware/gadget.tar.Z">gadget.tar.Z</a>.</p>
|
||||
<p>Many radio clocks used as a primary reference source for NTP servers produce
|
||||
a pulse-per-second (PPS) signal that can be used to improve accuracy to a
|
||||
high degree. However, the signals produced are usually incompatible with the
|
||||
modem interface signals on the serial ports used to connect the signal to
|
||||
the host. The gadget box consists of a handful of electronic components assembled
|
||||
in a small aluminum box. It includes level converters and a optional radio
|
||||
modem designed to decode the radio timecode signals transmitted by the Canadian
|
||||
time and frequency station CHU. A complete set of schematics, PCB artwork,
|
||||
drill templates can be obtained via the web from ftp.udel.edu as <a href="ftp://ftp.udel.edu/pub/ntp/hardware/gadget.tar.Z">gadget.tar.Z</a>.</p>
|
||||
<p>The gadget box is assembled in a 5"x3"x2" aluminum minibox containing the level converter and modem circuitry. It includes two subcircuits. One of these converts a TTL positive edge into a fixed-width pulse at EIA levels and is for use with a timecode receiver or oscillator including a TTL PPS output. The other converts the timecode modulation broadcast by Canadian time/frequency standard station CHU into a 300-bps serial character stream at EIA levels and is for use with the <a href="drivers/driver7.html">Radio CHU Audio Demodulator/Decoder</a> driver.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
|
@ -1,47 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
|
||||
<meta name="generator" content="HTML Tidy, see www.w3.org">
|
||||
<title>Trusted Hosts and Groups</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Trusted Hosts and Groups</h3>
|
||||
<img src="pic/alice23.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html">from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>Alice holds the key.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="25" locale="00000409" region="0" t="DateTime" w="61">00:12</csobj> UTC <csobj format="LongDate" h="25" locale="00000409" region="0" t="DateTime" w="299">Tuesday, November 08, 2005</csobj></p>
|
||||
<br clear="left">
|
||||
<h4>Related Links</h4>
|
||||
<script type="text/javascript" language="javascript" src="scripts/links9.txt"></script>
|
||||
<h4>Table of Contents</h4>
|
||||
<ul>
|
||||
<li class="inline"><a href="#idexp">Identity Schemes</a>
|
||||
<li class="inline"><a href="#exam">Example</a>
|
||||
<li class="inline"><a href="#cmd">Command Line Options</a>
|
||||
<li class="inline"><a href="#rand">Random Seed File</a>
|
||||
<li class="inline"><a href="#fmt">Cryptographic Data Files</a>
|
||||
<li class="inline"><a href="#bug">Bugs</a>
|
||||
</ul>
|
||||
<hr>
|
||||
<h4 id="synop">Trusted Hosts and Groups</h4>
|
||||
<p>Each cryptographic configuration involves selection of a signature scheme and identification scheme, called a cryptotype, as explained in the <a href="authopt.html">Authentication Options</a> page. The default cryptotype uses RSA encryption, MD5 message digest and TC identification. First, configure a NTP subnet including one or more low-stratum trusted hosts from which all other hosts derive synchronization directly or indirectly. Trusted hosts have trusted certificates; all other hosts have nontrusted certificates. These hosts will automatically and dynamically build authoritative certificate trails to one or more trusted hosts. A trusted group is the set of all hosts that have, directly or indirectly, a certificate trail ending at a trusted host. The trail is defined by static configuration file entries or dynamic means described on the <a href="manyopt.html">Automatic NTP Configuration Options</a> page.</p>
|
||||
<p>On each trusted host as root, change to the keys directory. To insure a fresh fileset, remove all <tt>ntpkey</tt> files. Then run <tt>ntp-keygen -T</tt> to generate keys and a trusted certificate. On all other hosts do the same, but leave off the <tt>-T</tt> flag to generate keys and nontrusted certificates. When complete, start the NTP daemons beginning at the lowest stratum and working up the tree. It may take some time for Autokey to instantiate the certificate trails throughout the subnet, but setting up the environment is completely automatic.</p>
|
||||
<p>If it is necessary to use a different sign key or different digest/signature scheme than the default, run <tt>ntp-keygen</tt> with the <tt>-S</tt><i><tt> type</tt></i> option, where <i><tt>type</tt></i> is either <tt>RSA</tt> or <tt>DSA</tt>. The most often need to do this is when a DSA-signed certificate is used. If it is necessary to use a different certificate scheme than the default, run <tt>ntp-keygen</tt> with the <tt>-c <i>scheme</i></tt> option and selected <i><tt>scheme</tt></i> as needed. If <tt>ntp-keygen</tt> is run again without these options, it generates a new certificate using the same scheme and sign key.</p>
|
||||
<p>After setting up the environment it is advisable to update certificates from time to time, if only to extend the validity interval. Simply run <tt>ntp-keygen</tt> with the same flags as before to generate new certificates using existing keys. However, if the host or sign key is changed, <tt>ntpd</tt> should be restarted. When ntpd is restarted, it loads any new files and restarts the protocol. Other dependent hosts will continue as usual until signatures are refreshed, at which time the protocol is restarted.</p>
|
||||
<h4 id="idexp">Identity Schemes</h4>
|
||||
<p>As mentioned on the Autonomous Authentication page, the default TC identity scheme is vulnerable to a middleman attack. However, there are more secure identity schemes available, including PC, IFF, GQ and MV described on the <a href="http://www.eecis.udel.edu/%7emills/keygen.html">Identification Schemes</a> page. These schemes are based on a TA, one or more trusted hosts and some number of nontrusted hosts. Trusted hosts prove identity using values provided by the TA, while the remaining hosts prove identity using values provided by a trusted host and certificate trails that end on that host. The name of a trusted host is also the name of its sugroup and also the subject and issuer name on its trusted certificate. The TA is not necessarily a trusted host in this sense, but often is.</p>
|
||||
<p>In some schemes there are separate keys for servers and clients. A server can also be a client of another server, but a client can never be a server for another client. In general, trusted hosts and nontrusted hosts that operate as both server and client have parameter files that contain both server and client keys. Hosts that operate only as clients have key files that contain only client keys.</p>
|
||||
<p>The PC scheme supports only one trusted host in the group. On trusted host <i>alice</i> run <tt>ntp-keygen -P -p <i>password</i></tt> to generate the host key file <tt>ntpkey_RSAkey_<i>alice.filestamp</i></tt> and trusted private certificate file <tt>ntpkey_RSA-MD5_cert_<i>alice.filestamp</i></tt>. Copy both files to all group hosts; they replace the files which would be generated in other schemes. On each host <i>bob</i> install a soft link from the generic name <tt>ntpkey_host_<i>bob</i></tt> to the host key file and soft link <tt>ntpkey_cert_<i>bob</i></tt> to the private certificate file. Note the generic links are on <i>bob</i>, but point to files generated by trusted host <i>alice</i>. In this scheme it is not possible to refresh either the keys or certificates without copying them to all other hosts in the group.</p>
|
||||
<p>For the IFF scheme proceed as in the TC scheme to generate keys and certificates for all group hosts, then for every trusted host in the group, generate the IFF parameter file. On trusted host <i>alice</i> run <tt>ntp-keygen -T </tt><tt>-I -p <i>password</i></tt> to produce her parameter file <tt>ntpkey_IFFpar_<i>alice.filestamp</i></tt>, which includes both server and client keys. Copy this file to all group hosts that operate as both servers and clients and install a soft link from the generic <tt>ntpkey_iff_<i>alice</i></tt> to this file. If there are no hosts restricted to operate only as clients, there is nothing further to do. As the IFF scheme is independent of keys and certificates, these files can be refreshed as needed.</p>
|
||||
<p>If a rogue client has the parameter file, it could masquerade as a legitimate server and present a middleman threat. To eliminate this threat, the client keys can be extracted from the parameter file and distributed to all restricted clients. After generating the parameter file, on <i>alice</i> run <tt>ntp-keygen</tt> <tt>-e</tt> and pipe the output to a file or mail program. Copy or mail this file to all restricted clients. On these clients install a soft link from the generic <tt>ntpkey_iff_<i>alice</i></tt> to this file. To further protect the integrity of the keys, each file can be encrypted with a secret password.</p>
|
||||
<p>For the GQ scheme proceed as in the TC scheme to generate keys and certificates for all group hosts, then for every trusted host in the group, generate the IFF parameter file. On trusted host <i>alice</i> run <tt>ntp-keygen -T </tt><tt>-G -p <i>password</i></tt> to produce her parameter file <tt>ntpkey_GQpar_<i>alice.filestamp</i></tt>, which includes both server and client keys. Copy this file to all group hosts and install a soft link from the generic <tt>ntpkey_gq_<i>alice</i></tt> to this file. In addition, on each host <i>bob</i> install a soft link from generic <tt>ntpkey_gq_<i>bob</i></tt> to this file. As the GQ scheme updates the GQ parameters file and certificate at the same time, keys and certificates can be regenerated as needed.</p>
|
||||
<p>For the MV scheme, proceed as in the TC scheme to generate keys and certificates for all group hosts. For illustration assume <i>trish</i> is the TA, <i>alice</i> one of several trusted hosts and <i>bob</i> one of her clients. On TA <i>trish</i> run <tt>ntp-keygen </tt><tt>-V <i>n</i> -p <i>password</i></tt>, where <i>n</i> is the number of revokable keys (typically 5) to produce the parameter file <tt>ntpkeys_MVpar_<i>trish.filestamp </i></tt>and client key files <tt>ntpkeys_MVkey<i>d</i>_<i>trish.filestamp</i></tt> where <i><tt>d</tt></i> is the key number (0 < <i><tt>d</tt></i> < <i>n</i>). Copy the parameter file to <i>alice</i> and install a soft link from the generic <tt>ntpkey_mv_<i>alice</i></tt> to this file. Copy one of the client key files to <i>alice</i> for later distribution to her clients. It doesn't matter which client key file goes to <i>alice</i>, since they all work the same way. <i>Alice</i> copies the client key file to all of her cliens. On client <i>bob</i> install a soft link from generic <tt>ntpkey_mvkey_<i>bob </i></tt>to the client key file. As the MV scheme is independent of keys and certificates, these files can be refreshed as needed.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
24
html/hints.html
Normal file
24
html/hints.html
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
|
||||
<title>Hints and Kinks</title>
|
||||
<link href="scripts/style.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h3>Hints and Kinks</h3>
|
||||
<img src="pic/alice35.gif" align="left"><a href="http://www.eecis.udel.edu/%7emills/pictures.html"> from <i>Alice's Adventures in Wonderland</i>, Lewis Carroll</a>
|
||||
<p>Mother in law has all the answers.</p>
|
||||
<p>Last update: <csobj format="ShortTime" h="24" locale="00000409" region="0" t="DateTime" w="50">20:27</csobj> UTC <csobj format="LongDate" h="24" locale="00000409" region="0" t="DateTime" w="257">Monday, December 02, 2002</csobj></p>
|
||||
<br clear="left">
|
||||
<hr>
|
||||
<p>This is an index for a set of troubleshooting notes contained in individual text files in the <tt>./hints</tt> directory. They were supplied by various volunteers in the form of mail messages, patches or just plain word of mouth. Each note applies to a specific computer and operating system and gives information found useful in setting up the NTP distribution or site configuration. The notes are very informal and subject to errors; no attempt has been made to verify the accuracy of the information contained in them.</p>
|
||||
<p>Additions or corrections to this list or the information contained in the notes is solicited. The most useful submissions include the name of the computer manufacturer (and model numbers where appropriate), operating system (specific version(s) where appropriate), problem description, problem solution and submitter's name and electric address. If the submitter is willing to continue debate on the problem, please so advise. See the <a href="hints/">directory listing</a>.</p>
|
||||
<hr>
|
||||
<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user