]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
13 years agoWait in foreground process until daemon is fully initialized
Miroslav Lichvar [Fri, 26 Aug 2011 12:47:30 +0000 (14:47 +0200)] 
Wait in foreground process until daemon is fully initialized

Exit when all sockets are ready and initstepslew command and rtc step
are completed. Also, in case of a fatal error, print the error message
and exit with a non-zero status.

13 years agoAlways use delayed name resolving for server and peer directives
Miroslav Lichvar [Fri, 26 Aug 2011 12:22:10 +0000 (14:22 +0200)] 
Always use delayed name resolving for server and peer directives

This significantly reduces initialization time.

13 years agoChange working directory to /
Miroslav Lichvar [Thu, 25 Aug 2011 16:49:34 +0000 (18:49 +0200)] 
Change working directory to /

13 years agoRead config after opening syslog
Miroslav Lichvar [Thu, 25 Aug 2011 11:29:17 +0000 (13:29 +0200)] 
Read config after opening syslog

14 years agoDisable maxdelayratio test by default
Miroslav Lichvar [Fri, 12 Aug 2011 13:34:11 +0000 (15:34 +0200)] 
Disable maxdelayratio test by default

Change default maxdelayratio from 16384.0 to 0.0. A value larger
than 1.0 is required to enable the test.

14 years agoMatch skew in ntp_core to sourcestats skew
Miroslav Lichvar [Fri, 12 Aug 2011 12:52:35 +0000 (14:52 +0200)] 
Match skew in ntp_core to sourcestats skew

14 years agoLimit skew used in NTP test4
Miroslav Lichvar [Fri, 12 Aug 2011 12:49:23 +0000 (14:49 +0200)] 
Limit skew used in NTP test4

With iburst and very jittery sources the source skew can reach very high
values which makes the NTP test4 fail even with relatively small delays.
Limit the skew to 2000 ppm to avoid getting state where a source is unable
to accept more than first three iburst samples.

14 years agoFix creating logdir
Miroslav Lichvar [Thu, 11 Aug 2011 12:15:15 +0000 (14:15 +0200)] 
Fix creating logdir

14 years agoUpdate NEWS 1.26
Miroslav Lichvar [Wed, 13 Jul 2011 12:55:28 +0000 (14:55 +0200)] 
Update NEWS

14 years agoRetry on permanent DNS error by default
Miroslav Lichvar [Wed, 13 Jul 2011 12:26:38 +0000 (14:26 +0200)] 
Retry on permanent DNS error by default

14 years agoUpdate NEWS 1.26-pre1
Miroslav Lichvar [Fri, 24 Jun 2011 11:45:16 +0000 (13:45 +0200)] 
Update NEWS

14 years agoAdd configure option for sendmail path
Miroslav Lichvar [Fri, 24 Jun 2011 11:27:30 +0000 (13:27 +0200)] 
Add configure option for sendmail path

14 years agoGenerate version and date in man pages
Miroslav Lichvar [Fri, 24 Jun 2011 10:30:48 +0000 (12:30 +0200)] 
Generate version and date in man pages

14 years agoConvert make_release to shell script
Miroslav Lichvar [Fri, 24 Jun 2011 10:27:54 +0000 (12:27 +0200)] 
Convert make_release to shell script

14 years agoRemove chrony.lsm
Miroslav Lichvar [Thu, 23 Jun 2011 15:49:18 +0000 (17:49 +0200)] 
Remove chrony.lsm

14 years agoStep also cooked select timestamp in scheduler slew handler
Miroslav Lichvar [Thu, 23 Jun 2011 13:23:16 +0000 (15:23 +0200)] 
Step also cooked select timestamp in scheduler slew handler

14 years agoDetect infinite loop in scheduler
Miroslav Lichvar [Thu, 23 Jun 2011 11:47:55 +0000 (13:47 +0200)] 
Detect infinite loop in scheduler

If more timeouts were handled than there were in the timer queue on
start, assume some code is scheduling timeouts with negative delays and
abort. Make the actual limit higher in case the machine is temporarily
overloaded and dispatching the handlers takes more time than was delay
of a scheduled timeout.

14 years agoAdd asserts for timeout delays
Miroslav Lichvar [Thu, 23 Jun 2011 11:42:04 +0000 (13:42 +0200)] 
Add asserts for timeout delays

14 years agoAdd waitsync command
Miroslav Lichvar [Thu, 23 Jun 2011 10:13:51 +0000 (12:13 +0200)] 
Add waitsync command

14 years agoFix current_total_tick calculation
Miroslav Lichvar [Wed, 15 Jun 2011 10:11:32 +0000 (12:11 +0200)] 
Fix current_total_tick calculation

14 years agoDon't call driver read_freq in LCL_ReadAbsoluteFrequency
Miroslav Lichvar [Tue, 14 Jun 2011 18:45:48 +0000 (20:45 +0200)] 
Don't call driver read_freq in LCL_ReadAbsoluteFrequency

14 years agoCreate logdir before making first tracking write
Miroslav Lichvar [Tue, 14 Jun 2011 17:30:42 +0000 (19:30 +0200)] 
Create logdir before making first tracking write

14 years agoDon't update drift file on first reference update
Miroslav Lichvar [Tue, 14 Jun 2011 17:18:41 +0000 (19:18 +0200)] 
Don't update drift file on first reference update

14 years agoDon't reset kernel frequency on start without drift file
Miroslav Lichvar [Tue, 14 Jun 2011 19:03:16 +0000 (21:03 +0200)] 
Don't reset kernel frequency on start without drift file

14 years agoDon't use uninitialized values
Miroslav Lichvar [Mon, 13 Jun 2011 16:17:33 +0000 (18:17 +0200)] 
Don't use uninitialized values

14 years agoValidate leap status in refclock samples
Miroslav Lichvar [Mon, 13 Jun 2011 15:03:30 +0000 (17:03 +0200)] 
Validate leap status in refclock samples

14 years agoSet leap status by enum
Miroslav Lichvar [Mon, 13 Jun 2011 15:02:42 +0000 (17:02 +0200)] 
Set leap status by enum

14 years agoStore reference IDs in uint32_t
Miroslav Lichvar [Mon, 13 Jun 2011 13:34:16 +0000 (15:34 +0200)] 
Store reference IDs in uint32_t

14 years agoDon't limit refclock driver name to 4 chars
Miroslav Lichvar [Mon, 13 Jun 2011 11:49:46 +0000 (13:49 +0200)] 
Don't limit refclock driver name to 4 chars

14 years agoDon't try to recover from our own time steps
Miroslav Lichvar [Fri, 10 Jun 2011 16:55:20 +0000 (18:55 +0200)] 
Don't try to recover from our own time steps

14 years agoTry to handle unexpected backward time jumps
Miroslav Lichvar [Fri, 10 Jun 2011 16:29:41 +0000 (18:29 +0200)] 
Try to handle unexpected backward time jumps

14 years agoSet version string in config.h
Miroslav Lichvar [Thu, 9 Jun 2011 12:32:22 +0000 (14:32 +0200)] 
Set version string in config.h

14 years agoAdd .deps to .gitignore
Miroslav Lichvar [Thu, 9 Jun 2011 12:31:04 +0000 (14:31 +0200)] 
Add .deps to .gitignore

14 years agoMake .deps order-only prerequisite
Miroslav Lichvar [Thu, 9 Jun 2011 11:54:46 +0000 (13:54 +0200)] 
Make .deps order-only prerequisite

14 years agoRemove kernel version check from rtc code
Miroslav Lichvar [Mon, 6 Jun 2011 19:32:38 +0000 (21:32 +0200)] 
Remove kernel version check from rtc code

It should work with all currently supported kernels (>= 2.2.0).

14 years agoDetermine hz and shift from sysconf(_SC_CLK_TCK) when available
Miroslav Lichvar [Mon, 6 Jun 2011 15:41:14 +0000 (17:41 +0200)] 
Determine hz and shift from sysconf(_SC_CLK_TCK) when available

14 years agoLog final version specific details
Miroslav Lichvar [Mon, 6 Jun 2011 15:00:27 +0000 (17:00 +0200)] 
Log final version specific details

14 years agoDrop support for old readonly adjtime
Miroslav Lichvar [Mon, 6 Jun 2011 14:13:12 +0000 (16:13 +0200)] 
Drop support for old readonly adjtime

14 years agoDrop support for pre 2.2 Linux kernels
Miroslav Lichvar [Mon, 6 Jun 2011 14:04:42 +0000 (16:04 +0200)] 
Drop support for pre 2.2 Linux kernels

14 years agoSupport Linux 3.0 and later
Miroslav Lichvar [Mon, 6 Jun 2011 11:56:27 +0000 (13:56 +0200)] 
Support Linux 3.0 and later

14 years agoAccept packets with compatible NTP versions
Miroslav Lichvar [Wed, 25 May 2011 14:59:40 +0000 (16:59 +0200)] 
Accept packets with compatible NTP versions

All incoming NTP packets are now required to have version 2, 3 or 4.

14 years agoSet source IPv6 address on NTP reply
Miroslav Lichvar [Tue, 24 May 2011 16:06:01 +0000 (18:06 +0200)] 
Set source IPv6 address on NTP reply

This is needed on systems with multiple IPv6 addresses to reply with
the same source address as the destination address of the NTP request.

14 years agoMerge CCWARNFLAGS with CFLAGS
Miroslav Lichvar [Mon, 23 May 2011 15:57:28 +0000 (17:57 +0200)] 
Merge CCWARNFLAGS with CFLAGS

14 years agoUse config.h
Miroslav Lichvar [Mon, 23 May 2011 15:51:21 +0000 (17:51 +0200)] 
Use config.h

14 years agoUse object dependencies in Makefile
Miroslav Lichvar [Mon, 23 May 2011 13:38:14 +0000 (15:38 +0200)] 
Use object dependencies in Makefile

14 years agoUpdate NEWS 1.25
Miroslav Lichvar [Wed, 4 May 2011 10:29:40 +0000 (12:29 +0200)] 
Update NEWS

14 years agoUpdate versions in man pages
Miroslav Lichvar [Mon, 2 May 2011 11:21:50 +0000 (13:21 +0200)] 
Update versions in man pages

14 years agoModify weight calculation again
Miroslav Lichvar [Thu, 28 Apr 2011 15:32:13 +0000 (17:32 +0200)] 
Modify weight calculation again

Dividing the weights by variance or unweighted variance seems to have a
significant negative impact on response with normally distributed
network delays.

Divide by the difference between the mean and minimum distance instead.
It should be stable as there is no loop and the response seems to be a
good compromise between the original minimum distance weighting which
works well with normally distributed delays and the variance weighting
which works well with exponentially distributed delays.

14 years agoRevert using unweighted variance in weight calculation
Miroslav Lichvar [Thu, 28 Apr 2011 15:12:39 +0000 (17:12 +0200)] 
Revert using unweighted variance in weight calculation

This reverts commit 165e6805ab2e46b6fe6b627fcc5fd72d95802c39.

14 years agoIncrease smoothing factor in refclock variance 1.25-pre2
Miroslav Lichvar [Wed, 20 Apr 2011 10:38:34 +0000 (12:38 +0200)] 
Increase smoothing factor in refclock variance

14 years agoUpdate NEWS
Miroslav Lichvar [Mon, 18 Apr 2011 10:46:26 +0000 (12:46 +0200)] 
Update NEWS

14 years agoAdd another chrony.conf example
Miroslav Lichvar [Mon, 18 Apr 2011 10:52:52 +0000 (12:52 +0200)] 
Add another chrony.conf example

14 years agoIgnore extra samples in reported nruns
Miroslav Lichvar [Mon, 18 Apr 2011 10:36:02 +0000 (12:36 +0200)] 
Ignore extra samples in reported nruns

14 years agoIn weight calculation use unweighted variance from last regression
Miroslav Lichvar [Wed, 13 Apr 2011 16:43:25 +0000 (18:43 +0200)] 
In weight calculation use unweighted variance from last regression

This fixes a positive feedback where weights could reach inf.
Also change the SD_TO_DIST_RATIO constant to get close to the original
response.

14 years agoAllow changing tick up to max_tick_bias
Miroslav Lichvar [Tue, 12 Apr 2011 14:40:22 +0000 (16:40 +0200)] 
Allow changing tick up to max_tick_bias

14 years agoChange default maxclockerror to 1 ppm
Miroslav Lichvar [Mon, 11 Apr 2011 15:54:01 +0000 (17:54 +0200)] 
Change default maxclockerror to 1 ppm

14 years agoSet reference time to last sample instead of time on update
Miroslav Lichvar [Mon, 11 Apr 2011 15:52:04 +0000 (17:52 +0200)] 
Set reference time to last sample instead of time on update

This is done mainly to fix reported root dispersion to include max clock
error after selecting another source without new sample.

14 years agoUpdate refclock documentation
Miroslav Lichvar [Fri, 8 Apr 2011 14:53:11 +0000 (16:53 +0200)] 
Update refclock documentation

14 years agoAdd new commands to protocol comment in candm.h
Miroslav Lichvar [Thu, 7 Apr 2011 16:32:50 +0000 (18:32 +0200)] 
Add new commands to protocol comment in candm.h

14 years agoUpdate client copyright message
Miroslav Lichvar [Thu, 7 Apr 2011 16:20:35 +0000 (18:20 +0200)] 
Update client copyright message

14 years agoAssert there are no unhandled commands in cmdmon
Miroslav Lichvar [Thu, 7 Apr 2011 16:17:37 +0000 (18:17 +0200)] 
Assert there are no unhandled commands in cmdmon

14 years agoAdd reselectdist command
Miroslav Lichvar [Thu, 7 Apr 2011 16:16:39 +0000 (18:16 +0200)] 
Add reselectdist command

14 years agoDon't add \n to chronyc command line arguments
Miroslav Lichvar [Thu, 7 Apr 2011 14:17:58 +0000 (16:17 +0200)] 
Don't add \n to chronyc command line arguments

This fixes parsing of some commands.

14 years agoRevert marking offline sources as unreachable
Miroslav Lichvar [Thu, 7 Apr 2011 12:44:56 +0000 (14:44 +0200)] 
Revert marking offline sources as unreachable

14 years agoDon't crash when sources report is requested soon after start
Miroslav Lichvar [Wed, 6 Apr 2011 14:59:40 +0000 (16:59 +0200)] 
Don't crash when sources report is requested soon after start

14 years agoAdd include directive
Miroslav Lichvar [Wed, 6 Apr 2011 14:58:12 +0000 (16:58 +0200)] 
Add include directive

14 years agoAdd configure option to force retry on DNS failure
Miroslav Lichvar [Tue, 5 Apr 2011 16:14:05 +0000 (18:14 +0200)] 
Add configure option to force retry on DNS failure

This is apparently needed on system which keep nameservers specified
in /etc/resolv.conf even when there is no network connection. Should be
used with care as invalid names will be retried forever.

14 years agoDon't update empty sourcestats on clock update
Miroslav Lichvar [Tue, 5 Apr 2011 14:32:50 +0000 (16:32 +0200)] 
Don't update empty sourcestats on clock update

14 years agoFix warnings produced by latest gcc
Miroslav Lichvar [Tue, 15 Feb 2011 17:55:34 +0000 (18:55 +0100)] 
Fix warnings produced by latest gcc

14 years agoReduce Linux driver verbosity
Miroslav Lichvar [Tue, 15 Feb 2011 16:22:40 +0000 (17:22 +0100)] 
Reduce Linux driver verbosity

14 years agoDon't log error on opening driftfile
Miroslav Lichvar [Tue, 15 Feb 2011 15:56:30 +0000 (16:56 +0100)] 
Don't log error on opening driftfile

Log frequency and skew values read from the driftfile instead.

14 years agoMake starting log even in debug mode
Miroslav Lichvar [Mon, 14 Feb 2011 17:21:38 +0000 (18:21 +0100)] 
Make starting log even in debug mode

14 years agoDon't log in signal handler
Miroslav Lichvar [Mon, 14 Feb 2011 17:19:58 +0000 (18:19 +0100)] 
Don't log in signal handler

14 years agoDon't use uninitialized memory when setting RTC time
Miroslav Lichvar [Fri, 11 Feb 2011 16:54:45 +0000 (17:54 +0100)] 
Don't use uninitialized memory when setting RTC time

14 years agoUse system headers for Linux RTC support
Miroslav Lichvar [Fri, 11 Feb 2011 16:43:56 +0000 (17:43 +0100)] 
Use system headers for Linux RTC support

14 years agoFix compiler warnings in PPS configure test
Miroslav Lichvar [Fri, 11 Feb 2011 16:31:38 +0000 (17:31 +0100)] 
Fix compiler warnings in PPS configure test

14 years agoUpdate NEWS 1.25-pre1
Miroslav Lichvar [Fri, 28 Jan 2011 12:21:56 +0000 (13:21 +0100)] 
Update NEWS

14 years agoUpdate credits
Miroslav Lichvar [Fri, 28 Jan 2011 11:57:03 +0000 (12:57 +0100)] 
Update credits

14 years agoRemove CVS headers
Miroslav Lichvar [Fri, 28 Jan 2011 11:56:09 +0000 (12:56 +0100)] 
Remove CVS headers

14 years agoUpdate copyright
Miroslav Lichvar [Thu, 27 Jan 2011 12:05:26 +0000 (13:05 +0100)] 
Update copyright

14 years agoIgnore reselectdist for refclocks
Miroslav Lichvar [Tue, 25 Jan 2011 16:51:19 +0000 (17:51 +0100)] 
Ignore reselectdist for refclocks

14 years agoMake importance of stratum in source selection configurable
Miroslav Lichvar [Tue, 25 Jan 2011 16:22:00 +0000 (17:22 +0100)] 
Make importance of stratum in source selection configurable

Instead of always selecting the source with minimum stratum, add weighted
stratum to the distance when comparing selectable sources. The weight
can be configured with new stratumweight directive and can be set to
zero to ignore stratum completely, by default 1.0.

14 years agoDisable variance source test for now
Miroslav Lichvar [Mon, 24 Jan 2011 17:04:33 +0000 (18:04 +0100)] 
Disable variance source test for now

It seems it triggers even with one source alone if it's close and
accurate or polling interval is long enough. It would need to include
max_clock_error.

14 years agoAdd outlyer source status to cmdmon protocol
Miroslav Lichvar [Mon, 24 Jan 2011 16:23:34 +0000 (17:23 +0100)] 
Add outlyer source status to cmdmon protocol

This is not used yet.

14 years agoPrint sources with bad stats in client as unreachable
Miroslav Lichvar [Mon, 24 Jan 2011 16:13:28 +0000 (17:13 +0100)] 
Print sources with bad stats in client as unreachable

14 years agoSelect source with minimum distance using a scoring system
Miroslav Lichvar [Mon, 24 Jan 2011 16:09:00 +0000 (17:09 +0100)] 
Select source with minimum distance using a scoring system

Each source has a score against currently selected source which is
updated (multiplied by ratio of their distances) when one of the two
sources has a new sample. When the score reaches a limit, the source
will be selected. This should allow to slowly select the source with
minimum distance without frequent reselecting.

To avoid switching between sources with very variable distances (e.g. on
LAN or when upstream server uses a longer polling interval), sources
that are currently not selected are penalized by a fixed distance. This
can be configured with new reselectdist directive (100 microseconds by
default).

14 years agoSet status on doffset and dfreq commands
Miroslav Lichvar [Wed, 19 Jan 2011 14:29:49 +0000 (15:29 +0100)] 
Set status on doffset and dfreq commands

14 years agoReply with status invalid instead of bad length on invalid command
Miroslav Lichvar [Wed, 19 Jan 2011 13:44:10 +0000 (14:44 +0100)] 
Reply with status invalid instead of bad length on invalid command

14 years agoDon't leak descriptors to sendmail
Miroslav Lichvar [Tue, 18 Jan 2011 17:07:46 +0000 (18:07 +0100)] 
Don't leak descriptors to sendmail

14 years agoDon't forget to shift last class dispatch timevals on step
Miroslav Lichvar [Mon, 20 Dec 2010 13:12:47 +0000 (14:12 +0100)] 
Don't forget to shift last class dispatch timevals on step

14 years agoDon't send packet in last auto_offline transmit timeout
Miroslav Lichvar [Fri, 17 Dec 2010 17:05:09 +0000 (18:05 +0100)] 
Don't send packet in last auto_offline transmit timeout

14 years agoFix switching offline auto_offline source to online
Miroslav Lichvar [Fri, 17 Dec 2010 16:51:00 +0000 (17:51 +0100)] 
Fix switching offline auto_offline source to online

14 years agoEnforce timeout class separation from last dispatched timeout
Miroslav Lichvar [Fri, 17 Dec 2010 15:09:12 +0000 (16:09 +0100)] 
Enforce timeout class separation from last dispatched timeout

14 years agoUse enum for scheduler timeout classes
Miroslav Lichvar [Fri, 17 Dec 2010 14:38:23 +0000 (15:38 +0100)] 
Use enum for scheduler timeout classes

14 years agoFix crash when timeout is removed from its handler
Miroslav Lichvar [Fri, 17 Dec 2010 13:52:39 +0000 (14:52 +0100)] 
Fix crash when timeout is removed from its handler

Remove the timeout before dispatching the handler, and allow
calling SCH_RemoveTimeout() with nonexistent id.

14 years agoMake unsynchronised entry in tracking log on start
Miroslav Lichvar [Thu, 16 Dec 2010 17:51:40 +0000 (18:51 +0100)] 
Make unsynchronised entry in tracking log on start

14 years agoDelay selecting source on start
Miroslav Lichvar [Thu, 16 Dec 2010 17:27:38 +0000 (18:27 +0100)] 
Delay selecting source on start

On start, when servers are reachable and use the same polling interval,
wait for them to have the same reachability register (which corresponds
to the number of samples in sourcestats) before selecting one.

14 years agoDon't update local reference unnecessarily
Miroslav Lichvar [Thu, 16 Dec 2010 15:55:59 +0000 (16:55 +0100)] 
Don't update local reference unnecessarily

Local reference is now updated only when a new source is selected or
match_addr is equal to the selected source, match_addr 0 is no longer
treated specially.

14 years agoTrack reachability in sources module
Miroslav Lichvar [Thu, 16 Dec 2010 15:01:29 +0000 (16:01 +0100)] 
Track reachability in sources module

Add new flag to source struct to indicate when source is selectable
(packets with good headers are received) and use a reachability
register for last 8 samples instead of the reachable flag. Source
drivers now provide only reachability updates.

14 years agoApply jitter test only on NTP sources for now
Miroslav Lichvar [Thu, 16 Dec 2010 12:28:44 +0000 (13:28 +0100)] 
Apply jitter test only on NTP sources for now

With refclocks it seems to fail easily, users would have to set the delay
option appropriately.