riz
254aabe783
There was a change from usecs to nsecs between ntpd 4.1.1 and 4.2.0 -
...
take this into account correctly. From ntp-current via Brian Buhrow
in PR#29685. Approved by christos.
2005-05-21 01:47:09 +00:00
christos
aba19ee8af
Double the stack space limit. We are running out with ntp.pool.org.
2005-04-05 20:56:58 +00:00
lukem
c6f2cec0b0
include <isc/net.h> so that -UWANT_IPV6 compiles correctly.
2005-01-10 02:14:46 +00:00
dsl
968ad08000
Stop argument to ctype function being char
2004-10-30 15:01:32 +00:00
christos
72f840350f
PR/27210: Paul Shupak: "ntpd"'s NEMA driver has 8 units, but MAX_UNITS
...
is #defined as 4.
2004-10-10 22:13:04 +00:00
christos
766798b654
PR/27137: Martin J. Laubach: core dump when localhost does not support
...
a given address family and a peer only supports the family localhost does
not support. For example: configure a kernel without IPV6, and then
add a line in ntp.conf server <ipv6addr>. We report that the server is
unreachable and we keep going because there might be more servers around?
XXX: What if it is the last server? Should we detect this? It is not nice
to just bail on this error, because a server might lose its ipv4 address
and only advertise ipv6.
2004-10-05 03:34:38 +00:00
christos
6e1b89d727
80K of stack is not enough for a 64 bit machine, and we got crashes on
...
sparc64. change 20 * 4096 to 5 * 4096 * sizeof(void *). This is again
very little, but enough :-). If you see a crash again, don't blame the
nameserver code before you change this constant.
2004-06-29 04:16:37 +00:00
drochner
e917a2fcb1
ignore 0.0.0.0 interface addresses (dhclient leftovers)
2004-02-26 18:17:13 +00:00
fredb
8f443ee26a
Don't bother complaining about "no IPv6 interfaces" or "no IPv4 interfaces"
...
unless debugging is compiled in and enabled. Adapted from ntp-dev. Closes
PR bin/23703, by Martin Husemann.
2003-12-20 17:38:19 +00:00
keihan
9f474dc36a
Make "-s" option silent again, fixes PR bin/23707.
...
This has been fixed in current ntp-dev and also includes
some whitespace fixes. NTP bug report available at:
http://bugzilla.ntp.org/show_bug.cgi?id=263
2003-12-20 16:12:27 +00:00
drochner
a273546bc0
pull in a set of patches from ntp bk to fix the
...
"Clock stepping messes up frequency." issue
2003-12-04 17:22:31 +00:00
drochner
507fa5fee7
compile cleanly with -Wall (ntp bug #258 )
2003-12-04 17:17:36 +00:00
drochner
35f545891e
fix some memory allocation bugs (ntp bug #252 )
2003-12-04 17:15:26 +00:00
drochner
a3d91b3051
fix error handling after send errors (ntp bug #243 )
2003-12-04 17:13:11 +00:00
drochner
849e83ebc4
fix some LP64 issues (ntp bug #233 )
2003-12-04 17:10:34 +00:00
drochner
93cc3883d8
use return value of openssl's RAND_file_name(), this makes the
...
fallback to /dev/urandom work as intended by openssl
(ntp bug #234 )
2003-12-04 17:06:12 +00:00
drochner
7b3a4acbea
don't join a multicast group where we just want to send
...
(this might be preliminary, it might be intended to receive other host's
multicast in the future, but until packets are filtered properly this
fixes the "manycastclient answers requests" problem - see ntp bug #241 )
2003-12-04 17:01:32 +00:00
drochner
74a4307696
deal with sin6_scope_id where necessary
2003-12-04 16:56:01 +00:00
drochner
3cdd2cee5f
keep track of the scope id of link-local ipv6 addresses, and deal with
...
the KAME specific way to embed it into the address
(keeping the interface close to the last public bind-9.3 snapshot to
avoid conflicts in the future)
2003-12-04 16:52:28 +00:00
drochner
d5e6f1b80b
resolve conflicts
...
(in this case, throw away all local modifications; I'll start patching
from scratch)
2003-12-04 16:23:34 +00:00
drochner
b21928a34e
Import ntp 4.2.0
2003-12-04 16:05:14 +00:00
simonb
a1f8e60591
Update for CVS repo basesrc/src change (many moons ago).
2003-10-23 02:23:26 +00:00
agc
865595bdf3
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22253, verified by myself.
2003-08-07 09:20:39 +00:00
cb
ee482404e6
Output key IDs in decimal, not hexadecimal, so that they can
...
be read back later.
fixes PR#14216. ok by Simon Burge (and by him via ntp distribution)
2003-07-16 12:22:58 +00:00
itojun
93851338f2
sscanf overrun
2003-05-17 01:12:28 +00:00
wiz
0acfa3bb9e
Consistently spell occurrence with two rs.
2003-03-29 22:48:37 +00:00
wiz
447edbab8d
hexadecimal, not hexidecimal. Reported to the authors.
2003-03-16 21:54:46 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
jdolecek
28f3685337
use correct group id if group was specified for -u; previously, it would
...
mistakely use user's primary group instead
problem reported and fix supplied in PR bin/20232 by KAMADA Ken'ichi
2003-02-08 11:45:54 +00:00
wiz
dd5bd120af
Various misspellings, from Adrian Mrva.
2002-12-21 12:37:49 +00:00
wiz
34574e798b
outgoing with a final g, not t; from Adrian Mrva.
2002-12-21 12:32:24 +00:00
thorpej
e733469648
Avoid strict alias warnings.
2002-12-06 15:12:56 +00:00
thorpej
47355062e5
Avoid strict alias warning.
2002-12-06 15:09:38 +00:00
uwe
fd3534dbc5
Nit-pick: use || instead of | in the test. Ok by simonb.
2002-09-20 14:09:45 +00:00
wiz
111e203639
Comment out token after #endif.
2002-05-16 19:53:37 +00:00
wiz
79deb5d12d
Comment out token after #endif.
2002-05-16 19:40:53 +00:00
wiz
98d39977a3
Remove token after #endif.
2002-05-16 19:30:17 +00:00
drochner
1fba973e56
make it build without REFCLOCK but with -Wall
2002-04-19 20:45:54 +00:00
christos
590eabc9c6
Set the stack limit to something smaller than the default, like it is
...
done in the aix case so that we don't end up mlockall() unused memory.
From: witek@wnuk.eu.org (Witold J. Wnuk)
2002-04-18 23:18:42 +00:00
thorpej
64b4b1c3c3
Don't use static const u_char ... for register bits. Use #define.
2002-04-09 02:42:50 +00:00
mason
be7a76e49f
document -i and -u in the man page
2002-02-21 17:10:14 +00:00
wiz
78cb877358
Try to remove some more unnecessary whitespace when converting.
2002-01-19 11:43:47 +00:00
martin
114dbddbad
Make ntpd use the getifaddrs interface, thus avoiding alignement
...
problems (see port-sparc64/15112).
This change will be submitted to the NTP maintainers as well.
2002-01-05 13:24:40 +00:00
martin
6db2d4b116
Back out previous change - turns out to be a sparc64 toolchain problem
...
(surprise!)
2002-01-03 11:22:07 +00:00
martin
357b95fa25
Replace a structure copy (dereferencing a pointer received from an ioctl)
...
by a memcpy, similar to the patch suggested by jarle@uninett.no in PR 15112.
I'm not sure if the ioctl code should be fixed to deliver this pointer
properly aligned, but this change should not cause any problem and it is
safer this way.
2002-01-02 20:47:37 +00:00
wiz
546fc71d49
Pull over fixes from rev. 1.5-1.7 of basesrc/usr.sbin/ntp/ntpd/ntpd.8.
2001-12-26 15:14:59 +00:00
wiz
b4371d47f5
Replace some misuses of "then" with "than".
2001-12-04 17:56:30 +00:00
wiz
1fd7eeefcd
"than" instead of "then".
2001-11-21 19:14:19 +00:00
christos
a9add05994
s/%%m/%m/
2001-11-12 03:06:44 +00:00
manu
22376d8b65
Fixed a small bug in -u option parsing (it only worked if you supplied a
...
user *and* a group)
2001-11-08 20:06:22 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
manu
53e4611607
Added code to run ntpd as a non root user and in a chroot jail. This should
...
be used with the new clockctl device which enable clock setting by non root
users on behalf of the /dev/clockctl write rights.
This code have not been commited yet to the main ntp tree.
2001-09-16 07:51:54 +00:00
wiz
71c1bdcfa5
Prefer long names for months; correct comment in resulting man page.
2001-04-27 00:02:23 +00:00
thorpej
99052484f4
Fix LP64 printf format problems.
2001-04-21 21:57:16 +00:00
drochner
b7fc5a75b3
fix typo in instructions which had serious consequences as it seems
...
(the "generic" serial driver was not built)
2001-04-19 17:46:38 +00:00
itojun
69045197e1
previous buffer overrun fix was one-byte too restrictive. from jinmei@kame
2001-04-08 18:33:43 +00:00
wiz
14dbdf5518
Negative exit code cleanup: Replace exit(-x) with exit(x).
...
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
itojun
c6abd22023
avoid tp from going smaller address than buf.
2001-04-05 13:52:59 +00:00
simonb
7ae902c2b2
Fix a DoS attach (and possibly, but not confirmed, a root exploit) in
...
ntpd.
Fix from Poul-Henning Kamp and Dima Ruban from the FreeBSD tree, with
changes from Jason Thorpe to not overrun the end of the static buffer
and with syslog()ing the bad packets disabled so as not to DoS syslog.
2001-04-05 02:08:01 +00:00
hubertf
28adebea18
Add the -u flag to the usage message.
...
Foudn while fixing PR 12078 by Nigel Reed <nigel@nelgin.nu>
2001-02-02 03:35:24 +00:00
cgd
d594ce939b
comment or delete text after CPP directives.
2001-01-16 02:50:27 +00:00
itojun
514b635ecc
one more string format cleanup
2000-10-10 12:51:19 +00:00
itojun
296aa7c5a6
format string clarification (this does not compile on alpha without the fix)
2000-10-10 12:43:42 +00:00
is
890345ee05
Format string cleanups by Bill Sommerfeld.
2000-10-09 14:52:15 +00:00
simonb
e9d46b4ab7
Use /usr/share/doc/html/ntp as location for html files.
...
Fixes part of PR bin/10613 from Jaromír Doleèek.
2000-07-23 14:30:54 +00:00
simonb
9c747bda1e
Fix the <ieeefp.h> problem a different way - nothing actually uses the
...
contents of that header (the only file that includes it compiles to the
same object code on multiple architectures with or without including
<ieeefp.h>), so remove all references to it.
Fix sent to NTP maintainers - they will probably implement this change
after the immenient 4.1.0 release, but don't want to change it so close
to the release date.
2000-05-03 06:08:45 +00:00
simonb
bc13e99292
Include rough instructions for importing new NTP release.
2000-05-03 05:38:19 +00:00
simonb
ee70740431
Delete references to pictures.
2000-04-22 16:46:49 +00:00
simonb
c4e79165b2
Fix compile warnings in new code. Patches for these sent to the
...
ntp maintainer.
2000-04-22 15:49:31 +00:00
simonb
b41bfc0f81
Remove html/pic.
2000-04-22 15:07:06 +00:00
simonb
66dc2363f8
No pictures anymore (import script removes them).
2000-04-22 15:05:54 +00:00
simonb
0eed315b53
Resolve conflicts.
2000-04-22 15:04:49 +00:00
simonb
355d78599e
Import ntp 4.0.99i
2000-04-22 14:51:59 +00:00
simonb
7d3a90fdd4
Move loadservers() prototype to a header file, so other files can see
...
that prototype.
2000-04-17 05:49:54 +00:00
simonb
85be272138
Include "ntp_stdlib.h" to get prototype for init_lib().
2000-04-17 05:49:11 +00:00
simonb
e2401d7bd1
Use UL on very large constant (~2.35G) instead of just U.
2000-04-17 05:48:36 +00:00
simonb
3674fb4596
Include <config.h> and check if DES is defined before building DES
...
routines.
2000-04-17 05:47:22 +00:00
simonb
5a9451ce52
Include <string.h> to get prototype for memcpy().
2000-04-17 05:46:46 +00:00
simonb
c428669622
*EXTREMELY* ugly NTP-specific html to mdoc converter. Not perfect, but
...
does all the manual stuff. Suggestions welcome, criticisms accepted,
flames cheerfully /dev/null'd...
2000-03-29 13:52:35 +00:00
simonb
4ba759c886
Import ntp 4.0.99g
2000-03-29 12:38:44 +00:00
simonb
a1a53b4fde
Modified version of Bernd Ernesti's bind2netbsd to aid importing
...
ntp sources.
2000-03-29 12:25:55 +00:00