]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
11 years agoUpdate comment on setting poll in reply packet
Miroslav Lichvar [Fri, 17 Jan 2014 17:09:48 +0000 (18:09 +0100)] 
Update comment on setting poll in reply packet

11 years agoDon't allow maxpoll to be set shorter than minpoll
Miroslav Lichvar [Fri, 17 Jan 2014 16:37:07 +0000 (17:37 +0100)] 
Don't allow maxpoll to be set shorter than minpoll

11 years agoConvert linux kernel info messages to debug
Miroslav Lichvar [Fri, 17 Jan 2014 16:27:48 +0000 (17:27 +0100)] 
Convert linux kernel info messages to debug

11 years agoUpdate linux_freq_scale and linux_hz documentation
Miroslav Lichvar [Fri, 10 Jan 2014 12:25:39 +0000 (13:25 +0100)] 
Update linux_freq_scale and linux_hz documentation

11 years agoPrint error message on invalid syntax with all chronyc commands
Miroslav Lichvar [Fri, 10 Jan 2014 10:14:39 +0000 (11:14 +0100)] 
Print error message on invalid syntax with all chronyc commands

11 years agoSimplify expression used in frequency accumulation
Miroslav Lichvar [Thu, 9 Jan 2014 17:17:57 +0000 (18:17 +0100)] 
Simplify expression used in frequency accumulation

11 years agoFix frequency accumulation again
Miroslav Lichvar [Thu, 9 Jan 2014 15:34:59 +0000 (16:34 +0100)] 
Fix frequency accumulation again

This is a revert of commit 99d18abf updated for later changes. It seems
in that commit the calculation was changed to match the reversed dfreq
added in 1a7415a6, which itself was calculated incorrectly. Fix the
calculation of updated frequency and matching dfreq.

11 years agoConvert disabled log message in rtc_linux.c to DEBUG_LOG
Miroslav Lichvar [Thu, 9 Jan 2014 17:21:50 +0000 (18:21 +0100)] 
Convert disabled log message in rtc_linux.c to DEBUG_LOG

11 years agoUpdate documentation on trimrtc command
Miroslav Lichvar [Thu, 12 Dec 2013 16:11:11 +0000 (17:11 +0100)] 
Update documentation on trimrtc command

11 years agoImprove description of refclock delay option
Miroslav Lichvar [Wed, 11 Dec 2013 16:59:14 +0000 (17:59 +0100)] 
Improve description of refclock delay option

11 years agoFix default device in rtcdevice description
Miroslav Lichvar [Wed, 11 Dec 2013 10:25:00 +0000 (11:25 +0100)] 
Fix default device in rtcdevice description

11 years agoAdd option to read RTC LOCAL/UTC setting from hwclock's adjtime file
Miroslav Lichvar [Wed, 11 Dec 2013 10:20:58 +0000 (11:20 +0100)] 
Add option to read RTC LOCAL/UTC setting from hwclock's adjtime file

11 years agoReplace /sbin/clock with /sbin/hwclock in documentation and comments
Miroslav Lichvar [Tue, 10 Dec 2013 16:04:17 +0000 (17:04 +0100)] 
Replace /sbin/clock with /sbin/hwclock in documentation and comments

11 years agoMake naming of RTC config functions consistent
Miroslav Lichvar [Tue, 10 Dec 2013 15:39:14 +0000 (16:39 +0100)] 
Make naming of RTC config functions consistent

11 years agoFix ordering of sections in documentation
Miroslav Lichvar [Fri, 29 Nov 2013 16:34:15 +0000 (17:34 +0100)] 
Fix ordering of sections in documentation

11 years agoMake section descriptions consistent in documentation
Miroslav Lichvar [Fri, 29 Nov 2013 15:55:21 +0000 (16:55 +0100)] 
Make section descriptions consistent in documentation

11 years agoWrite fatal messages also to stderr when started with -n
Miroslav Lichvar [Thu, 28 Nov 2013 17:14:38 +0000 (18:14 +0100)] 
Write fatal messages also to stderr when started with -n

11 years agoDon't try to write to parent logging fd when closed
Miroslav Lichvar [Thu, 28 Nov 2013 16:39:50 +0000 (17:39 +0100)] 
Don't try to write to parent logging fd when closed

11 years agoMerge config parsing functions for common data types
Miroslav Lichvar [Thu, 28 Nov 2013 16:33:20 +0000 (17:33 +0100)] 
Merge config parsing functions for common data types

11 years agoAdd option to trim RTC automatically
Miroslav Lichvar [Wed, 27 Nov 2013 16:33:03 +0000 (17:33 +0100)] 
Add option to trim RTC automatically

11 years agoFix REF_GetOurStratum description
Miroslav Lichvar [Wed, 27 Nov 2013 15:28:09 +0000 (16:28 +0100)] 
Fix REF_GetOurStratum description

11 years agoRemove forgotten macros
Miroslav Lichvar [Wed, 27 Nov 2013 15:11:19 +0000 (16:11 +0100)] 
Remove forgotten macros

11 years agoUse N_SAMPLES_PER_REGRESSION macro in rtc_linux module
Miroslav Lichvar [Wed, 27 Nov 2013 14:43:17 +0000 (15:43 +0100)] 
Use N_SAMPLES_PER_REGRESSION macro in rtc_linux module

11 years agoConvert TRACEON LOG messages to DEBUG_LOG
Miroslav Lichvar [Tue, 26 Nov 2013 17:53:24 +0000 (18:53 +0100)] 
Convert TRACEON LOG messages to DEBUG_LOG

11 years agoAdd support for debug messages
Miroslav Lichvar [Tue, 26 Nov 2013 17:53:10 +0000 (18:53 +0100)] 
Add support for debug messages

Add new DEBUG_LOG macro for debug messages. The messages are enabled
when compiled with --enable-debug and they are printed when the -d
option is used twice.

11 years agoFix log messages
Miroslav Lichvar [Tue, 26 Nov 2013 15:30:25 +0000 (16:30 +0100)] 
Fix log messages

11 years agoSet printf format attribute for logging functions with gcc
Miroslav Lichvar [Tue, 26 Nov 2013 15:11:55 +0000 (16:11 +0100)] 
Set printf format attribute for logging functions with gcc

11 years agoRefactor logging
Miroslav Lichvar [Tue, 26 Nov 2013 14:48:18 +0000 (15:48 +0100)] 
Refactor logging

- merge LOG_Line_Function, LOG_Fatal_Function and LOG_Position
- use C99 variadic macros for LOG and LOG_FATAL

11 years agoUpdate see also in man pages
Miroslav Lichvar [Tue, 26 Nov 2013 12:32:03 +0000 (13:32 +0100)] 
Update see also in man pages

11 years agoAdd refclock trace messages
Miroslav Lichvar [Tue, 26 Nov 2013 10:41:23 +0000 (11:41 +0100)] 
Add refclock trace messages

11 years agoEnable refclock error messages
Miroslav Lichvar [Tue, 26 Nov 2013 09:34:49 +0000 (10:34 +0100)] 
Enable refclock error messages

11 years agoFix stratum with non-PPS SOCK refclock and local stratum
Miroslav Lichvar [Mon, 25 Nov 2013 16:57:14 +0000 (17:57 +0100)] 
Fix stratum with non-PPS SOCK refclock and local stratum

11 years agoAppend -lcap to EXTRA_LIBS in configure
Miroslav Lichvar [Fri, 15 Nov 2013 12:22:16 +0000 (13:22 +0100)] 
Append -lcap to EXTRA_LIBS in configure

11 years agoLink with -lrt for clock_gettime() if needed
Miroslav Lichvar [Fri, 15 Nov 2013 12:21:40 +0000 (13:21 +0100)] 
Link with -lrt for clock_gettime() if needed

11 years agoFix compilation of PHC driver on systems without PTP_SYS_OFFSET
Miroslav Lichvar [Fri, 15 Nov 2013 09:08:20 +0000 (10:08 +0100)] 
Fix compilation of PHC driver on systems without PTP_SYS_OFFSET

12 years agoAdd assert for parameter m in RGR_FindBestRegression()
Miroslav Lichvar [Thu, 10 Oct 2013 14:37:40 +0000 (16:37 +0200)] 
Add assert for parameter m in RGR_FindBestRegression()

12 years agoFix regression validity check in handle_relock_after_trim()
Miroslav Lichvar [Mon, 7 Oct 2013 15:42:30 +0000 (17:42 +0200)] 
Fix regression validity check in handle_relock_after_trim()

12 years agoFix id printed in duplicate key warning
Miroslav Lichvar [Mon, 7 Oct 2013 15:17:48 +0000 (17:17 +0200)] 
Fix id printed in duplicate key warning

12 years agoRemove unused code in manual.c
Miroslav Lichvar [Mon, 7 Oct 2013 15:04:24 +0000 (17:04 +0200)] 
Remove unused code in manual.c

12 years agoFix Clang static analyzer warnings about never read values
Miroslav Lichvar [Mon, 7 Oct 2013 14:10:25 +0000 (16:10 +0200)] 
Fix Clang static analyzer warnings about never read values

12 years agortc_linux.c: Remove useless assignment `error = -1;`
Paul Menzel [Thu, 3 Oct 2013 12:37:31 +0000 (14:37 +0200)] 
rtc_linux.c: Remove useless assignment `error = -1;`

The Clang static analyzer scan-build from Debian clang version 3.4-1
found the following unneeded assignment.

        rtc_linux.c:756:5: warning: Value stored to 'error' is never read
            error = 1;
            ^       ~

Indeed, if in that if branch, the function returns without ever looking
at the variable `error`. So remove the line.

12 years agoAdd dependency on chrony.txt to install target
Miroslav Lichvar [Thu, 12 Sep 2013 12:22:32 +0000 (14:22 +0200)] 
Add dependency on chrony.txt to install target

12 years agoAdd URLs to documentation for gpsd, radioclk and linuxpps
Miroslav Lichvar [Wed, 14 Aug 2013 16:48:30 +0000 (18:48 +0200)] 
Add URLs to documentation for gpsd, radioclk and linuxpps

12 years agoAdd PHC refclock driver
Miroslav Lichvar [Wed, 14 Aug 2013 16:13:39 +0000 (18:13 +0200)] 
Add PHC refclock driver

Implement a driver which allows using PTP hardware clock (PHC) as a
reference clock. It uses the PTP_SYS_OFFSET ioctl or clock_gettime()
to measure the offset between the PTP clock and the system clock. Ten
readings are made for every driver poll and the fastest one is returned.

As PHCs are typically kept in TAI instead of UTC, it's necessary to set
the TAI/UTC offset manually by the offset option. This could be improved
by obtaining the offset automatically from the right/UTC timezone.

12 years agoUpdate NEWS 1.29
Miroslav Lichvar [Wed, 31 Jul 2013 13:04:12 +0000 (15:04 +0200)] 
Update NEWS

12 years agoDrop support for SUBNETS_ACCESSED and CLIENT_ACCESSES commands
Miroslav Lichvar [Wed, 31 Jul 2013 13:03:27 +0000 (15:03 +0200)] 
Drop support for SUBNETS_ACCESSED and CLIENT_ACCESSES commands

Support for the SUBNETS_ACCESSED and CLIENT_ACCESSES commands was
enabled in chronyd, but in chronyc it was always disabled and the
CLIENT_ACCESSES_BY_INDEX command was used instead. As there is no plan
to enable it in the future, remove the support completely.

12 years agoDon't send uninitialized data in command replies
Miroslav Lichvar [Wed, 31 Jul 2013 13:02:09 +0000 (15:02 +0200)] 
Don't send uninitialized data in command replies

The RPY_SUBNETS_ACCESSED and RPY_CLIENT_ACCESSES command replies can
contain uninitalized data from stack when the client logging is disabled
or a bad subnet is requested. These commands were never used by chronyc
and they require the client to be authenticated since version 1.25.

12 years agoFix buffer overflow when processing crafted command packets
Miroslav Lichvar [Wed, 31 Jul 2013 13:01:15 +0000 (15:01 +0200)] 
Fix buffer overflow when processing crafted command packets

When the length of the REQ_SUBNETS_ACCESSED, REQ_CLIENT_ACCESSES
command requests and the RPY_SUBNETS_ACCESSED, RPY_CLIENT_ACCESSES,
RPY_CLIENT_ACCESSES_BY_INDEX, RPY_MANUAL_LIST command replies is
calculated, the number of items stored in the packet is not validated.

A crafted command request/reply can be used to crash the server/client.
Only clients allowed by cmdallow (by default only localhost) can crash
the server.

With chrony versions 1.25 and 1.26 this bug has a smaller security
impact as the server requires the clients to be authenticated in order
to process the subnet and client accesses commands. In 1.27 and 1.28,
however, the invalid calculated length is included also in the
authentication check which may cause another crash.

12 years agoUpdate chrony.conf.example2
Miroslav Lichvar [Fri, 2 Aug 2013 13:40:57 +0000 (15:40 +0200)] 
Update chrony.conf.example2

12 years agoDon't mention pre 2.2 Linux kernels in documentation
Miroslav Lichvar [Fri, 2 Aug 2013 13:36:46 +0000 (15:36 +0200)] 
Don't mention pre 2.2 Linux kernels in documentation

12 years agoUpdate NEWS 1.28
Miroslav Lichvar [Wed, 17 Jul 2013 13:54:21 +0000 (15:54 +0200)] 
Update NEWS

12 years agoTreat address bind errors as non-fatal
Miroslav Lichvar [Wed, 17 Jul 2013 11:45:36 +0000 (13:45 +0200)] 
Treat address bind errors as non-fatal

12 years agoUpdate chrony.spec.sample
Miroslav Lichvar [Mon, 1 Jul 2013 17:00:06 +0000 (19:00 +0200)] 
Update chrony.spec.sample

12 years agoUpdate copyright in chronyc GPL string
Miroslav Lichvar [Mon, 1 Jul 2013 15:52:23 +0000 (17:52 +0200)] 
Update copyright in chronyc GPL string

12 years agoUpdate NEWS 1.28-pre1
Miroslav Lichvar [Fri, 21 Jun 2013 12:20:09 +0000 (14:20 +0200)] 
Update NEWS

12 years agoUpdate example config files more
Miroslav Lichvar [Fri, 21 Jun 2013 09:45:44 +0000 (11:45 +0200)] 
Update example config files more

12 years agoDocument port directive set to 0 as random port
Miroslav Lichvar [Fri, 21 Jun 2013 06:43:54 +0000 (08:43 +0200)] 
Document port directive set to 0 as random port

12 years agoUse texi2html only if it's available
Miroslav Lichvar [Fri, 21 Jun 2013 13:32:38 +0000 (15:32 +0200)] 
Use texi2html only if it's available

12 years agoDon't ship faqgen.pl
Miroslav Lichvar [Fri, 21 Jun 2013 13:32:18 +0000 (15:32 +0200)] 
Don't ship faqgen.pl

12 years agoFix possible leaks of temporary file names
Miroslav Lichvar [Fri, 21 Jun 2013 14:08:14 +0000 (16:08 +0200)] 
Fix possible leaks of temporary file names

12 years agoFix memset calls
Miroslav Lichvar [Fri, 21 Jun 2013 12:39:12 +0000 (14:39 +0200)] 
Fix memset calls

12 years agoUpdate documentation
Miroslav Lichvar [Thu, 20 Jun 2013 16:00:32 +0000 (18:00 +0200)] 
Update documentation

12 years agoUpdate example config files
Miroslav Lichvar [Thu, 20 Jun 2013 14:19:36 +0000 (16:19 +0200)] 
Update example config files

12 years agoCreate /etc and /var/lib/chrony on installation
Miroslav Lichvar [Thu, 20 Jun 2013 12:47:06 +0000 (14:47 +0200)] 
Create /etc and /var/lib/chrony on installation

12 years agoAvoid sentences written in first person
Miroslav Lichvar [Thu, 20 Jun 2013 11:22:13 +0000 (13:22 +0200)] 
Avoid sentences written in first person

12 years agoUpdate comparison with ntpd
Miroslav Lichvar [Wed, 19 Jun 2013 16:25:28 +0000 (18:25 +0200)] 
Update comparison with ntpd

12 years agoRemove fixed problems from FAQ
Miroslav Lichvar [Wed, 19 Jun 2013 12:40:20 +0000 (14:40 +0200)] 
Remove fixed problems from FAQ

12 years agoUpdate copyright years
Miroslav Lichvar [Wed, 19 Jun 2013 10:50:26 +0000 (12:50 +0200)] 
Update copyright years

12 years agoDon't call finalise functions on fatal error
Miroslav Lichvar [Wed, 19 Jun 2013 10:28:00 +0000 (12:28 +0200)] 
Don't call finalise functions on fatal error

Also, return with non-zero exit code.

12 years agoCombine source frequencies by skew
Miroslav Lichvar [Wed, 19 Jun 2013 10:11:27 +0000 (12:11 +0200)] 
Combine source frequencies by skew

12 years agoAdd minimum skew limit to sourcestats
Miroslav Lichvar [Wed, 19 Jun 2013 08:22:49 +0000 (10:22 +0200)] 
Add minimum skew limit to sourcestats

12 years agoFix printing of outlier status
Miroslav Lichvar [Tue, 18 Jun 2013 14:13:17 +0000 (16:13 +0200)] 
Fix printing of outlier status

12 years agoAdd more entries to tracking log
Miroslav Lichvar [Mon, 17 Jun 2013 16:16:52 +0000 (18:16 +0200)] 
Add more entries to tracking log

Add number of combined sources, remaining offset correction from
previous update and estimated stddev of the combined offset.

12 years agoFix maxchange offset check
Miroslav Lichvar [Mon, 17 Jun 2013 13:39:43 +0000 (15:39 +0200)] 
Fix maxchange offset check

12 years agoCall maybe_log_offset and update_leap_status after adjusting clock
Miroslav Lichvar [Mon, 17 Jun 2013 09:09:05 +0000 (11:09 +0200)] 
Call maybe_log_offset and update_leap_status after adjusting clock

12 years agoFix spelling
Miroslav Lichvar [Mon, 17 Jun 2013 08:40:16 +0000 (10:40 +0200)] 
Fix spelling

12 years agoLog manual entries with MANU refid in tracking log
Miroslav Lichvar [Fri, 14 Jun 2013 17:42:13 +0000 (19:42 +0200)] 
Log manual entries with MANU refid in tracking log

12 years agoFix log message to not include newline
Miroslav Lichvar [Fri, 14 Jun 2013 17:19:42 +0000 (19:19 +0200)] 
Fix log message to not include newline

12 years agoFix printing of negative offset with settime command
Miroslav Lichvar [Fri, 14 Jun 2013 17:18:36 +0000 (19:18 +0200)] 
Fix printing of negative offset with settime command

12 years agoReuse REF_SetReference code with manual reference
Miroslav Lichvar [Fri, 14 Jun 2013 16:57:30 +0000 (18:57 +0200)] 
Reuse REF_SetReference code with manual reference

12 years agoWrite freq and skew to drift file with six decimal places
Miroslav Lichvar [Fri, 14 Jun 2013 14:44:00 +0000 (16:44 +0200)] 
Write freq and skew to drift file with six decimal places

12 years agoUse fscanf to read drift file
Miroslav Lichvar [Fri, 14 Jun 2013 14:37:18 +0000 (16:37 +0200)] 
Use fscanf to read drift file

12 years agoModify minimum skew checking
Miroslav Lichvar [Fri, 14 Jun 2013 14:27:15 +0000 (16:27 +0200)] 
Modify minimum skew checking

12 years agoReplace bzero with memset
Miroslav Lichvar [Fri, 14 Jun 2013 11:48:16 +0000 (13:48 +0200)] 
Replace bzero with memset

12 years agoRemove changelog from conf.c
Miroslav Lichvar [Fri, 14 Jun 2013 11:44:15 +0000 (13:44 +0200)] 
Remove changelog from conf.c

12 years agoCleanup including of system headers
Miroslav Lichvar [Fri, 14 Jun 2013 11:30:54 +0000 (13:30 +0200)] 
Cleanup including of system headers

12 years agoDon't abort on EINTR select errors
Miroslav Lichvar [Fri, 14 Jun 2013 10:37:24 +0000 (12:37 +0200)] 
Don't abort on EINTR select errors

12 years agoReplace LOG_FATAL call with assert in SCH_MailLoop
Miroslav Lichvar [Fri, 14 Jun 2013 10:34:52 +0000 (12:34 +0200)] 
Replace LOG_FATAL call with assert in SCH_MailLoop

12 years agoDon't apply outlyer penalty at beginning
Miroslav Lichvar [Thu, 13 Jun 2013 16:19:17 +0000 (18:19 +0200)] 
Don't apply outlyer penalty at beginning

Wait until the reach register is full to allow marking a source as
outlyer for 32 updates. This makes start nicer with iburst.

12 years agoAdd minsamples and maxsamples directives
Miroslav Lichvar [Thu, 13 Jun 2013 14:23:32 +0000 (16:23 +0200)] 
Add minsamples and maxsamples directives

Allow configuration of the maximum and minimum number of samples per
source.

12 years agoModify SST_GetSelectionData to return only necessary data
Miroslav Lichvar [Wed, 12 Jun 2013 14:06:33 +0000 (16:06 +0200)] 
Modify SST_GetSelectionData to return only necessary data

12 years agoUse UTI_DiffTimevalsToDouble to calculate theta
Miroslav Lichvar [Wed, 12 Jun 2013 13:11:33 +0000 (15:11 +0200)] 
Use UTI_DiffTimevalsToDouble to calculate theta

12 years agoFix fabs use on delay
Miroslav Lichvar [Wed, 12 Jun 2013 13:10:54 +0000 (15:10 +0200)] 
Fix fabs use on delay

12 years agoLimit sources included in combining
Miroslav Lichvar [Mon, 10 Jun 2013 16:37:08 +0000 (18:37 +0200)] 
Limit sources included in combining

Combine only sources whose distance is shorter than distance of the
selected source multiplied by the value of combinelimit and their
estimated frequencies are close to the frequency of the selected source.
Add outlyer status for sources which are selectable, but not included in
the combining. The status is displayed as '-' in the chronyc sources
output.

12 years agoResurrect source combining
Miroslav Lichvar [Wed, 29 Jun 2011 16:45:31 +0000 (18:45 +0200)] 
Resurrect source combining

This is based on the code that was removed in CVS revision 1.3 of
sources.c. The weighting is simplified and the code is moved to a new
function.

12 years agoRemove unnecessary adjtimex calls
Miroslav Lichvar [Thu, 6 Jun 2013 17:38:36 +0000 (19:38 +0200)] 
Remove unnecessary adjtimex calls

12 years agoFix rounding in UTI_AddDoubleToTimeval with negative increments
Miroslav Lichvar [Thu, 6 Jun 2013 14:30:37 +0000 (16:30 +0200)] 
Fix rounding in UTI_AddDoubleToTimeval with negative increments

12 years agoAdjust last_select_ts on slew
Miroslav Lichvar [Thu, 6 Jun 2013 14:28:33 +0000 (16:28 +0200)] 
Adjust last_select_ts on slew

12 years agoRename SCH_GetFileReadyTime() and extend it to return raw time
Miroslav Lichvar [Wed, 5 Jun 2013 15:52:13 +0000 (17:52 +0200)] 
Rename SCH_GetFileReadyTime() and extend it to return raw time

12 years agoDrop duplicated int64_to_timeval()
Miroslav Lichvar [Wed, 5 Jun 2013 11:11:53 +0000 (13:11 +0200)] 
Drop duplicated int64_to_timeval()