Miroslav Lichvar
2a299233b3
update NEWS
2015-06-10 14:44:54 +02:00
Miroslav Lichvar
64f83c8861
cmdmon: reply with STT_INVALID on invalid option in handle_manual()
2015-06-09 17:05:45 +02:00
Miroslav Lichvar
1009fe3d9c
makefile: warn when Makefile needs to be regenerated
2015-06-09 16:43:56 +02:00
Miroslav Lichvar
ba341fe81a
sources: remove unused code in SRC_SelectSource()
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
36e8cb6530
client: add smoothtime command
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
273da62aec
cmdmon: add smoothtime command
...
This adds a command to reset or activate the time smoothing process.
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
41788184a7
client: add smoothing command
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
fb9c2c7dc8
cmdmon: add smoothing command
...
This adds a new request to get a current report on time smoothing.
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
43116be122
smooth: fix resetting
2015-06-08 17:22:01 +02:00
Miroslav Lichvar
ee038d5de5
cmdmon: use SCH_GetLastEventTime() to get current time
...
It's cheaper and accurate enough.
2015-06-08 15:07:18 +02:00
Miroslav Lichvar
ea7fae5277
sched: detect timeout overflow in SCH_AddTimeoutByDelay()
...
Abort when the system time gets so close to the end of 32-bit time_t
that timeouts added by delay start to overflow. This is an addition to
the loop detector in dispatch_timeouts().
2015-06-08 14:49:52 +02:00
Miroslav Lichvar
70b108ab69
array: allow arrays larger than 4 GB
...
It's not expected we will work with such large arrays anytime soon, but
better be safe than sorry.
Also, limit the number of elements to 2^31-1 to prevent infinite loop in
the calculation of allocated elements.
2015-06-08 14:43:16 +02:00
Miroslav Lichvar
08b152d6a2
test: add 202-prefer
2015-06-08 12:33:46 +02:00
Miroslav Lichvar
83c6213c67
test: add option to override generated server directives on client
2015-06-08 12:33:34 +02:00
Miroslav Lichvar
4253075a97
sources: fix marking of non-preferred selectable sources
...
When reducing the list of selectable sources to sources with the prefer
option, sources before the first preferred source were left with the
SRC_OK status, which triggered an assertion failure in the next
selection.
2015-06-08 11:54:43 +02:00
Miroslav Lichvar
0abdc2a350
smooth: add option to smooth out only leap seconds
...
The leaponly option can be used to enable a mode where only leap seconds
are smoothed out and normal offset/frequency changes are ignored. This
is useful to make the interval in which a leap second is smoothed out
constant and allow an NTP client to use multiple leap smearing servers
safely.
2015-06-02 15:24:01 +02:00
Miroslav Lichvar
31669f343a
cmdmon: replace definitions of empty requests with null request
2015-06-01 15:00:14 +02:00
Miroslav Lichvar
438b881ab4
cmdmon: set only non-success status in command handling functions
2015-05-28 15:21:25 +02:00
Miroslav Lichvar
27863146a3
cmdmon: refactor allow/deny functions
2015-05-28 14:32:45 +02:00
Miroslav Lichvar
cd4b73612b
ntp: include message precision in peer dispersion
2015-05-28 13:49:43 +02:00
Miroslav Lichvar
3c217a9e37
util: add UTI_Log2ToDouble()
2015-05-28 12:51:54 +02:00
Miroslav Lichvar
cde3a003ea
util: handle NaN in UTI_FloatHostToNetwork()
2015-05-18 15:51:32 +02:00
Miroslav Lichvar
2c35f56612
client: handle empty hostname before slash in allow/deny commands
2015-05-18 15:36:52 +02:00
Miroslav Lichvar
4295db25d7
doc: remove chrony(1) man page
...
It's a copy of README, chrony(1) is not a program itself.
2015-05-18 13:15:43 +02:00
Miroslav Lichvar
3c06e57f24
ntp: increase minimum replacement interval to 30 minutes
2015-05-18 13:15:43 +02:00
Miroslav Lichvar
e949cf5967
ntp: replace non-pool sources when unreachable or falsetickers
...
Sources that are not specified as a pool and have a name (i.e. not
specified by an IP address or added from chronyc) will be replaced with
a newly resolved address of the name when they become unreachable or
falseticker too.
2015-05-18 13:15:42 +02:00
Miroslav Lichvar
4eeaf34295
ntp: add sources specified by IP directly without name resolving
2015-05-18 13:12:00 +02:00
Miroslav Lichvar
2212a90698
ntp: improve alignment of columns in banner for measurements log
2015-05-04 10:23:17 +02:00
Miroslav Lichvar
dc52b61dad
doc: update NEWS
2015-04-27 12:58:19 +02:00
Miroslav Lichvar
bbf4c3186b
doc: update chrony description
2015-04-27 12:58:19 +02:00
Miroslav Lichvar
f72016a78e
doc: document when smoothtime function is activated
2015-04-27 12:27:55 +02:00
Miroslav Lichvar
29b587a9c5
sys: fix TMX_ResetOffset() to set status back correctly
2015-04-27 12:27:55 +02:00
Miroslav Lichvar
cec4f2b140
reference: use 2012 leap second in leapsectz test
2015-04-24 12:16:47 +02:00
Miroslav Lichvar
05278c3b4c
sources: ignore reselect distance when combining with refclock
2015-04-20 12:59:12 +02:00
Miroslav Lichvar
1769b8ea0f
use return to exit from main function
2015-04-17 17:34:02 +02:00
Miroslav Lichvar
5686bd87d7
client: improve usage line
2015-04-17 17:33:38 +02:00
Miroslav Lichvar
1cda2db45d
main: print usage with -h option
2015-04-17 17:30:38 +02:00
Miroslav Lichvar
fdf9640349
ntp: don't log error when socket() fails for client only socket
2015-04-14 15:59:55 +02:00
Miroslav Lichvar
8f2d5d99f1
doc: don't mention ancient systems
...
Also, don't try to track working versions of supported systems, assume
current versions are ok.
2015-04-13 17:18:19 +02:00
Miroslav Lichvar
61272e7ce8
update copyright years
2015-04-10 11:06:32 +02:00
Miroslav Lichvar
88b76f49cc
doc: warn that unauthenticated peers are vulnerable to DoS attack
2015-04-10 10:52:30 +02:00
Miroslav Lichvar
ad942e352d
sys: clamp frequency set in generic driver on exit
2015-04-10 10:22:28 +02:00
Miroslav Lichvar
39c2bcd462
util: don't allow time too close to 32-bit time_t overflow
...
In UTI_IsTimeOffsetSane() consider time in one year interval before
32-bit time_t overflow (in 2038) as invalid. Hopefully everything will
be using 64-bit time_t when that time comes.
2015-04-10 10:05:15 +02:00
Miroslav Lichvar
ae10664b24
doc: fix CVE-ID in NEWS
...
CVE-2015-1853 is for chrony, CVE-2015-1799 is for ntp.
2015-04-08 08:44:42 +02:00
Miroslav Lichvar
074dac4195
doc: update NEWS
2015-04-07 16:14:09 +02:00
Miroslav Lichvar
a8239b865a
Merge branch '1.31-security'
...
Conflicts:
NEWS
ntp_core.c
2015-04-07 15:34:39 +02:00
Miroslav Lichvar
f6a9c5c1b7
sys: allow drivers to fail when applying step offset
...
Different systems may consider different time values to be valid.
Don't exit on settimeofday()/adjtimex() error in case the check in
UTI_IsTimeOffsetSane() isn't restrictive enough.
2015-04-07 15:23:47 +02:00
Miroslav Lichvar
42774ee851
refclock: check offset sanity
2015-04-07 15:23:47 +02:00
Miroslav Lichvar
4e26f48781
manual: check offset sanity
2015-04-07 15:23:47 +02:00
Miroslav Lichvar
aec97397e8
local: check offset sanity before accumulation
...
Don't accept an offset that points to time before 1970 or outside the
interval to which is mapped NTP time.
2015-04-07 15:23:47 +02:00