Commit Graph

29 Commits

Author SHA1 Message Date
sommerfeld 75397663ed Correct precision estimate:
we buzzloop calling gettimeofday() until we see a big jump.
old code would take the difference between the immediately previous return value.
Now, compute the difference based on the clock value as of right
after the previous big jump.

An alpha pc164 at 500MHz can do about 700 calls to gettimeofday() in
one clock tick, each of which increments tv_usec by 1 -- so the "big
jump" at the end is only ~270us rather than the real clock tick of
976us, which yields a precision value which is overoptimistic by a
factor of ~4.  The corrected code now yields the exact tick value
(which is correct since NetBSD/alpha doesn't have a precise
microtime).
1999-09-06 22:27:44 +00:00
sommerfeld 1381ef0ce0 When peers are configured "remotely" (by ntp_intres.c), don't start
more than one per timer tick.  this will hopefully cause faster
convergence since the responses are less likely to pile up on top of
each other.  (they'll eventually get randomized out of synch with each
other, but there's no sense in starting them off synchronized).
1999-09-06 21:58:45 +00:00
bad 4254ad64cc Resurrect the code to check for duplicate interface addresses that was
lost in the previous change.

This fixes PRs 7065 and 7482 by Martin Husemann <martin@rumolt.teuto.de>.

Also do the interface copying iff INT_LOOPBACK as in the BSDI version of
this code.
1999-05-27 17:12:22 +00:00
garbled d1407362ba More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:43:46 +00:00
erh 9d7d8174c5 Add missing .El line. 1999-03-10 08:33:15 +00:00
hubertf 36f9d7790a RCS ID police 1999-02-15 04:03:03 +00:00
bouyer 659223bfb2 When searching broadcast addresses, skip interface aliases. From
Wolfgang Rupprecht in PR bin/6897.
1999-01-29 13:19:17 +00:00
mcr 63d650cccb HTML documentation files for XNTP, installed in /usr/share/doc/xntp 1998-12-30 20:19:29 +00:00
kleink 3eefada6a0 sigemptyset() sa_mask of sigaction to be installed. 1998-10-04 18:43:21 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
christos 3511f44e2e Fix typos... 1998-08-12 14:25:08 +00:00
christos a7a81d1b02 Resolve corn-flakes 1998-08-12 14:11:49 +00:00
thorpej f483a368ce Fix ptrdiff type lossage on Alpha. 1998-04-09 17:17:28 +00:00
christos aa476ac7ea WARNSify [patches sent to Udel] 1998-04-01 15:01:17 +00:00
mrg b5464ed20a main returns int. 1998-03-30 02:27:56 +00:00
christos 50e0331ef5 Resolve conflicts. 1998-03-06 18:17:13 +00:00
christos eed5e96410 Import xntp 3-5-92 1998-03-06 16:32:56 +00:00
cgd 27ef674380 (char)-1 != (int)-1 on unsigned-char machines. 1998-01-15 22:58:28 +00:00
perry 4db5a54188 RCS Id Police. 1998-01-09 06:06:02 +00:00
lukem bb2c8b04e6 ntp_getopt returns -1 not EOF, disable WARNS here 1997-10-17 14:34:38 +00:00
christos 44b323ecef PR/3837: Enami Tsugutomo: Incorrect printf format.
(use %p not %x to print pointers)
1997-07-08 14:23:54 +00:00
christos 085df7da2f Adjust the Makefile for the new clocks and make this compile cleanly 1997-06-23 17:31:38 +00:00
christos aa009acb0e PR/3774: Add parsers for the reference clocks. 1997-06-23 17:28:33 +00:00
thorpej 3c8f9e9de8 Fix a comment. 1997-05-23 03:09:56 +00:00
christos c98409d753 PR/3519: Brad Spenser: xntpd now uses sysctl to get clockrate info. 1997-04-21 03:07:28 +00:00
cgd a30d503d4e casts to avoid warnings on alpha 1997-04-18 21:01:37 +00:00
christos 19c64a2a37 Use mkstemp on BSD4_4 systems. 1997-04-18 13:51:44 +00:00
christos a165c1628c Make this compile under gcc; cast away volatile pointers. 1997-04-18 13:50:40 +00:00
christos 098fd1d087 Xntp 3-5.90 from louie.udel.edu 1997-04-18 13:22:49 +00:00