]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
10 years agotest: add option to override generated server directives on client
Miroslav Lichvar [Mon, 8 Jun 2015 10:13:22 +0000 (12:13 +0200)] 
test: add option to override generated server directives on client

10 years agosources: fix marking of non-preferred selectable sources
Miroslav Lichvar [Mon, 8 Jun 2015 09:48:29 +0000 (11:48 +0200)] 
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.

10 years agosmooth: add option to smooth out only leap seconds
Miroslav Lichvar [Tue, 2 Jun 2015 11:24:04 +0000 (13:24 +0200)] 
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.

10 years agocmdmon: replace definitions of empty requests with null request
Miroslav Lichvar [Thu, 28 May 2015 15:00:47 +0000 (17:00 +0200)] 
cmdmon: replace definitions of empty requests with null request

10 years agocmdmon: set only non-success status in command handling functions
Miroslav Lichvar [Thu, 28 May 2015 13:21:25 +0000 (15:21 +0200)] 
cmdmon: set only non-success status in command handling functions

10 years agocmdmon: refactor allow/deny functions
Miroslav Lichvar [Thu, 28 May 2015 12:31:34 +0000 (14:31 +0200)] 
cmdmon: refactor allow/deny functions

10 years agontp: include message precision in peer dispersion
Miroslav Lichvar [Thu, 28 May 2015 10:58:20 +0000 (12:58 +0200)] 
ntp: include message precision in peer dispersion

10 years agoutil: add UTI_Log2ToDouble()
Miroslav Lichvar [Thu, 28 May 2015 10:34:08 +0000 (12:34 +0200)] 
util: add UTI_Log2ToDouble()

10 years agoutil: handle NaN in UTI_FloatHostToNetwork()
Miroslav Lichvar [Mon, 18 May 2015 13:50:07 +0000 (15:50 +0200)] 
util: handle NaN in UTI_FloatHostToNetwork()

10 years agoclient: handle empty hostname before slash in allow/deny commands
Miroslav Lichvar [Mon, 18 May 2015 13:36:52 +0000 (15:36 +0200)] 
client: handle empty hostname before slash in allow/deny commands

10 years agodoc: remove chrony(1) man page
Miroslav Lichvar [Mon, 18 May 2015 10:58:34 +0000 (12:58 +0200)] 
doc: remove chrony(1) man page

It's a copy of README, chrony(1) is not a program itself.

10 years agontp: increase minimum replacement interval to 30 minutes
Miroslav Lichvar [Mon, 18 May 2015 09:57:19 +0000 (11:57 +0200)] 
ntp: increase minimum replacement interval to 30 minutes

10 years agontp: replace non-pool sources when unreachable or falsetickers
Miroslav Lichvar [Fri, 15 May 2015 16:38:03 +0000 (18:38 +0200)] 
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.

10 years agontp: add sources specified by IP directly without name resolving
Miroslav Lichvar [Mon, 18 May 2015 09:20:03 +0000 (11:20 +0200)] 
ntp: add sources specified by IP directly without name resolving

10 years agontp: improve alignment of columns in banner for measurements log
Miroslav Lichvar [Mon, 4 May 2015 08:23:17 +0000 (10:23 +0200)] 
ntp: improve alignment of columns in banner for measurements log

10 years agodoc: update NEWS 2.0
Miroslav Lichvar [Fri, 24 Apr 2015 10:01:45 +0000 (12:01 +0200)] 
doc: update NEWS

10 years agodoc: update chrony description
Miroslav Lichvar [Fri, 24 Apr 2015 08:46:52 +0000 (10:46 +0200)] 
doc: update chrony description

10 years agodoc: document when smoothtime function is activated
Miroslav Lichvar [Tue, 21 Apr 2015 12:06:32 +0000 (14:06 +0200)] 
doc: document when smoothtime function is activated

10 years agosys: fix TMX_ResetOffset() to set status back correctly
Miroslav Lichvar [Mon, 27 Apr 2015 10:27:13 +0000 (12:27 +0200)] 
sys: fix TMX_ResetOffset() to set status back correctly

10 years agoreference: use 2012 leap second in leapsectz test
Miroslav Lichvar [Fri, 24 Apr 2015 10:13:24 +0000 (12:13 +0200)] 
reference: use 2012 leap second in leapsectz test

10 years agosources: ignore reselect distance when combining with refclock
Miroslav Lichvar [Mon, 20 Apr 2015 10:59:12 +0000 (12:59 +0200)] 
sources: ignore reselect distance when combining with refclock

10 years agouse return to exit from main function
Miroslav Lichvar [Fri, 17 Apr 2015 15:19:24 +0000 (17:19 +0200)] 
use return to exit from main function

10 years agoclient: improve usage line
Miroslav Lichvar [Fri, 17 Apr 2015 15:15:23 +0000 (17:15 +0200)] 
client: improve usage line

10 years agomain: print usage with -h option
Miroslav Lichvar [Fri, 17 Apr 2015 15:14:51 +0000 (17:14 +0200)] 
main: print usage with -h option

10 years agontp: don't log error when socket() fails for client only socket
Miroslav Lichvar [Tue, 14 Apr 2015 13:59:55 +0000 (15:59 +0200)] 
ntp: don't log error when socket() fails for client only socket

10 years agodoc: don't mention ancient systems
Miroslav Lichvar [Mon, 13 Apr 2015 15:08:29 +0000 (17:08 +0200)] 
doc: don't mention ancient systems

Also, don't try to track working versions of supported systems, assume
current versions are ok.

10 years agoupdate copyright years
Miroslav Lichvar [Fri, 10 Apr 2015 09:06:32 +0000 (11:06 +0200)] 
update copyright years

10 years agodoc: warn that unauthenticated peers are vulnerable to DoS attack
Miroslav Lichvar [Fri, 10 Apr 2015 08:35:21 +0000 (10:35 +0200)] 
doc: warn that unauthenticated peers are vulnerable to DoS attack

10 years agosys: clamp frequency set in generic driver on exit
Miroslav Lichvar [Fri, 10 Apr 2015 08:21:26 +0000 (10:21 +0200)] 
sys: clamp frequency set in generic driver on exit

10 years agoutil: don't allow time too close to 32-bit time_t overflow
Miroslav Lichvar [Fri, 10 Apr 2015 07:30:52 +0000 (09:30 +0200)] 
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.

10 years agodoc: fix CVE-ID in NEWS
Miroslav Lichvar [Wed, 8 Apr 2015 06:44:42 +0000 (08:44 +0200)] 
doc: fix CVE-ID in NEWS

CVE-2015-1853 is for chrony, CVE-2015-1799 is for ntp.

10 years agodoc: update NEWS 2.0-pre2
Miroslav Lichvar [Tue, 7 Apr 2015 14:14:09 +0000 (16:14 +0200)] 
doc: update NEWS

10 years agoMerge branch '1.31-security'
Miroslav Lichvar [Tue, 7 Apr 2015 13:34:39 +0000 (15:34 +0200)] 
Merge branch '1.31-security'

Conflicts:
NEWS
ntp_core.c

10 years agosys: allow drivers to fail when applying step offset
Miroslav Lichvar [Tue, 7 Apr 2015 13:03:44 +0000 (15:03 +0200)] 
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.

10 years agorefclock: check offset sanity
Miroslav Lichvar [Tue, 7 Apr 2015 13:02:32 +0000 (15:02 +0200)] 
refclock: check offset sanity

10 years agomanual: check offset sanity
Miroslav Lichvar [Tue, 7 Apr 2015 13:01:30 +0000 (15:01 +0200)] 
manual: check offset sanity

10 years agolocal: check offset sanity before accumulation
Miroslav Lichvar [Tue, 7 Apr 2015 12:58:58 +0000 (14:58 +0200)] 
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.

10 years agolocal: clamp frequency offset
Miroslav Lichvar [Tue, 7 Apr 2015 12:13:41 +0000 (14:13 +0200)] 
local: clamp frequency offset

Don't allow frequency offset larger than 50%, the tracked time must not
stop or run backwards.

10 years agocmdmon: fix handling of client access command
Miroslav Lichvar [Tue, 7 Apr 2015 12:07:40 +0000 (14:07 +0200)] 
cmdmon: fix handling of client access command

Rework the loop to limit the number of iterations to MAX_CLIENT_ACCESSES
and not waste CPU.

10 years agontp: set maximum allowed polling interval
Miroslav Lichvar [Tue, 7 Apr 2015 12:01:25 +0000 (14:01 +0200)] 
ntp: set maximum allowed polling interval

To have an upper bound don't allow polling interval be larger than 24
(194 days).

10 years agodoc: document smoothtime directive
Miroslav Lichvar [Tue, 7 Apr 2015 10:25:01 +0000 (12:25 +0200)] 
doc: document smoothtime directive

10 years agodoc: update NEWS
Miroslav Lichvar [Mon, 30 Mar 2015 13:19:12 +0000 (15:19 +0200)] 
doc: update NEWS

10 years agocmdmon: fix initialization of allocated reply slots
Miroslav Lichvar [Mon, 30 Mar 2015 13:13:27 +0000 (15:13 +0200)] 
cmdmon: fix initialization of allocated reply slots

When allocating memory to save unacknowledged replies to authenticated
command requests, the last "next" pointer was not initialized to NULL.
When all allocated reply slots were used, the next reply could be
written to an invalid memory instead of allocating a new slot for it.

An attacker that has the command key and is allowed to access cmdmon
(only localhost is allowed by default) could exploit this to crash
chronyd or possibly execute arbitrary code with the privileges of the
chronyd process.

10 years agoaddrfilt: fix access configuration with subnet size indivisible by 4
Miroslav Lichvar [Mon, 30 Mar 2015 12:41:37 +0000 (14:41 +0200)] 
addrfilt: fix access configuration with subnet size indivisible by 4

When NTP or cmdmon access was configured (from chrony.conf or via
authenticated cmdmon) with a subnet size that is indivisible by 4 and
an address that has nonzero bits in the 4-bit subnet remainder (e.g.
192.168.15.0/22 or f000::/3), the new setting was written to an
incorrect location, possibly outside the allocated array.

An attacker that has the command key and is allowed to access cmdmon
(only localhost is allowed by default) could exploit this to crash
chronyd or possibly execute arbitrary code with the privileges of the
chronyd process.

10 years agotest: extend 113-leapsecond for leap smear
Miroslav Lichvar [Wed, 1 Apr 2015 15:35:39 +0000 (17:35 +0200)] 
test: extend 113-leapsecond for leap smear

10 years agontp: smear leap second with slewing mode and smoothing
Miroslav Lichvar [Wed, 1 Apr 2015 15:33:39 +0000 (17:33 +0200)] 
ntp: smear leap second with slewing mode and smoothing

Suppress leap second in packets sent to clients when smoothing and leap
second slew mode are enabled.

10 years agotest: add 119-smoothtime
Miroslav Lichvar [Thu, 2 Apr 2015 14:51:23 +0000 (16:51 +0200)] 
test: add 119-smoothtime

10 years agontp: add server time smoothing
Miroslav Lichvar [Tue, 31 Mar 2015 13:47:11 +0000 (15:47 +0200)] 
ntp: add server time smoothing

Time smoothing determines an offset that needs to be applied to the
cooked time to make it smooth for external observers. Observed offset
and frequency change slowly and there are no discontinuities. This can
be used on an NTP server to make it easier for the clients to track the
time and keep their clocks close together even when large offset or
frequency corrections are applied to the server's clock (e.g. after
being offline for longer time).

Accumulated offset and frequency are smoothed out in three stages. In
the first stage, the frequency is changed at a constant rate (wander) up
to a maximum, in the second stage the frequency stays at the maximum for
as long as needed and in the third stage the frequency is brought back
to zero.

Time smoothing is configured by the smoothtime directive. It takes two
arguments, maximum frequency offset and maximum wander. It's disabled by
default.

10 years agontp: protect authenticated symmetric associations against DoS attacks
Miroslav Lichvar [Thu, 5 Mar 2015 11:44:30 +0000 (12:44 +0100)] 
ntp: protect authenticated symmetric associations against DoS attacks

An attacker knowing that NTP hosts A and B are peering with each other
(symmetric association) can send a packet with random timestamps to host
A with source address of B which will set the NTP state variables on A
to the values sent by the attacker. Host A will then send on its next
poll to B a packet with originate timestamp that doesn't match the
transmit timestamp of B and the packet will be dropped. If the attacker
does this periodically for both hosts, they won't be able to synchronize
to each other. It is a denial-of-service attack.

According to [1], NTP authentication is supposed to protect symmetric
associations against this attack, but in the NTPv3 (RFC 1305) and NTPv4
(RFC 5905) specifications the state variables are updated before the
authentication check is performed, which means the association is
vulnerable to the attack even when authentication is enabled.

To fix this problem in chrony, save the originate and local timestamps
only when the authentication check (test5) passed.

[1] https://www.eecis.udel.edu/~mills/onwire.html

10 years agotest: fix source selection check
Miroslav Lichvar [Thu, 2 Apr 2015 08:28:23 +0000 (10:28 +0200)] 
test: fix source selection check

The chronyd log message changed from "no reachable sources" to "no
selectable sources" in 8f062454.

10 years agoreference: update our reference time on slew
Miroslav Lichvar [Tue, 31 Mar 2015 09:51:03 +0000 (11:51 +0200)] 
reference: update our reference time on slew

10 years agosourcestats: fix updating of slope on slew with large residual freq
Miroslav Lichvar [Fri, 27 Mar 2015 09:20:55 +0000 (10:20 +0100)] 
sourcestats: fix updating of slope on slew with large residual freq

10 years agotest: make 009-sourceselection more reliable
Miroslav Lichvar [Thu, 26 Mar 2015 15:15:38 +0000 (16:15 +0100)] 
test: make 009-sourceselection more reliable

10 years agotest: add 118-maxdelay
Miroslav Lichvar [Thu, 26 Mar 2015 13:44:12 +0000 (14:44 +0100)] 
test: add 118-maxdelay

10 years agotest: add 117-fallbackdrift
Miroslav Lichvar [Thu, 26 Mar 2015 11:36:58 +0000 (12:36 +0100)] 
test: add 117-fallbackdrift

10 years agoreference: schedule fallback drift even when synchronized
Miroslav Lichvar [Thu, 26 Mar 2015 11:32:00 +0000 (12:32 +0100)] 
reference: schedule fallback drift even when synchronized

After update to NTPv4 the synchronized status doesn't change when
sources are unreachable, start fallbackdrift timeout on reference update
too.

10 years agoreference: don't limit fallback drift offset
Miroslav Lichvar [Thu, 26 Mar 2015 11:30:17 +0000 (12:30 +0100)] 
reference: don't limit fallback drift offset

10 years agoreference: fix initial fallback drift setting
Miroslav Lichvar [Thu, 26 Mar 2015 11:29:21 +0000 (12:29 +0100)] 
reference: fix initial fallback drift setting

10 years agontp: check also reference timestamp in test3
Miroslav Lichvar [Wed, 25 Mar 2015 16:21:26 +0000 (17:21 +0100)] 
ntp: check also reference timestamp in test3

Zero reference timestamp doesn't pass test7, but only before we reach
the next NTP era.

10 years agocmdmon: remove obsolete request/reply in candm.h
Miroslav Lichvar [Wed, 25 Mar 2015 15:54:09 +0000 (16:54 +0100)] 
cmdmon: remove obsolete request/reply in candm.h

10 years agocmdmon: fix noselect flag setting in source data
Miroslav Lichvar [Wed, 25 Mar 2015 15:50:44 +0000 (16:50 +0100)] 
cmdmon: fix noselect flag setting in source data

10 years agontp: change default maxdelay to 3 seconds
Miroslav Lichvar [Wed, 25 Mar 2015 14:47:16 +0000 (15:47 +0100)] 
ntp: change default maxdelay to 3 seconds

10 years agodoc: document leapsecmode directive
Miroslav Lichvar [Wed, 25 Mar 2015 14:30:53 +0000 (15:30 +0100)] 
doc: document leapsecmode directive

10 years agotest: extend 113-leapsecond to test new leap modes
Miroslav Lichvar [Wed, 25 Mar 2015 12:10:30 +0000 (13:10 +0100)] 
test: extend 113-leapsecond to test new leap modes

10 years agoreference: use step leap mode by default if system is not supported
Miroslav Lichvar [Wed, 25 Mar 2015 12:08:56 +0000 (13:08 +0100)] 
reference: use step leap mode by default if system is not supported

10 years agoreference: update leap status right after leap second
Miroslav Lichvar [Tue, 24 Mar 2015 17:04:09 +0000 (18:04 +0100)] 
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.

10 years agoreference: don't report synchronized status during leap second
Miroslav Lichvar [Tue, 24 Mar 2015 16:55:44 +0000 (17:55 +0100)] 
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.

10 years agoreference: add new leap second handling modes
Miroslav Lichvar [Tue, 24 Mar 2015 16:29:44 +0000 (17:29 +0100)] 
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.

10 years agosys: avoid syslog message when leap bits are not changed
Miroslav Lichvar [Wed, 18 Mar 2015 16:48:49 +0000 (17:48 +0100)] 
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.

10 years agorefclock: start refid numbering at zero
Miroslav Lichvar [Tue, 17 Feb 2015 09:26:06 +0000 (10:26 +0100)] 
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.

10 years agontp: fix maxdelayratio test
Miroslav Lichvar [Thu, 29 Jan 2015 11:49:02 +0000 (12:49 +0100)] 
ntp: fix maxdelayratio test

This was broken in commit 8fbfe55e.

10 years agotest: require latest clknetsim
Miroslav Lichvar [Wed, 28 Jan 2015 08:09:08 +0000 (09:09 +0100)] 
test: require latest clknetsim

10 years agodoc: update NEWS 2.0-pre1
Miroslav Lichvar [Tue, 27 Jan 2015 13:32:25 +0000 (14:32 +0100)] 
doc: update NEWS

10 years agoexamples: add chrony.conf.example1
Miroslav Lichvar [Tue, 27 Jan 2015 09:56:27 +0000 (10:56 +0100)] 
examples: add chrony.conf.example1

This is a minimal example.

10 years agoexamples: update configuration examples
Miroslav Lichvar [Fri, 23 Jan 2015 10:19:59 +0000 (11:19 +0100)] 
examples: update configuration examples

10 years agoexamples: rename chrony.conf.example to chrony.conf.example3
Miroslav Lichvar [Fri, 23 Jan 2015 15:12:32 +0000 (16:12 +0100)] 
examples: rename chrony.conf.example to chrony.conf.example3

Order the examples by complexity.

10 years agodoc: update chrony.conf man page
Miroslav Lichvar [Fri, 23 Jan 2015 10:21:12 +0000 (11:21 +0100)] 
doc: update chrony.conf man page

10 years agodoc: update chrony.texi
Miroslav Lichvar [Fri, 23 Jan 2015 10:20:31 +0000 (11:20 +0100)] 
doc: update chrony.texi

10 years agotest: add compilation test
Miroslav Lichvar [Mon, 26 Jan 2015 11:10:31 +0000 (12:10 +0100)] 
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.

10 years agoclientlog: remove unused code
Miroslav Lichvar [Mon, 26 Jan 2015 10:37:13 +0000 (11:37 +0100)] 
clientlog: remove unused code

10 years agocmdmon: bind to loopback interface by default
Miroslav Lichvar [Fri, 23 Jan 2015 14:59:41 +0000 (15:59 +0100)] 
cmdmon: bind to loopback interface by default

10 years agocmdmon: use system values for loopback addresses
Miroslav Lichvar [Fri, 23 Jan 2015 13:31:41 +0000 (14:31 +0100)] 
cmdmon: use system values for loopback addresses

10 years agotest: require latest clknetsim
Miroslav Lichvar [Fri, 23 Jan 2015 13:52:39 +0000 (14:52 +0100)] 
test: require latest clknetsim

10 years agocontrib: remove DNSchrony from distribution
Miroslav Lichvar [Thu, 22 Jan 2015 14:32:38 +0000 (15:32 +0100)] 
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.

10 years agontp: remove unnecessary check in read_from_socket()
Miroslav Lichvar [Thu, 22 Jan 2015 14:24:16 +0000 (15:24 +0100)] 
ntp: remove unnecessary check in read_from_socket()

10 years agocreate NTP and cmdmon sockets after root drop
Miroslav Lichvar [Thu, 22 Jan 2015 13:42:05 +0000 (14:42 +0100)] 
create NTP and cmdmon sockets after root drop

This is now possible as we keep the cap_net_bind_service capability.

10 years agontp: keep all length constants signed
Miroslav Lichvar [Thu, 22 Jan 2015 12:45:06 +0000 (13:45 +0100)] 
ntp: keep all length constants signed

This should make it harder to accidentally create an unsafe comparison
between signed and unsigned values.

10 years agontp: use different value for invalid socket in ntp_core
Miroslav Lichvar [Wed, 7 Jan 2015 14:38:57 +0000 (15:38 +0100)] 
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.

10 years agontp: fix length check of NTPv4 extension fields
Miroslav Lichvar [Wed, 7 Jan 2015 12:58:11 +0000 (13:58 +0100)] 
ntp: fix length check of NTPv4 extension fields

Don't allow extension fields shorter than 16 bytes.

10 years agontp: open server socket only when access is allowed
Miroslav Lichvar [Tue, 6 Jan 2015 14:12:26 +0000 (15:12 +0100)] 
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.

10 years agontp: count references to NTP server sockets
Miroslav Lichvar [Mon, 5 Jan 2015 16:18:50 +0000 (17:18 +0100)] 
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.

10 years agosys: keep cap_net_bind_service capability
Miroslav Lichvar [Tue, 6 Jan 2015 10:17:47 +0000 (11:17 +0100)] 
sys: keep cap_net_bind_service capability

This will be needed to allow opening of NTP server socket after root
privileges are dropped.

10 years agontp: rename NIO_Get*Socket functions
Miroslav Lichvar [Mon, 5 Jan 2015 13:17:21 +0000 (14:17 +0100)] 
ntp: rename NIO_Get*Socket functions

10 years agodoc: improve FAQ section on improving accuracy
Miroslav Lichvar [Wed, 17 Dec 2014 15:28:43 +0000 (16:28 +0100)] 
doc: improve FAQ section on improving accuracy

10 years agodoc: use example.net domain in examples
Miroslav Lichvar [Wed, 17 Dec 2014 15:34:16 +0000 (16:34 +0100)] 
doc: use example.net domain in examples

10 years agodoc: update description of tracking command
Miroslav Lichvar [Wed, 17 Dec 2014 15:21:19 +0000 (16:21 +0100)] 
doc: update description of tracking command

Negative root delay is never reported with the current code.

10 years agodoc: list server/peer options that can be set in chronyc
Miroslav Lichvar [Mon, 15 Dec 2014 17:20:31 +0000 (18:20 +0100)] 
doc: list server/peer options that can be set in chronyc

10 years agodoc: fix examples of add server and add peer commands
Miroslav Lichvar [Mon, 15 Dec 2014 17:19:30 +0000 (18:19 +0100)] 
doc: fix examples of add server and add peer commands

10 years agocmdparse: add function to convert error status to string
Miroslav Lichvar [Mon, 15 Dec 2014 16:59:42 +0000 (17:59 +0100)] 
cmdparse: add function to convert error status to string

This is used to avoid duplication of error printing in chronyd and
chronyc.

10 years agosys: use system headers for adjtimex
Miroslav Lichvar [Mon, 15 Dec 2014 16:23:15 +0000 (17:23 +0100)] 
sys: use system headers for adjtimex