]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
8 years agontp: check supported flags before enabling HW timestamping
Miroslav Lichvar [Fri, 27 Jan 2017 10:24:45 +0000 (11:24 +0100)] 
ntp: check supported flags before enabling HW timestamping

8 years agontp: log info message when HW timestamping is enabled
Miroslav Lichvar [Fri, 27 Jan 2017 09:36:37 +0000 (10:36 +0100)] 
ntp: log info message when HW timestamping is enabled

8 years agodoc: improve description of some server options
Miroslav Lichvar [Thu, 26 Jan 2017 11:32:28 +0000 (12:32 +0100)] 
doc: improve description of some server options

8 years agoreference: report zero root dispersion with local reference
Miroslav Lichvar [Thu, 26 Jan 2017 10:08:55 +0000 (11:08 +0100)] 
reference: report zero root dispersion with local reference

The server's precision is supposed to be included in client's
dispersion. Don't include it in the server's dispersion.

8 years agotest: fix memory leaks in unit tests
Miroslav Lichvar [Thu, 26 Jan 2017 09:37:25 +0000 (10:37 +0100)] 
test: fix memory leaks in unit tests

8 years agodoc: update NEWS 3.1-pre1
Miroslav Lichvar [Tue, 24 Jan 2017 14:03:24 +0000 (15:03 +0100)] 
doc: update NEWS

8 years agoupdate copyright years
Miroslav Lichvar [Tue, 24 Jan 2017 14:01:24 +0000 (15:01 +0100)] 
update copyright years

8 years agotest: extend 119-smoothtime
Miroslav Lichvar [Mon, 23 Jan 2017 11:12:36 +0000 (12:12 +0100)] 
test: extend 119-smoothtime

8 years agontp: fix time smoothing in interleaved mode
Miroslav Lichvar [Fri, 20 Jan 2017 12:17:45 +0000 (13:17 +0100)] 
ntp: fix time smoothing in interleaved mode

When the server's transmit timestamp was updated with a kernel/HW
timestamp, it didn't include the time smoothing offset. If the offset
was larger than one second, the update failed and clients using the
interleaved mode received less accurate timestamps. If the update
succeeded, the clients received timestamps that were not adjusted for
the time smoothing offset, which added an error of up to 0.5s/1s to
their measured offset/delay.

Fix the update to include the smoothing offset in the new timestamp.

8 years agontp: simplify UTI_Ntp64ToTimespec() callers
Miroslav Lichvar [Fri, 20 Jan 2017 11:05:02 +0000 (12:05 +0100)] 
ntp: simplify UTI_Ntp64ToTimespec() callers

Since UTI_Ntp64ToTimespec() was modified to handle zero timestamps, some
of its callers don't need to do that anymore.

8 years agontp: add interface index to NTP_Local_Address
Miroslav Lichvar [Fri, 20 Jan 2017 09:42:19 +0000 (10:42 +0100)] 
ntp: add interface index to NTP_Local_Address

This will allow us to get the interface index when sending responses to
clients.

8 years agorefclock_phc: add nocrossts option
Miroslav Lichvar [Thu, 19 Jan 2017 15:28:49 +0000 (16:28 +0100)] 
refclock_phc: add nocrossts option

8 years agoconf: add nocrossts option to hwtimestamp directive
Miroslav Lichvar [Thu, 19 Jan 2017 15:23:35 +0000 (16:23 +0100)] 
conf: add nocrossts option to hwtimestamp directive

This option disables the use of the PTP_SYS_OFFSET_PRECISE ioctl.

8 years agosys_linux: add support for PTP_SYS_OFFSET_PRECISE
Miroslav Lichvar [Thu, 19 Jan 2017 15:05:49 +0000 (16:05 +0100)] 
sys_linux: add support for PTP_SYS_OFFSET_PRECISE

This is for hardware that can precisely cross timestamp the PHC with the
system clock.

8 years agorefclock_phc: use sys_linux code for reading PHC
Miroslav Lichvar [Thu, 19 Jan 2017 14:54:01 +0000 (15:54 +0100)] 
refclock_phc: use sys_linux code for reading PHC

This drops support for non-ioctl reading of PHC.

8 years agontp: move PHC-specific code to sys_linux
Miroslav Lichvar [Thu, 19 Jan 2017 14:35:09 +0000 (15:35 +0100)] 
ntp: move PHC-specific code to sys_linux

This will allow sharing of the code with the PHC refclock driver.

8 years agoconf: add minpoll option to hwtimestamp directive
Miroslav Lichvar [Thu, 19 Jan 2017 11:59:06 +0000 (12:59 +0100)] 
conf: add minpoll option to hwtimestamp directive

8 years agohwclock: make minimum sampling separation configurable
Miroslav Lichvar [Thu, 19 Jan 2017 11:45:44 +0000 (12:45 +0100)] 
hwclock: make minimum sampling separation configurable

8 years agoconf: add precision option to hwtimestamp directive
Miroslav Lichvar [Thu, 19 Jan 2017 11:40:18 +0000 (12:40 +0100)] 
conf: add precision option to hwtimestamp directive

8 years agontp: include precision of PHC readings in their selection
Miroslav Lichvar [Thu, 19 Jan 2017 11:24:49 +0000 (12:24 +0100)] 
ntp: include precision of PHC readings in their selection

Include a fixed non-zero precision (100 nanosecond) in the selection of
PHC readings.

8 years agoconf: return hwtimestamp data in struct
Miroslav Lichvar [Thu, 19 Jan 2017 11:11:32 +0000 (12:11 +0100)] 
conf: return hwtimestamp data in struct

8 years agontp: include precision in maxdelay test
Miroslav Lichvar [Thu, 19 Jan 2017 10:31:26 +0000 (11:31 +0100)] 
ntp: include precision in maxdelay test

8 years agontp: adapt sampling separation for short polling intervals
Miroslav Lichvar [Thu, 19 Jan 2017 10:14:07 +0000 (11:14 +0100)] 
ntp: adapt sampling separation for short polling intervals

8 years agontp: allow sub-second polling intervals
Miroslav Lichvar [Thu, 19 Jan 2017 09:31:58 +0000 (10:31 +0100)] 
ntp: allow sub-second polling intervals

Change the minimum minpoll to -4, but keep the minimum maxpoll at 0 in
order to not make it too easy to flood distant servers.

8 years agontp: use current poll when backing off on KoD RATE
Miroslav Lichvar [Thu, 19 Jan 2017 09:17:08 +0000 (10:17 +0100)] 
ntp: use current poll when backing off on KoD RATE

8 years agontp: rename maxdelay constants
Miroslav Lichvar [Thu, 19 Jan 2017 09:10:23 +0000 (10:10 +0100)] 
ntp: rename maxdelay constants

8 years agontp: reset ntpdata report on address change
Miroslav Lichvar [Thu, 19 Jan 2017 09:03:32 +0000 (10:03 +0100)] 
ntp: reset ntpdata report on address change

8 years agoexamples: improve chronyd.service
Miroslav Lichvar [Thu, 19 Jan 2017 07:40:56 +0000 (08:40 +0100)] 
examples: improve chronyd.service

8 years agodoc: update README 3.0
Miroslav Lichvar [Thu, 12 Jan 2017 15:22:50 +0000 (16:22 +0100)] 
doc: update README

8 years agoupdate copyright years
Miroslav Lichvar [Thu, 12 Jan 2017 14:54:28 +0000 (15:54 +0100)] 
update copyright years

8 years agotest: add ntp_core unit test
Miroslav Lichvar [Tue, 10 Jan 2017 14:43:18 +0000 (15:43 +0100)] 
test: add ntp_core unit test

8 years agotest: make 119-smoothtime more reliable
Miroslav Lichvar [Thu, 12 Jan 2017 15:19:43 +0000 (16:19 +0100)] 
test: make 119-smoothtime more reliable

8 years agotest: extend util unit test
Miroslav Lichvar [Wed, 11 Jan 2017 14:29:23 +0000 (15:29 +0100)] 
test: extend util unit test

8 years agoutil: handle zero in conversion of NTP timestamps
Miroslav Lichvar [Tue, 10 Jan 2017 16:23:47 +0000 (17:23 +0100)] 
util: handle zero in conversion of NTP timestamps

Handle zero NTP timestamp in UTI_Ntp64ToTimespec() as a special value to
make it symmetric with UTI_TimespecToNtp64(). This is needed since
commit d75f6830f190037421a66754849571fd0b495e35, in which a timestamp is
converted back and forth without checking for zero.

It also makes zero NTP timestamps more apparent in debug output.

8 years agortc: check for backward RTC steps
Miroslav Lichvar [Thu, 12 Jan 2017 12:43:41 +0000 (13:43 +0100)] 
rtc: check for backward RTC steps

When accumulating a new sample, check if the new RTC time is newer the
last sample time. If it is not, discard all previous samples, assuming
something has stepped the RTC, or it's a broken RTC/driver.

8 years agosourcestats: align sample time used for source report
Miroslav Lichvar [Thu, 12 Jan 2017 11:21:50 +0000 (12:21 +0100)] 
sourcestats: align sample time used for source report

This reduces leak of sample times (and receive timestamps which are
related to sample times), which could be useful in off-path attacks on
unauthenticated symmetric interleaved mode.

8 years agolocal: add assertion for precision
Miroslav Lichvar [Tue, 10 Jan 2017 10:39:05 +0000 (11:39 +0100)] 
local: add assertion for precision

8 years agontp: don't send packets with RX equal to TX
Miroslav Lichvar [Tue, 10 Jan 2017 10:30:52 +0000 (11:30 +0100)] 
ntp: don't send packets with RX equal to TX

Before sending an NTP packet, check whether the TX timestamp is not
equal to the RX timestamp. If it is, generate a new TX timestamp and try
again. This is extremely unlikely to happen in normal operation, but it
is needed for reliable detection of the interleaved mode.

8 years agontp: limit maxdelay parameters
Miroslav Lichvar [Tue, 10 Jan 2017 09:58:44 +0000 (10:58 +0100)] 
ntp: limit maxdelay parameters

8 years agofix some coverity warnings
Miroslav Lichvar [Mon, 9 Jan 2017 12:43:26 +0000 (13:43 +0100)] 
fix some coverity warnings

8 years agodoc: update NEWS 3.0-pre3
Miroslav Lichvar [Fri, 6 Jan 2017 10:52:20 +0000 (11:52 +0100)] 
doc: update NEWS

8 years agodoc: improve chrony.conf man page
Miroslav Lichvar [Fri, 6 Jan 2017 10:06:42 +0000 (11:06 +0100)] 
doc: improve chrony.conf man page

8 years agontp: add options for compensating HW timestamping errors
Miroslav Lichvar [Thu, 5 Jan 2017 15:37:28 +0000 (16:37 +0100)] 
ntp: add options for compensating HW timestamping errors

8 years agontp: add sanity check for HW timestamps
Miroslav Lichvar [Thu, 5 Jan 2017 15:27:27 +0000 (16:27 +0100)] 
ntp: add sanity check for HW timestamps

Accept HW timestamp only if it doesn't differ from the kernel/daemon
timestamp by more than one second.

8 years agontp: ignore zero HW timestamps
Miroslav Lichvar [Thu, 5 Jan 2017 14:37:34 +0000 (15:37 +0100)] 
ntp: ignore zero HW timestamps

Apparently, zero HW timestamps are possible with buggy drivers/HW.

8 years agosources: try to replace jittery sources
Miroslav Lichvar [Thu, 5 Jan 2017 11:03:36 +0000 (12:03 +0100)] 
sources: try to replace jittery sources

Similarly to falsetickers, distant, and unreachable sources, try to
replace sources that have jitter larger than maxjitter.

8 years agoclient: print refid also as string in ntpdata output
Miroslav Lichvar [Thu, 5 Jan 2017 10:48:34 +0000 (11:48 +0100)] 
client: print refid also as string in ntpdata output

8 years agontp: log warning when KoD RATE is received in non-burst mode
Miroslav Lichvar [Thu, 5 Jan 2017 10:29:55 +0000 (11:29 +0100)] 
ntp: log warning when KoD RATE is received in non-burst mode

8 years agohwclock: return timestamp error
Miroslav Lichvar [Wed, 4 Jan 2017 14:46:41 +0000 (15:46 +0100)] 
hwclock: return timestamp error

For now, when converting a raw timestamp, return error of the last
sample as the maximum error of the timestamp. This is needed to include
the PHC reading delay in the NTP dispersion.

8 years agontp: improve dispersion calculation
Miroslav Lichvar [Wed, 4 Jan 2017 14:40:52 +0000 (15:40 +0100)] 
ntp: improve dispersion calculation

Instead of adding precision (sum of the local and remote precision) to
the TX and RX timestamp error, include only the maximum.

8 years agoconf: change default rate limiting parameters
Miroslav Lichvar [Tue, 3 Jan 2017 11:05:43 +0000 (12:05 +0100)] 
conf: change default rate limiting parameters

Change the default NTP rate limiting leak to 2 (25%). Change the default
command rate limiting interval to -4 (16 packets per second) and burst
to 8, so the interval is the only difference between NTP and command
rate limiting defaults.

8 years agoclientlog: disable NTP response rate limiting by default
Miroslav Lichvar [Tue, 3 Jan 2017 10:34:34 +0000 (11:34 +0100)] 
clientlog: disable NTP response rate limiting by default

This reverts commit 50022e928644e3d727eaf8a7a8b334f3c998223c.

Testing showed that ntpd as an NTP client performs poorly when it's
getting only 25% of responses. At least for now, disable rate limiting
by default again.

8 years agontp: calculate delay relative to local frequency
Miroslav Lichvar [Tue, 3 Jan 2017 10:22:53 +0000 (11:22 +0100)] 
ntp: calculate delay relative to local frequency

This should be more accurate as local frequency is usually
combined from multiple sources. This is a partial revert of commit
23a4e8b38d873ce1246c4ef43a05d92c442a9f26.

8 years agodoc: update NEWS 3.0-pre2
Miroslav Lichvar [Thu, 15 Dec 2016 11:00:26 +0000 (12:00 +0100)] 
doc: update NEWS

8 years agoclientlog: enable NTP response rate limiting by default
Miroslav Lichvar [Thu, 15 Dec 2016 10:11:05 +0000 (11:11 +0100)] 
clientlog: enable NTP response rate limiting by default

Change the default interval of both NTP and command rate limiting to -10
(1024 packets per second) and the burst to 16. The default NTP leak is 2
(rate limiting is enabled by default) and the default command leak is 0
(rate limiting is disabled by default).

8 years agoclientlog: randomize alignment of log timestamps
Miroslav Lichvar [Thu, 15 Dec 2016 10:06:14 +0000 (11:06 +0100)] 
clientlog: randomize alignment of log timestamps

8 years agoclientlog: allow very short rate limiting intervals
Miroslav Lichvar [Wed, 14 Dec 2016 17:00:49 +0000 (18:00 +0100)] 
clientlog: allow very short rate limiting intervals

Support negative token shift to allow coarse rate limiting with
intervals down to -19.

8 years agoconfigure: don't use recvmmsg() on FreeBSD
Miroslav Lichvar [Wed, 14 Dec 2016 16:22:32 +0000 (17:22 +0100)] 
configure: don't use recvmmsg() on FreeBSD

Don't try recvmmsg() on FreeBSD, at least for now. It is broken on
FreeBSD 11.0 and it's just a wrapper around recvmsg().

8 years agodoc: improve hwtimestamp description
Miroslav Lichvar [Wed, 14 Dec 2016 12:30:17 +0000 (13:30 +0100)] 
doc: improve hwtimestamp description

8 years agontp: allow wildcard in hwtimestamp directive
Miroslav Lichvar [Wed, 14 Dec 2016 11:15:32 +0000 (12:15 +0100)] 
ntp: allow wildcard in hwtimestamp directive

If "*" was specified, use getifaddrs() to get a list of all interfaces,
and try to enable HW timestamping on all of them.

8 years agoclient: improve ntpdata output
Miroslav Lichvar [Wed, 14 Dec 2016 09:56:22 +0000 (10:56 +0100)] 
client: improve ntpdata output

8 years agoclient: don't require address in ntpdata command
Miroslav Lichvar [Wed, 14 Dec 2016 08:56:52 +0000 (09:56 +0100)] 
client: don't require address in ntpdata command

If no address is specified, use the SOURCE_DATA command to get addresses
of NTP sources, and request NTP_DATA for all of them.

8 years agosourcestats: add upper bound for skew
Miroslav Lichvar [Wed, 14 Dec 2016 07:59:52 +0000 (08:59 +0100)] 
sourcestats: add upper bound for skew

8 years agoexamples: avoid Unix domain socket in chrony-wait service
Miroslav Lichvar [Tue, 13 Dec 2016 11:57:06 +0000 (12:57 +0100)] 
examples: avoid Unix domain socket in chrony-wait service

Use the -h option to force chronyc to use internet socket instead of
Unix domain as the access to the socket may be blocked by SELinux and
trying to open it generates SELinux warnings.

8 years agocmdmon: update protocol changelog
Miroslav Lichvar [Tue, 13 Dec 2016 11:55:49 +0000 (12:55 +0100)] 
cmdmon: update protocol changelog

8 years agosourcestats: add lower bound for std dev used for weighting
Miroslav Lichvar [Tue, 13 Dec 2016 11:50:59 +0000 (12:50 +0100)] 
sourcestats: add lower bound for std dev used for weighting

8 years agosourcestats: save asymmetry run in dump files
Miroslav Lichvar [Mon, 12 Dec 2016 13:39:56 +0000 (14:39 +0100)] 
sourcestats: save asymmetry run in dump files

This allows the asymmetry correction to be applied right after restart.

8 years agocmdmon: add reserved fields to ntpdata reply
Miroslav Lichvar [Mon, 12 Dec 2016 11:50:48 +0000 (12:50 +0100)] 
cmdmon: add reserved fields to ntpdata reply

This might be useful if ntpdata is changed to not require authorization
and new fields need to be added without breaking compatibility.

8 years agonameserv: set CLOEXEC flag on pipe file descriptors
Miroslav Lichvar [Mon, 12 Dec 2016 09:29:26 +0000 (10:29 +0100)] 
nameserv: set CLOEXEC flag on pipe file descriptors

8 years agostubs: rework emulation of asynchronous resolver to use pipes
Miroslav Lichvar [Mon, 12 Dec 2016 08:58:56 +0000 (09:58 +0100)] 
stubs: rework emulation of asynchronous resolver to use pipes

With a larger number of configured servers, the handler of the emulated
resolver repeatedly scheduled timeout of zero, which triggered the
infinite loop detection in the scheduler and caused abort. This bug was
introduced in commit 967e358dbc93aa7a99c3c0ee2a634f1fedecba74.

Rework the code to use pipes instead of timeouts to avoid this problem.

8 years agontp: disable maxdelayratio in interleaved/symmetric mode
Miroslav Lichvar [Mon, 12 Dec 2016 08:11:49 +0000 (09:11 +0100)] 
ntp: disable maxdelayratio in interleaved/symmetric mode

It's too unreliable and the maxdelaydevratio test should work better
anyway.

8 years agodoc: update NEWS 3.0-pre1
Miroslav Lichvar [Fri, 9 Dec 2016 08:04:25 +0000 (09:04 +0100)] 
doc: update NEWS

8 years agodoc: update README
Miroslav Lichvar [Thu, 8 Dec 2016 15:26:34 +0000 (16:26 +0100)] 
doc: update README

8 years agotest: update 119-smoothtime
Miroslav Lichvar [Thu, 8 Dec 2016 15:25:46 +0000 (16:25 +0100)] 
test: update 119-smoothtime

8 years agoclient: add tab-completion with libedit/readline
Lonnie Abelbeck [Thu, 8 Dec 2016 13:24:14 +0000 (07:24 -0600)] 
client: add tab-completion with libedit/readline

8 years agorefclock: make maximum lock age configurable
Miroslav Lichvar [Thu, 8 Dec 2016 13:40:11 +0000 (14:40 +0100)] 
refclock: make maximum lock age configurable

The maxlockage option specifies in number of pulses how old can be
samples from the refclock specified by the lock option to be paired with
the pulses. Increasing this value is useful when the samples are
produced at a lower rate than the pulses.

8 years agorefclock: slew last sample even after it was used
Miroslav Lichvar [Thu, 8 Dec 2016 12:07:50 +0000 (13:07 +0100)] 
refclock: slew last sample even after it was used

It may be needed by locked PPS refclocks.

8 years agotest: add scan-build compilation test
Miroslav Lichvar [Thu, 8 Dec 2016 11:13:34 +0000 (12:13 +0100)] 
test: add scan-build compilation test

8 years agoconfigure: use common CPPFLAGS for all objects
Miroslav Lichvar [Thu, 8 Dec 2016 10:48:51 +0000 (11:48 +0100)] 
configure: use common CPPFLAGS for all objects

8 years agoconfigure: fix help text
Miroslav Lichvar [Thu, 8 Dec 2016 10:46:24 +0000 (11:46 +0100)] 
configure: fix help text

8 years agontp: fix clang warning
Miroslav Lichvar [Thu, 8 Dec 2016 10:32:17 +0000 (11:32 +0100)] 
ntp: fix clang warning

8 years agohwclock: fix check of sample separation
Miroslav Lichvar [Thu, 8 Dec 2016 10:21:13 +0000 (11:21 +0100)] 
hwclock: fix check of sample separation

8 years agontp: add TX error to dispersion
Miroslav Lichvar [Wed, 7 Dec 2016 17:32:55 +0000 (18:32 +0100)] 
ntp: add TX error to dispersion

8 years agontp: fix RX error added to dispersion in interleaved mode
Miroslav Lichvar [Wed, 7 Dec 2016 15:31:56 +0000 (16:31 +0100)] 
ntp: fix RX error added to dispersion in interleaved mode

8 years agosources: add configurable limit for jitter
Miroslav Lichvar [Wed, 7 Dec 2016 08:40:43 +0000 (09:40 +0100)] 
sources: add configurable limit for jitter

The maxjitter directive sets the maximum allowed jitter of the sources
to not be rejected by the source selection algorithm. This prevents
synchronisation with sources that have a small root distance, but their
time is too variable. By default, the maximum jitter is 1 second.

8 years agosourcestats: save variance as standard deviation
Miroslav Lichvar [Tue, 6 Dec 2016 14:37:39 +0000 (15:37 +0100)] 
sourcestats: save variance as standard deviation

This reduces the number of sqrt() calls.

8 years agocmdmon: allow all parameters to be set for new sources
Miroslav Lichvar [Mon, 5 Dec 2016 13:47:02 +0000 (14:47 +0100)] 
cmdmon: allow all parameters to be set for new sources

Add missing fields to the REQ_NTP_Source structure and add new versions
of the ADD_SERVER/ADD_PEER commands.

8 years agontp: rework calculation and testing of peer delay
Miroslav Lichvar [Mon, 5 Dec 2016 12:26:58 +0000 (13:26 +0100)] 
ntp: rework calculation and testing of peer delay

Instead of a worst-case delay use a mean value and relate it to the
source's time. This makes it more stable in the interleaved and
symmetric modes, which should improve the weighting and asymmetry
correction. Modify the test A and B to work with a minimum estimated
delay (delay - dispersion).

8 years agoclient: print addresses with refids in ntpdata report
Miroslav Lichvar [Mon, 5 Dec 2016 09:44:04 +0000 (10:44 +0100)] 
client: print addresses with refids in ntpdata report

8 years agoclient: fix truncation of long hostnames
Miroslav Lichvar [Mon, 5 Dec 2016 09:37:44 +0000 (10:37 +0100)] 
client: fix truncation of long hostnames

8 years agoclient: fix format specifier for poll in ntpdata report
Miroslav Lichvar [Mon, 5 Dec 2016 09:24:28 +0000 (10:24 +0100)] 
client: fix format specifier for poll in ntpdata report

8 years agoclient: fix add command
Miroslav Lichvar [Mon, 5 Dec 2016 09:21:34 +0000 (10:21 +0100)] 
client: fix add command

The default version changed to 0 (autoselect).

8 years agosys_linux: allow openat in seccomp filter
Miroslav Lichvar [Mon, 5 Dec 2016 09:14:15 +0000 (10:14 +0100)] 
sys_linux: allow openat in seccomp filter

8 years agomain: add -t option to usage text
Miroslav Lichvar [Fri, 2 Dec 2016 15:43:56 +0000 (16:43 +0100)] 
main: add -t option to usage text

8 years agoconfigure: rename SOCKDIR to RUNDIR
Miroslav Lichvar [Fri, 2 Dec 2016 12:25:34 +0000 (13:25 +0100)] 
configure: rename SOCKDIR to RUNDIR

8 years agoregress: remove unused struct declaration
Miroslav Lichvar [Fri, 2 Dec 2016 13:31:04 +0000 (14:31 +0100)] 
regress: remove unused struct declaration

8 years agoconf: increase default minsamples and polltarget
Miroslav Lichvar [Fri, 2 Dec 2016 08:15:42 +0000 (09:15 +0100)] 
conf: increase default minsamples and polltarget

Change default minsamples to 6 and polltarget to 8. This should improve
stability with extremely small jitters (e.g. HW timestamping) and not
decrease time accuracy at minimum polling interval too much.

8 years agomain: add -t option to chronyd
Miroslav Lichvar [Thu, 1 Dec 2016 14:57:39 +0000 (15:57 +0100)] 
main: add -t option to chronyd

This option sets a timeout (in seconds) after which chronyd will exit.
If the clock is not synchronised, it will exit with a non-zero status.
This is useful with the -q or -Q option to shorten the maximum time
waiting for measurements, or with the -r option to limit the time when
chronyd is running, but still allow it to adjust the frequency of the
system clock.

8 years agontp: don't make client log entries for broadcast TX
Miroslav Lichvar [Thu, 1 Dec 2016 07:32:35 +0000 (08:32 +0100)] 
ntp: don't make client log entries for broadcast TX

8 years agontp: avoid truncation of NTPv4 MACs by default
Miroslav Lichvar [Tue, 29 Nov 2016 12:26:46 +0000 (13:26 +0100)] 
ntp: avoid truncation of NTPv4 MACs by default

If the MAC in NTPv4 requests would be truncated, use version 3 by
default to avoid the truncation. This is necessary for compatibility
with older chronyd servers, which do not respond to messages with
truncated MACs.