]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
12 years agoReplace printf calls with echo in configure
Miroslav Lichvar [Thu, 24 Jan 2013 17:56:26 +0000 (18:56 +0100)] 
Replace printf calls with echo in configure

12 years agoSave compiler messages to config.log in configure
Miroslav Lichvar [Thu, 24 Jan 2013 16:31:40 +0000 (17:31 +0100)] 
Save compiler messages to config.log in configure

12 years agoFix crash and hangs in RGR_FindBestRobustRegression
Miroslav Lichvar [Thu, 29 Nov 2012 15:23:22 +0000 (16:23 +0100)] 
Fix crash and hangs in RGR_FindBestRobustRegression

12 years agoCheck for errors when writing new drift files
Miroslav Lichvar [Mon, 10 Sep 2012 14:44:19 +0000 (16:44 +0200)] 
Check for errors when writing new drift files

12 years agoAdd format string to printf in client.c
Miroslav Lichvar [Mon, 10 Sep 2012 12:18:16 +0000 (14:18 +0200)] 
Add format string to printf in client.c

12 years agoAdd support for nanoseconds in SHM
Miroslav Lichvar [Thu, 6 Sep 2012 17:00:32 +0000 (19:00 +0200)] 
Add support for nanoseconds in SHM

13 years agoFuzz transmit timestamp
Miroslav Lichvar [Tue, 22 May 2012 15:16:41 +0000 (17:16 +0200)] 
Fuzz transmit timestamp

Add random bits below clock precision to the timestamp to make
it less predictable.

13 years agoLog uncooked offset in refclocks log for PPS samples
Miroslav Lichvar [Tue, 13 Mar 2012 12:15:26 +0000 (13:15 +0100)] 
Log uncooked offset in refclocks log for PPS samples

13 years agoUpdate NEWS 1.27-pre1
Miroslav Lichvar [Mon, 27 Feb 2012 14:07:01 +0000 (15:07 +0100)] 
Update NEWS

13 years agoUpdate copyright years
Miroslav Lichvar [Fri, 24 Feb 2012 16:20:33 +0000 (17:20 +0100)] 
Update copyright years

13 years agoFix password handling in chronyc
Miroslav Lichvar [Tue, 28 Feb 2012 10:26:37 +0000 (11:26 +0100)] 
Fix password handling in chronyc

13 years agoFix compiler warnings
Miroslav Lichvar [Mon, 27 Feb 2012 15:08:14 +0000 (16:08 +0100)] 
Fix compiler warnings

13 years agoUpdate configure help text
Miroslav Lichvar [Mon, 27 Feb 2012 14:45:00 +0000 (15:45 +0100)] 
Update configure help text

13 years agoTest leap second timezone on start
Miroslav Lichvar [Mon, 27 Feb 2012 12:27:32 +0000 (13:27 +0100)] 
Test leap second timezone on start

13 years agoUpdate documentation
Miroslav Lichvar [Mon, 27 Feb 2012 12:26:37 +0000 (13:26 +0100)] 
Update documentation

13 years agoReschedule fast slew timeout on offset change
Miroslav Lichvar [Fri, 24 Feb 2012 15:26:53 +0000 (16:26 +0100)] 
Reschedule fast slew timeout on offset change

13 years agoAdd leap status to tracking log and report
Miroslav Lichvar [Fri, 24 Feb 2012 09:54:37 +0000 (10:54 +0100)] 
Add leap status to tracking log and report

13 years agoAdd support for reading leap second data from tz database
Miroslav Lichvar [Thu, 23 Feb 2012 17:48:24 +0000 (18:48 +0100)] 
Add support for reading leap second data from tz database

leapsectz directive is used to set the name of the timezone in the
system tz database which chronyd can use to find out when will the next
leap second occur.  It will periodically check if dates Jun 30 23:59:60
and Dec 31 23:59:60 are valid in that timezone. This is mainly useful
with reference clocks which don't provide the leap second information.
It is not necessary to restart chronyd if the tz database is updated
with a new leap second at least 12 hours before the event.

13 years agoAdd maxchange directive
Miroslav Lichvar [Tue, 21 Feb 2012 13:34:09 +0000 (14:34 +0100)] 
Add maxchange directive

This directive sets the maximum allowed offset corrected on a clock
update.  The check is performed only after the specified number of
updates to allow a large initial adjustment of the system clock.  When
an offset larger than the specified maximum occurs, it will be ignored
for the specified number of times and then chronyd will give up
and exit (a negative value can be used to never exit).  In both cases
a message is sent to syslog.

13 years agoMove refclock slew and dispersion handler init
Miroslav Lichvar [Tue, 14 Feb 2012 17:13:15 +0000 (18:13 +0100)] 
Move refclock slew and dispersion handler init

13 years agoStep system time in RTC preinit only with offsets over 1 second
Miroslav Lichvar [Tue, 14 Feb 2012 16:49:55 +0000 (17:49 +0100)] 
Step system time in RTC preinit only with offsets over 1 second

13 years agoFix last commit
Miroslav Lichvar [Tue, 14 Feb 2012 13:47:57 +0000 (14:47 +0100)] 
Fix last commit

13 years agoBetter estimate RTC offset right after trim
Miroslav Lichvar [Mon, 13 Feb 2012 15:54:18 +0000 (16:54 +0100)] 
Better estimate RTC offset right after trim

13 years agoReturn success on empty command
Miroslav Lichvar [Fri, 10 Feb 2012 17:30:11 +0000 (18:30 +0100)] 
Return success on empty command

13 years agoSupport passwords encoded in HEX
Miroslav Lichvar [Thu, 9 Feb 2012 15:44:43 +0000 (16:44 +0100)] 
Support passwords encoded in HEX

13 years agoUpdate reported RMS offset quickly on start
Miroslav Lichvar [Wed, 8 Feb 2012 13:24:42 +0000 (14:24 +0100)] 
Update reported RMS offset quickly on start

13 years agoExtend tracking, sources and activity reports
Miroslav Lichvar [Fri, 3 Feb 2012 13:57:25 +0000 (14:57 +0100)] 
Extend tracking, sources and activity reports

13 years agoUse +/- when logging skew on start
Miroslav Lichvar [Fri, 3 Feb 2012 14:45:24 +0000 (15:45 +0100)] 
Use +/- when logging skew on start

13 years agoFix logged offset in manual reference
Miroslav Lichvar [Fri, 3 Feb 2012 13:58:24 +0000 (14:58 +0100)] 
Fix logged offset in manual reference

13 years agoCheck if struct in6_pktinfo is usable
Miroslav Lichvar [Thu, 5 Jan 2012 14:11:54 +0000 (15:11 +0100)] 
Check if struct in6_pktinfo is usable

13 years agoFix reported number of runs to correspond to reported number of samples
Miroslav Lichvar [Fri, 25 Nov 2011 14:49:35 +0000 (15:49 +0100)] 
Fix reported number of runs to correspond to reported number of samples

13 years agoAdd corrtimeratio directive
Miroslav Lichvar [Tue, 15 Nov 2011 11:24:50 +0000 (12:24 +0100)] 
Add corrtimeratio directive

The corrtimeratio directive controls the ratio between the
duration in which the clock is slewed for an average correction
according to the source history and the interval in which the
corrections are done (usually the NTP polling interval).  Corrections
larger than the average take less time and smaller corrections take
more time, the amount of the correction and the correction time are
inversely proportional.

Increasing corrtimeratio makes the overall frequency error of
the system clock smaller, but increases the overall time error as
the corrections will take longer.

By default, the ratio is 1, which means the duration of an average
correction will be close to the update interval.

13 years agoControl offset correction rate in Linux driver
Miroslav Lichvar [Tue, 13 Sep 2011 12:53:46 +0000 (14:53 +0200)] 
Control offset correction rate in Linux driver

The kernel currently doesn't support a linear adjustment with
programmable rate, extend the use of the kernel PLL with locked
frequency instead.

Set the PLL time constant according to the correction time corresponding
to the correction rate and corrected offset.

On kernels with nano PLL adjtime() is no longer used.

13 years agoIntroduce offset correction rate
Miroslav Lichvar [Mon, 5 Sep 2011 13:45:32 +0000 (15:45 +0200)] 
Introduce offset correction rate

We want to correct the offset quickly, but we also want to keep the
frequency error caused by the correction itself low.

Define correction rate as the area of the region bounded by the graph of
offset corrected in time. Set the rate so that the time needed to correct
an offset equal to the current sourcestats stddev will be equal to the
update interval (assuming linear adjustment). The offset and the
time needed to make the correction are inversely proportional.

This is only a suggestion and it's up to the system driver how the
adjustment will be executed.

13 years agoInclude clock steps in calculated reference update interval
Miroslav Lichvar [Fri, 11 Nov 2011 17:40:01 +0000 (18:40 +0100)] 
Include clock steps in calculated reference update interval

13 years agoDocument extended keyfile format and authhash command
Miroslav Lichvar [Wed, 2 Nov 2011 10:57:41 +0000 (11:57 +0100)] 
Document extended keyfile format and authhash command

13 years agoAdd support for libtomcrypt
Miroslav Lichvar [Wed, 2 Nov 2011 11:12:09 +0000 (12:12 +0100)] 
Add support for libtomcrypt

13 years agoAdd support for NSS library
Miroslav Lichvar [Tue, 1 Nov 2011 16:38:01 +0000 (17:38 +0100)] 
Add support for NSS library

This adds support for the NSSLOWHASH API provided by the freebl3
library.

13 years agoAdd support for different authentication hashes
Miroslav Lichvar [Wed, 19 Oct 2011 11:26:03 +0000 (13:26 +0200)] 
Add support for different authentication hashes

Allow different hash functions to be used in the NTP and cmdmon
protocols. This breaks the cmdmon protocol compatibility. Extended key
file format is used to specify the hash functions for chronyd and new
authhash command is added to chronyc. MD5 is the default and the only
function included in the chrony source code, other functions will be
available from libraries.

13 years agoFix writing rtc data when called soon after trimrtc
Miroslav Lichvar [Wed, 14 Sep 2011 16:01:31 +0000 (18:01 +0200)] 
Fix writing rtc data when called soon after trimrtc

13 years agoUse ADJ_OFFSET_SS_READ mode only with kernels 2.6.28 and later
Miroslav Lichvar [Tue, 13 Sep 2011 14:37:54 +0000 (16:37 +0200)] 
Use ADJ_OFFSET_SS_READ mode only with kernels 2.6.28 and later

13 years agoAdd macro for maximum fastslew timeout
Miroslav Lichvar [Thu, 1 Sep 2011 16:08:45 +0000 (18:08 +0200)] 
Add macro for maximum fastslew timeout

13 years agoCheck for timepps.h also in sys directory
Miroslav Lichvar [Thu, 1 Sep 2011 15:06:54 +0000 (17:06 +0200)] 
Check for timepps.h also in sys directory

13 years agoMerge NCR_Process functions
Miroslav Lichvar [Thu, 1 Sep 2011 14:25:13 +0000 (16:25 +0200)] 
Merge NCR_Process functions

13 years agoAdd support for ADJ_SETOFFSET mode
Miroslav Lichvar [Thu, 9 Jun 2011 10:55:28 +0000 (12:55 +0200)] 
Add support for ADJ_SETOFFSET mode

This adjtimex mode allows precise stepping of the system clock.

13 years agoCheck sample ordering on accumulation
Miroslav Lichvar [Wed, 31 Aug 2011 16:36:10 +0000 (18:36 +0200)] 
Check sample ordering on accumulation

If the newly accumulated sample is not newer than than the last one,
discard the source history and start from scratch. This can happen after
loading an invalid dump or when the system clock was stepped.

13 years agoUpdate gpsd SOCK example in documentation
Miroslav Lichvar [Fri, 26 Aug 2011 15:19:25 +0000 (17:19 +0200)] 
Update gpsd SOCK example in documentation

13 years agoUse initial delay also for burst samples
Miroslav Lichvar [Fri, 26 Aug 2011 14:59:38 +0000 (16:59 +0200)] 
Use initial delay also for burst samples

13 years agoMake scheduling loop detector less sensitive
Miroslav Lichvar [Fri, 26 Aug 2011 14:52:00 +0000 (16:52 +0200)] 
Make scheduling loop detector less sensitive

It could be triggered by delayed name resolving as it adds multiple new
timeouts which can be called in the same dispatching if the DNS responses
are slower than initial delay and sampling separation.

Compare number of dispatched events also with current number of
timeouts.

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