ChangeLog, build, flock-build:
* build: Run "config.status" before the "make" because it probably
saves time and trouble. Probably...
* flock-build: Try building sequentially.
flock-build:
* flock-build: Try building sequentially.
ChangeLog, ntpd.c, ntp-genkeys.c:
* ntpd/ntpd.c (ntpdmain): Use mode_t for umask value.
* util/ntp-genkeys.c: Create files with the right umask.
aclocal.m4, configure, configure.in:
* configure.in: 4.0.99k28
Many files:
* util/ntp-genkeys.c: config_file should be declared, not defined.
* ntpd/refclock_mx4200.c (mx4200_pps): debug cleanup.
* ntpd/refclock_hopfser.c: If we're not using it, provide the _bs.
* ntpd/refclock_heath.c (heath_receive): Add missing "break"
statements.
* ntpd/ntp_proto.c: Lose extra definition of mode_ntpdate.
* librsaref/Makefile.am (nodist_librsaref_a_SOURCES): Put RSASRCS
on the same line as rsaref.h to improve portability.
* libntp/msyslog.c: Lint cleanup.
From: Marc.Brett@westerngeco.com
ChangeLog, aclocal.m4, configure, configure.in:
* configure.in: timespec can be found by looking in goofy places
under SunOS.
baldwin.conf, grundoon.conf, pogo.conf, rackety.conf:
Update sample config files
ChangeLog, ntp_crypto.c, ntp_loopfilter.c, ntp_peer.c, ntp_proto.c:
* ntpd/ntp_proto.c (receive): In the AM_NEWBCL case, return in all
cases at the end.
* ntpd/ntp_peer.c (newpeer): Check cast_flags against MDF_BCLNT,
not against MDF_BCAST.
* ntpd/ntp_loopfilter.c (local_clock): Lose debug info.
* ntpd/ntp_crypto.c (crypto_recv): Bugfix.
From: Dave Mills.
ChangeLog, ntp-genkeys.c:
* util/ntp-genkeys.c (main): Don't allow '#' in a generated MD5
key. Reported by: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
ChangeLog, emalloc.c:
* libntp/emalloc.c (emalloc): Tell people we are exiting if we log
an out-of-memory condition.
ChangeLog, ntp_loopfilter.c:
* ntpd/ntp_loopfilter.c (local_clock): debug message improvements
from Dave Mills.
Many files:
* ntpd/ntp_proto.c (poll_update): Some operations can only be done
if we're compiling with some REFCLOCKs.
From Dave Mills.
* configure.in (RSASRCS): Added.
* librsaref/Makefile.am (nodist_librsaref_a_SOURCES): Use RSASRCS.
Many files:
* acconfig.h: Lose extra declarations of PACKAGE and VERSION.
* acconfig.h:
* configure.in:
* include/l_stdlib.h: DECL_HSTRERROR_0 needed for xlc under AIX 4.3.2.
Reported by: Harald Barth <haba@pdc.kth.se>
ChangeLog, README.cvs, ntp_proto.c:
* ntpd/ntp_proto.c (proto_config): cal_enable (PROTO_CAL) is
invalid if no refclocks are present.
From: Frodo Looijaard <frodol@dds.nl>
* README.cvs: On some systems, the -C option fails.
Many files:
* util/ntp-genkeys.c: sys_minpoll.
* ntpd/refclock_atom.c: Comment additions.
* ntpd/ntp_proto.c: mode_ntpdate and peer_ntpdate added.
(transmit): We want 3, not 2, consecutive polls. hpoll logic
cleanup. mode_ntpdate changes.
(receive): When setting up a newpeer, use our sys_minpoll, not the
peer->ppoll.
(clock_update): sys_minpoll changes. Reorder some case 1 code.
Don't exit in case 2.
(poll_update): hpoll cleanup.
(peer_clear): u_rand. Use u_rand to randomize the initial poll.
* ntpd/ntp_peer.c (newpeer): Bump peer_ntpdate if we're in
mode_ntpdate.
* ntpd/ntp_loopfilter.c: Initialize sys_poll and sys_minpoll to
NTP_MINDPOLL.
(local_clock): Clean up some debug/info messages.
(rstclock): Use sys_minpoll.
(loop_config): KERNEL_PLL sanity checks. LOOP_MINPOLL support.
* ntpd/ntp_crypto.c (crypto_recv): Turn off FLAG_AUTOKEY when we
turn off TEST10.
* ntpd/ntp_control.c (ctl_getitem): Buffer overflow check. Clean
up some loop logic.
* ntpd/ntp_config.c: Added "tinker" and "minpoll". Use
sys_minpoll now, instead of old manifest constant.
(save_resolve): Print keyid using decimal, not hex.
* include/ntpd.h: Added peer_ntpdate and sys_minpoll.
* include/ntp_config.h (CONF_CLOCK_MINPOLL): Added.
* include/ntp.h: keyid cleanup. LOOP_* cleanup.
From Dave Mills.
COPYRIGHT, ChangeLog, aclocal.m4, configure, configure.in:
* configure.in (openssl): Publish and default to RSAREF; hide
openssl, and only use it if explicitly requested (at least until
we work with it).
Harlan Stenn [Sat, 31 Mar 2001 22:19:57 +0000 (22:19 -0000)]
Many files:
* ntpd/ntp_proto.c (transmit): Check peer->unreach.
(peer_clear): peer->outdate is a f(BURST_INTERVAL1), not
NTP_MINPOLL.
* ntpd/ntp_loopfilter.c (local_clock): mode_ntpdate stuff.
* ntpd/ntp_crypto.c: OpenSSL/RSAREF support.
* ntpd/cmd_args.c: Use -q, not -z, for mode_ntpdate.
(getstartup): nofork on mode_ntpdate. Usage update.
* include/ntp_crypto.h: OpenSSL/RSAREF support.
From: Dave Mills.
Harlan Stenn [Wed, 14 Mar 2001 05:08:04 +0000 (05:08 -0000)]
Many files:
* ntpdc/ntpdc_ops.c (printpeer): No more "valid".
* ntpd/ntp_request.c (peer_info): No more "valid".
* ntpd/ntp_refclock.c (refclock_transmit): valid/hpoll cleanup.
* ntpd/ntp_proto.c (transmit): valid/hpoll and peer->ttl cleanup.
peer->valid/oreach cleanup.
(receive): Call newpeer() with the pkt->ppoll, not
NTP_MINDPOLL (in several places).
In AM_NEWPASS, if we have a NULL peer, return.
(poll_update): Added xpoll definition, fixed oldpoll definition.
Algorithmic improvements.
* ntpd/ntp_peer.c (newpeer): Better minpoll/maxpoll
initialization.
(resetmanycast): That's a poll_update() on an MDF_ACAST, not a
poll_clear().
* ntpd/ntp_crypto.c: include <fcntl.h>.
(crypto_recv): Leave the crypto_flags alone when wiggling the
peer-> stuff.
(crypto_cert): Make room for daddy. Do a real open() on the cert
file. Read the cert. Initial hack and slash. Better debug info.
* ntpd/ntp_control.c: CP_VALID now does "unreach".
(ctl_putpeer): Ditto.
* include/ntp_request.h: info_peer gets a placeholder for "valid".
* include/ntp_crypto.h (CRYPTO_FLAG_CERT): Comment update.
* include/ntp.h: Lose "valid" from struct peer.
From: Dave Mills.
Harlan Stenn [Sun, 4 Mar 2001 02:34:37 +0000 (02:34 -0000)]
ChangeLog, ntp.h, ntp_crypto.c, ntp_proto.c:
* ntpd/ntp_proto.c (transmit): Documentation cleanup.
(receive): Watch for NULL peer->pubkey.ptr (TEST11).
(poll_update): peer->nextdate, not ->outdate. More cleanup around
the disabled PUBKEY chunk.
* ntpd/ntp_crypto.c (make_keylist): ltemp might be smaller than
sys_automax - check peer->kpoll, too. Other ltemp cleanup.
(crypto_recv): fstamp is a PUBKEY-only variable.
* include/ntp.h (NTP_AUTOMAX): 13, not 12.
From: Dave Mills.
Harlan Stenn [Thu, 1 Mar 2001 19:05:10 +0000 (19:05 -0000)]
ChangeLog, ntp.h, ntp_crypto.c, ntp_proto.c:
* ntpd/ntp_proto.c (transmit): hpoll cleanup. Call clock_select()
after calling poll_update, not before.
(receive): Call poll_update after crypto_recv if FLAG_SKEY.
(process_packet): Set peer->ppoll Later.
(poll_update): peer->hpoll sanity checking. Set peer->outdate,
not ->nextate, when burst > 0. MDF_ACAST cleanup.
(clock_select): Fix hpoll typo in call to poll_update().
* ntpd/ntp_crypto.c (crypto_xmit): tstamp's value is a function of
PUBKEY.
* include/ntp.h (clear_to_zero): #define value is a function of
AUTOKEY.
From: Dave Mills.
Harlan Stenn [Wed, 28 Feb 2001 05:43:29 +0000 (05:43 -0000)]
ChangeLog, ntp.h, ntp_crypto.c, ntp_loopfilter.c, ntp_proto.c, ntp_timer.c:
* ntpd/ntp_proto.c (transmit): Documentation/code update.
(poll_update): Sanity check peer->hpoll. Improve debug info.
(peer_clear): Improve debug info. Turn off FLAG_ASSOC in addition
to FLAG_AUTOKEY.
(clock_select): peer->status is CTL_PST_SEL_DISTSYSPEER, and don't
call poll_update(). Make each entry in the peer_list a
CTL_PST_SEL_SELCAND sooner, too. Rework similar logic later on.
Change debug level on some info.
(peer_xmit): Check peer->flags using FLAG_ASSOC, not
CRYPTO_FLAG_AUTO in a couple places. Don't call poll_update() if
sendlen > LEN_PKT_NOMAC.
* ntpd/ntp_loopfilter.c (local_clock): Improve debug info.
Sanity-check sys_poll sooner.
* ntpd/ntp_crypto.c: New artwork.
(COOKIE_LEN,AUTOKEY_LEN,VALUE_LEN): New.
(make_keylist): More debug info. Use FLAG_ASSOC, not
CRYPTO_FLAG_ASSOC.
(crypto_recv): More debug info. Clean up/improve sanity checks on
CRYPTO_ASSOC and CRYPTO_RESP packets, and in other places.
(crypto_xmit): Clean up/improve sanity checks on CRYPTO_ASSOC and
CRYPTO_RESP packets. Use FLAG_ASSOC, not CRYPTO_FLAG_ASSOC. More
debug info.
* include/ntp.h (NTP_CANLOCK): Lose it.
(clear_to_zero): is now "assoc".
(FLAG_ASSOC): Added.
From: Dave Mills
Harlan Stenn [Sat, 24 Feb 2001 03:31:11 +0000 (03:31 -0000)]
Many files:
* ntpdate/ntpdate.h (NTP_MAXAGE): Added.
* ntpd/ntp_refclock.c (refclock_receive): Cleanup.
* ntpd/ntp_proto.c (transmit): Don't reset peer->ppoll in one case.
Update peer->hpoll based on CTL_PST_SEL_CORRECT, not FLAG_SYSPEER.
Don't update peer->ppoll based on MDF_[BM]CAST.
(peer_clear): ppoll is initialized to maxpoll.
(clock_select): call poll_update(peer->hpoll) earlier.
(peer_xmit): Call poll_update later.
* ntpd/ntp_peer.c (peer_config): Rework initial values of [hkp]poll.
* ntpd/ntp_loopfilter.c (CLOCK_PHI): Added. Deal with other
(allow_*) stuff. Treat Windows/NT the same as others regarding
panic steps. Deal with tinker stuff.
* ntpd/ntp_config.c: Tinker stuff.
* ntpd/cmd_args.c (getCmdOpts): -g now wiggles "allow_panic"
(renamed from "correct_any"). -x now wiggles "allow_step"
(renamed from "allow_step_backward").
* include/ntpd.h: Add tinker variables. Rename/rework variables
associated with "permission to step" and "permission to make a
panic correction"
* include/ntp_config.h (CONFIG_TINKER): Added.
(CONF_CLOCK_MAX): Tinker keyword
(CONF_CLOCK_PANIC): Tinker keyword
(CONF_CLOCK_PHI): Tinker keyword
(CONF_CLOCK_MINSTEP): Tinker keyword
* include/ntp.h (NTP_MINCLOCK): Tinker and other cleanup.
From: Dave Mills
Harlan Stenn [Wed, 14 Feb 2001 07:56:49 +0000 (07:56 -0000)]
ChangeLog, ntp_crypto.c, ntp_proto.c:
* ntpd/ntp_proto.c (peer_xmit): Crypto-related fixes
From Dave Mills.
* ntpd/ntp_crypto.c (crypto_recv): Allocate space for the trailing
NUL on the keystr.
Harlan Stenn [Fri, 19 Jan 2001 02:28:13 +0000 (02:28 -0000)]
ChangeLog, aclocal.m4, configure, configure.in, ntp_proto.c:
* configure.in: 4.0.99k15
* ntpd/ntp_proto.c (clock_select): Track error[] items sooner.
Typo grabbing the dtemp value and in the sdisp calculation.
From Dave Mills.
Harlan Stenn [Wed, 17 Jan 2001 06:22:42 +0000 (06:22 -0000)]
ChangeLog, ntp.h, ntp_proto.c:
* ntpd/ntp_proto.c: Change description of sys_rootdelay and
sys_rootdispersion.
(process_packet): Fix p_del test (bad distance).
(process_packet): Fix bad synch distance test.
(process_packet): Fix call to clock_filter (p_disp)
(clock_update): Fix sys_rootdelay calculation.
(clock_filter): Initialize jit to f(sys_precision)
(clock_filter): Update jit using distance[i] instead of
SQUARE(). peer->jitter uses dtemp instead of SQUARE().
(clock_filter): Updated CLOCK_SGATE checks. When printing debug
info, show jitter along with popcorn spike.
(clock_select): New sdisp calc.
(root_distance): New return value calc.
(peer_xmit): xpkt.rootdispersion value change.
* include/ntp.h (CLOCK_SGATE): Popcorn spike gate (Whoa, Molly!)
From Dave Mills.
Harlan Stenn [Tue, 2 Jan 2001 08:14:17 +0000 (08:14 -0000)]
ChangeLog, ntp_proto.c:
* ntpd/ntp_proto.c (transmit): Fix documentation. Set
peer->outdate and call poll_update in a new place. Sanity checks
in the MODE_BROADCAST case.
(clock_select): Track the old peer. Use the old peer in
subsequent checks, where appropriate. Clean up unpeer() logic.
From Dave Mills.
Harlan Stenn [Mon, 1 Jan 2001 23:56:27 +0000 (23:56 -0000)]
ChangeLog, ntp_proto.c, refclock_chu.c:
* ntpd/refclock_chu.c: Start using HAVE_AUDIO.
* ntpd/ntp_proto.c (clock_select): If about to discard an
ephemeral association, do it only if not the system peer.
From Dave Mills.
Harlan Stenn [Sun, 31 Dec 2000 04:56:32 +0000 (04:56 -0000)]
Many files:
* ntpd/refclock_wwv.c (wwv_start): Call audio_init with DEVICE_AUDIO.
* ntpd/refclock_irig.c (irig_start): Call audio_init with DEVICE_AUDIO.
* ntpd/refclock_chu.c: Documentation cleanup.
(DEVICE_AUDIO): Added.
(fd_audio): Added.
(chu_start): Separate audio from serial device.
(chu_receive): Rewrite - get data from serial or audio device as
appropriate.
(chu_audio_receive): Renamed (from chu_receive) to allow both
audio and serial capability.
(chu_serial_receive): Ditto.
(chu_decode): Do the Right Thing based on audio/serial data.
* ntpd/ntp_refclock.c (refclock_open): Check for failure using <0
instead of ==-1.
* libntp/audio.c: Header cleanup, and remove
HAVE_STRUCT_AUDIO_INFO_* related fields.
(audio_init): Func arg is device to attempt to open.
* include/audio.h (audio_init): Now takes a char * argument.
From Dave Mills.
* configure.in (ntp_refclock): HAVE_AUDIO added. Remove
HAVE_STRUCT_AUDIO_INFO_* stuff; Dave rewrote the audio stuff.
Harlan Stenn [Thu, 14 Dec 2000 08:05:38 +0000 (08:05 -0000)]
ChangeLog, ntp_crypto.h, ntp_crypto.c, ntp_proto.c:
* ntpd/ntp_proto.c (process_packet): pleap/pstratum.
(peer_xmit): Use CRYPTO_FLAG_AUTO.
* ntpd/ntp_crypto.c (make_keylist): Use CRYPTO_FLAG_AUTO. Only
sign host name and timestamps if the clock is synched.
* include/ntp_crypto.h (CRYPTO_FLAG_AUTO): Added.
From: Dave Mills
Harlan Stenn [Tue, 12 Dec 2000 00:22:29 +0000 (00:22 -0000)]
ChangeLog, ntp_proto.c:
* ntpd/ntp_proto.c (transmit): Call clock_select in a few new
places. BURST/IBURST cleanup. Don't turn off FLAG_BURST at the
EOburst.
(receive): Set peer->unreach = 0 before we call process_packet().
(process_packet): ditto, before calling poll_update(). Lose some
debugging, MODE_BCLIENT/CLIENT cleanup.
(poll_update): Bump nextupdate on FLAG_REFCLOC, not _REFCLOCK or
_IBURST.
(peer_clear): Don't set IBURST on MDF_BCLNT.
From: Dave Mills.
Harlan Stenn [Mon, 4 Dec 2000 00:22:58 +0000 (00:22 -0000)]
ChangeLog, ntp_peer.c, ntp_proto.c:
* ntpd/ntp_proto.c (receive): That any_interface is now an
rbufp->dstadr.
Various other doc and code cleanup.
* ntpd/ntp_peer.c (findmanycastpeer): Fixes
From Dave Mills