Miroslav Lichvar
ddbbe30b9e
test: extend 113-leapsecond to test new leap modes
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
802a98e7fc
reference: use step leap mode by default if system is not supported
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
bb21841659
reference: update leap status right after leap second
...
Don't wait for the next update, there may not be any before the end of
the day.
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
3f9691baff
reference: don't report synchronized status during leap second
...
During inserted leap second the time is invalid, reply with
unsynchronized status to avoid confusing clients that are not smart
enough to ignore measurements close to leap second.
2015-03-27 10:37:54 +01:00
Miroslav Lichvar
f8db832491
reference: add new leap second handling modes
...
In addition to the system driver handling add new modes to slew or step
the system clock for leap second, or ignore it completely. This can be
configured with leapsecmode directive.
2015-03-27 10:37:48 +01:00
Miroslav Lichvar
c68a92ba80
sys: avoid syslog message when leap bits are not changed
...
After leap second the kernel removes STA_INS and STA_DEL bits from the
adjtimex status automatically, don't report a change when clearing the
bits.
2015-03-25 15:32:05 +01:00
Miroslav Lichvar
e5cf4645fe
refclock: start refid numbering at zero
...
Commit d92583ed
inadvertently changed the refclock refid numbering to
start from 1 instead of 0. Restore the original numbering.
2015-02-17 10:33:03 +01:00
Miroslav Lichvar
fad97e12da
ntp: fix maxdelayratio test
...
This was broken in commit 8fbfe55e
.
2015-01-29 12:49:02 +01:00
Miroslav Lichvar
2f6152a580
test: require latest clknetsim
2015-01-28 09:09:08 +01:00
Miroslav Lichvar
7446da8c9b
doc: update NEWS
2015-01-27 15:03:57 +01:00
Miroslav Lichvar
00eecd3a1d
examples: add chrony.conf.example1
...
This is a minimal example.
2015-01-27 15:03:57 +01:00
Miroslav Lichvar
46a178cf48
examples: update configuration examples
2015-01-27 15:03:57 +01:00
Miroslav Lichvar
ddcc28f726
examples: rename chrony.conf.example to chrony.conf.example3
...
Order the examples by complexity.
2015-01-27 15:03:57 +01:00
Miroslav Lichvar
04f86aa2ff
doc: update chrony.conf man page
2015-01-27 15:03:57 +01:00
Miroslav Lichvar
72f0f99ac3
doc: update chrony.texi
2015-01-27 14:52:32 +01:00
Miroslav Lichvar
c8fe0fe992
test: add compilation test
...
Check if chrony can be compiled in various combination of disabled
features. This should fail if there are missing functions in stubs.c.
2015-01-26 12:16:17 +01:00
Miroslav Lichvar
be5c3b0b90
clientlog: remove unused code
2015-01-26 11:38:02 +01:00
Miroslav Lichvar
5194101c8b
cmdmon: bind to loopback interface by default
2015-01-26 10:40:15 +01:00
Miroslav Lichvar
0ee27c6ef6
cmdmon: use system values for loopback addresses
2015-01-26 10:40:15 +01:00
Miroslav Lichvar
46a0aab6b9
test: require latest clknetsim
2015-01-26 10:40:15 +01:00
Miroslav Lichvar
55fb7abc39
contrib: remove DNSchrony from distribution
...
With the new pool directive chronyd is now able to replace unreachable
NTP servers with newly resolved addresses automatically. Starting
without DNS wasn't a problem since 1.25.
2015-01-26 10:39:58 +01:00
Miroslav Lichvar
407e47b306
ntp: remove unnecessary check in read_from_socket()
2015-01-22 15:38:41 +01:00
Miroslav Lichvar
4e54770f18
create NTP and cmdmon sockets after root drop
...
This is now possible as we keep the cap_net_bind_service capability.
2015-01-22 15:38:39 +01:00
Miroslav Lichvar
f9a31f36a0
ntp: keep all length constants signed
...
This should make it harder to accidentally create an unsafe comparison
between signed and unsigned values.
2015-01-22 14:37:35 +01:00
Miroslav Lichvar
547272e66c
ntp: use different value for invalid socket in ntp_core
...
This should make it easier to see invalid sockets leaking from ntp_core
to ntp_io.
2015-01-07 16:14:29 +01:00
Miroslav Lichvar
35e11ffe60
ntp: fix length check of NTPv4 extension fields
...
Don't allow extension fields shorter than 16 bytes.
2015-01-07 14:12:29 +01:00
Miroslav Lichvar
52e12e42e5
ntp: open server socket only when access is allowed
...
When changing access configuration, check if any address is allowed and
open/close the server socket as needed.
2015-01-06 16:35:12 +01:00
Miroslav Lichvar
5214d42c07
ntp: count references to NTP server sockets
...
Server sockets are now explicitly opened and closed for normal NTP
server, NTP broadcast and NTP peering. This will allow closing the
NTP port when not needed.
2015-01-06 16:33:49 +01:00
Miroslav Lichvar
40bbe2539b
sys: keep cap_net_bind_service capability
...
This will be needed to allow opening of NTP server socket after root
privileges are dropped.
2015-01-06 15:28:22 +01:00
Miroslav Lichvar
6d1dda0fad
ntp: rename NIO_Get*Socket functions
2015-01-05 14:17:21 +01:00
Miroslav Lichvar
7a90dab8ff
doc: improve FAQ section on improving accuracy
2014-12-17 19:58:23 +01:00
Miroslav Lichvar
395c89cff2
doc: use example.net domain in examples
2014-12-17 16:51:48 +01:00
Miroslav Lichvar
aad242d54b
doc: update description of tracking command
...
Negative root delay is never reported with the current code.
2014-12-17 16:21:19 +01:00
Miroslav Lichvar
220ef264fb
doc: list server/peer options that can be set in chronyc
2014-12-15 18:21:56 +01:00
Miroslav Lichvar
f64dcc0ac2
doc: fix examples of add server and add peer commands
2014-12-15 18:21:56 +01:00
Miroslav Lichvar
e57abae138
cmdparse: add function to convert error status to string
...
This is used to avoid duplication of error printing in chronyd and
chronyc.
2014-12-15 18:21:51 +01:00
Miroslav Lichvar
fc73accfe5
sys: use system headers for adjtimex
2014-12-15 17:25:37 +01:00
Miroslav Lichvar
c4d57f0e3d
sys: remove shift_hz
...
It's not used for anything since commit e147f2f1
.
2014-12-10 15:58:27 +01:00
Miroslav Lichvar
eadabfe890
sys: remove TMX_ReadCurrentParams
2014-12-10 15:58:27 +01:00
Miroslav Lichvar
02cbe5e1ad
sys: add sync status setting to generic and Linux driver
...
Set the adjtimex status, esterror and maxerror fields to the values
provided by the reference module.
2014-12-10 15:58:13 +01:00
Miroslav Lichvar
2645e632a8
sys: fix formatting in sys_linux.c
2014-12-10 15:35:56 +01:00
Miroslav Lichvar
e14a03a172
local: add new driver call to set synchronization status
...
This will be used to set the kernel adjtimex() variables to allow other
applications running on the system to know if the system clock is
synchronized and the estimated error and the maximum error.
2014-12-10 15:35:56 +01:00
Miroslav Lichvar
513e65900c
client: add second form of makestep command
...
The second form configures the automatic stepping, similarly to the
makestep directive. It has two parameters, stepping threshold (in
seconds) and number of future clock updates for which will be the
threshold active. This can be used with the burst command to quickly
make a new measurement and correct the clock by stepping if needed,
without waiting for chronyd to complete the measurement and update the
clock.
2014-12-09 12:31:56 +01:00
Miroslav Lichvar
4b81cda521
cmdmon: initialize new source params when adding source
2014-12-09 11:40:19 +01:00
Miroslav Lichvar
6688f40325
sources: allow setting minsamples and maxsamples for each source
...
The minsamples and maxsamples directives now set the default value,
which can be overriden for individual sources in the server/peer/pool
and refclock directives.
2014-12-03 16:27:51 +01:00
Miroslav Lichvar
42dd5caa1b
ntp: don't replace source instance when changing address
...
Add new functions to change source's reference ID/address and reset the
instance. Use that instead of destroying and creating a new instance
when the NTP address is changed.
2014-12-01 18:40:47 +01:00
Miroslav Lichvar
308bcae257
ntp: limit number of pool sources
...
A new option can be now used in the pool directive: maxsources sets the
maximum number of sources that can be used from the pool, the default
value is 4.
On start, when the pool name is resolved, chronyd will add up to 16
sources, one for each resolved address. When the number of sources from
which at least one valid reply was received reaches maxsources, the
other sources will be removed.
2014-11-26 17:56:36 +01:00
Miroslav Lichvar
f2c80cae44
ntp: update number of sources when removing all sources
...
Also, rehash the records after removal and split cleaning of the source
record to a separate function.
2014-11-26 17:56:29 +01:00
Miroslav Lichvar
aaf744dfab
ntp: return status from NCR_ProcessKnown()
2014-11-24 16:14:04 +01:00
Miroslav Lichvar
7534ffee64
doc: update tempcomp description
2014-11-21 13:13:15 +01:00