]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
15 years agoAdd FreeBSD-amd64 to configure
Miroslav Lichvar [Sat, 12 Dec 2009 18:40:30 +0000 (19:40 +0100)] 
Add FreeBSD-amd64 to configure

15 years agoReplace integer microseconds in reports with floating-point values
Miroslav Lichvar [Sat, 12 Dec 2009 17:44:35 +0000 (18:44 +0100)] 
Replace integer microseconds in reports with floating-point values

15 years agoRemove resid_freq and resid_skew from source report
Miroslav Lichvar [Sat, 12 Dec 2009 17:36:32 +0000 (18:36 +0100)] 
Remove resid_freq and resid_skew from source report

They were not printed and they are also in sourcestats report.

15 years agoReplace fixed-point format with floating-point in cmdmon protocol
Miroslav Lichvar [Sat, 12 Dec 2009 17:23:26 +0000 (18:23 +0100)] 
Replace fixed-point format with floating-point in cmdmon protocol

15 years agoUse nanoseconds in timevals in cmdmon protocol
Miroslav Lichvar [Sat, 12 Dec 2009 15:44:38 +0000 (16:44 +0100)] 
Use nanoseconds in timevals in cmdmon protocol

15 years agoUse AI_ADDRCONFIG only when defined
Miroslav Lichvar [Thu, 10 Dec 2009 17:36:52 +0000 (18:36 +0100)] 
Use AI_ADDRCONFIG only when defined

This seems to be missing on NetBSD.

15 years agoEdited faq.txt to match the version on the Website.
John G. Hasler [Thu, 10 Dec 2009 13:55:02 +0000 (07:55 -0600)] 
Edited faq.txt to match the version on the Website.

15 years agoUse exact address size in bind and sendto calls
Miroslav Lichvar [Mon, 7 Dec 2009 11:51:56 +0000 (12:51 +0100)] 
Use exact address size in bind and sendto calls

Apparently this is needed on some systems, otherwise the calls
return EINVAL.

15 years agoUse IP_PKTINFO and SO_TIMESTAMP only when defined
Miroslav Lichvar [Mon, 7 Dec 2009 11:39:16 +0000 (12:39 +0100)] 
Use IP_PKTINFO and SO_TIMESTAMP only when defined

15 years agoFix sys_sunos compilation
Miroslav Lichvar [Mon, 7 Dec 2009 11:32:28 +0000 (12:32 +0100)] 
Fix sys_sunos compilation

15 years agoRemove socket binding in chronyc
Miroslav Lichvar [Mon, 7 Dec 2009 11:31:35 +0000 (12:31 +0100)] 
Remove socket binding in chronyc

Randomly assigned port should work fine, no need for binding.

15 years agoAdd missing commands to chronyc help
Miroslav Lichvar [Sat, 5 Dec 2009 12:26:25 +0000 (13:26 +0100)] 
Add missing commands to chronyc help

15 years agoAdd dns command to configure DNS resolving in chronyc
Miroslav Lichvar [Sat, 5 Dec 2009 12:25:56 +0000 (13:25 +0100)] 
Add dns command to configure DNS resolving in chronyc

15 years agoFix request_reply() return code if no response received
Miroslav Lichvar [Sat, 5 Dec 2009 00:13:26 +0000 (01:13 +0100)] 
Fix request_reply() return code if no response received

15 years agoUpdate documentation a bit more
Miroslav Lichvar [Fri, 4 Dec 2009 11:57:26 +0000 (12:57 +0100)] 
Update documentation a bit more

15 years agoSet default chrony.conf path according to sysconfdir
Miroslav Lichvar [Fri, 4 Dec 2009 11:30:30 +0000 (12:30 +0100)] 
Set default chrony.conf path according to sysconfdir

15 years agoImprove configure
Miroslav Lichvar [Fri, 4 Dec 2009 11:26:25 +0000 (12:26 +0100)] 
Improve configure

15 years agoDon't call ReadCookedTime after select timeout
Miroslav Lichvar [Thu, 3 Dec 2009 11:20:50 +0000 (12:20 +0100)] 
Don't call ReadCookedTime after select timeout

15 years agoUpdate documentation
Miroslav Lichvar [Wed, 2 Dec 2009 14:35:15 +0000 (15:35 +0100)] 
Update documentation

15 years agoAdd flags field to chronyc add source request
Miroslav Lichvar [Wed, 2 Dec 2009 14:19:54 +0000 (15:19 +0100)] 
Add flags field to chronyc add source request

This will allow adding new flags without breaking compatibility.

15 years agoRemove hyphen from git commands in make_release
Miroslav Lichvar [Tue, 1 Dec 2009 16:17:18 +0000 (17:17 +0100)] 
Remove hyphen from git commands in make_release

15 years agoClose socket in SOCK finalise
Miroslav Lichvar [Tue, 1 Dec 2009 15:01:31 +0000 (16:01 +0100)] 
Close socket in SOCK finalise

15 years agoFix printing refclocks and IPv6 sources in statistics log
Miroslav Lichvar [Mon, 30 Nov 2009 16:18:28 +0000 (17:18 +0100)] 
Fix printing refclocks and IPv6 sources in statistics log

15 years agoFlush filter when PPS refclock lost sync
Miroslav Lichvar [Mon, 30 Nov 2009 16:03:04 +0000 (17:03 +0100)] 
Flush filter when PPS refclock lost sync

15 years agoMark SOCK driver as PPS capable
Miroslav Lichvar [Mon, 30 Nov 2009 15:51:29 +0000 (16:51 +0100)] 
Mark SOCK driver as PPS capable

15 years agoOpen rtc log after dropping root privileges
Miroslav Lichvar [Mon, 30 Nov 2009 15:46:08 +0000 (16:46 +0100)] 
Open rtc log after dropping root privileges

15 years agoSwap leap signs in measurements log description
Miroslav Lichvar [Mon, 30 Nov 2009 15:34:47 +0000 (16:34 +0100)] 
Swap leap signs in measurements log description

15 years agoAdd refclocks log
Miroslav Lichvar [Mon, 30 Nov 2009 15:33:06 +0000 (16:33 +0100)] 
Add refclocks log

15 years agoRead local time immediately after select()
Miroslav Lichvar [Mon, 30 Nov 2009 12:19:55 +0000 (13:19 +0100)] 
Read local time immediately after select()

This removes a small inaccuracy caused by delay between select() and
file handler calls.

15 years agoClean up configure a bit
Miroslav Lichvar [Fri, 27 Nov 2009 15:25:39 +0000 (16:25 +0100)] 
Clean up configure a bit

15 years agoAdd editline, readline, linuxcaps detection to configure
Miroslav Lichvar [Fri, 27 Nov 2009 14:59:32 +0000 (15:59 +0100)] 
Add editline, readline, linuxcaps detection to configure

15 years agoUse 644/755 permissions instead of 444/555
Miroslav Lichvar [Fri, 27 Nov 2009 12:21:57 +0000 (13:21 +0100)] 
Use 644/755 permissions instead of 444/555

15 years agoDon't change file ownership in installation
Miroslav Lichvar [Fri, 27 Nov 2009 12:20:57 +0000 (13:20 +0100)] 
Don't change file ownership in installation

15 years agoAdd bindir, sbindir, docdir options to configure
Miroslav Lichvar [Fri, 27 Nov 2009 12:11:29 +0000 (13:11 +0100)] 
Add bindir, sbindir, docdir options to configure

15 years agoRegenerate getdate.c
Miroslav Lichvar [Fri, 27 Nov 2009 11:27:11 +0000 (12:27 +0100)] 
Regenerate getdate.c

15 years agoInclude getdate.y to allow regenerating getdate.c
Miroslav Lichvar [Fri, 27 Nov 2009 11:25:36 +0000 (12:25 +0100)] 
Include getdate.y to allow regenerating getdate.c

Taken from GNU tar-1.13. Patched yylex and yyerror declarations to avoid
compiler warnings.

15 years agoAdd s390 and powerpc definitions to io_linux.h
Miroslav Lichvar [Thu, 26 Nov 2009 12:41:07 +0000 (13:41 +0100)] 
Add s390 and powerpc definitions to io_linux.h

15 years agoClean up system options code
Miroslav Lichvar [Wed, 25 Nov 2009 13:22:11 +0000 (14:22 +0100)] 
Clean up system options code

Abort with error message when trying to use unsupported/disabled
system specific option.

15 years agoAdd new cmdmon status codes for packet version and length mismatch
Miroslav Lichvar [Wed, 25 Nov 2009 11:37:32 +0000 (12:37 +0100)] 
Add new cmdmon status codes for packet version and length mismatch

With next procotol version this will allow chronyc to report that
chronyd is using a different protocol version.

15 years agoCheck SOCK protocol version
Miroslav Lichvar [Tue, 24 Nov 2009 16:48:30 +0000 (17:48 +0100)] 
Check SOCK protocol version

15 years agoAdd PPS support to SOCK driver
Miroslav Lichvar [Tue, 24 Nov 2009 16:16:24 +0000 (17:16 +0100)] 
Add PPS support to SOCK driver

15 years agoMake some socket error messages more descriptive
Miroslav Lichvar [Tue, 24 Nov 2009 15:52:52 +0000 (16:52 +0100)] 
Make some socket error messages more descriptive

15 years agoAdd option to limit clientlog memory
Miroslav Lichvar [Tue, 24 Nov 2009 15:05:47 +0000 (16:05 +0100)] 
Add option to limit clientlog memory

15 years agoMultiply clientlog node table size when reallocating
Miroslav Lichvar [Tue, 24 Nov 2009 14:20:23 +0000 (15:20 +0100)] 
Multiply clientlog node table size when reallocating

15 years agoUse NULLs in select call instead of empty sets
Miroslav Lichvar [Mon, 23 Nov 2009 16:24:44 +0000 (17:24 +0100)] 
Use NULLs in select call instead of empty sets

15 years agoReduce adjtime calling
Miroslav Lichvar [Mon, 23 Nov 2009 16:23:43 +0000 (17:23 +0100)] 
Reduce adjtime calling

Don't call adjtime to determine remaining offset when there is no slewing
running.

15 years agoDon't read past buffer in find_ordered_entry_with_flags
Miroslav Lichvar [Wed, 18 Nov 2009 14:36:13 +0000 (15:36 +0100)] 
Don't read past buffer in find_ordered_entry_with_flags

15 years agoAvoid blocking read in rtc_linux
Miroslav Lichvar [Wed, 18 Nov 2009 11:53:31 +0000 (12:53 +0100)] 
Avoid blocking read in rtc_linux

15 years agoAdd spaces when catenating chronyc command line arguments
Miroslav Lichvar [Thu, 12 Nov 2009 15:48:09 +0000 (16:48 +0100)] 
Add spaces when catenating chronyc command line arguments

15 years agoUse non-zero exit code in chronyc to report errors
Miroslav Lichvar [Thu, 12 Nov 2009 15:43:34 +0000 (16:43 +0100)] 
Use non-zero exit code in chronyc to report errors

15 years agoImprove status checking and printing in chronyc
Miroslav Lichvar [Thu, 12 Nov 2009 14:36:12 +0000 (15:36 +0100)] 
Improve status checking and printing in chronyc

15 years agoCheck in chronyc that command in reply is same as requested
Miroslav Lichvar [Thu, 12 Nov 2009 14:06:40 +0000 (15:06 +0100)] 
Check in chronyc that command in reply is same as requested

15 years agoDon't set NTP source as reachable when reply doesn't have valid data
Miroslav Lichvar [Thu, 12 Nov 2009 11:40:45 +0000 (12:40 +0100)] 
Don't set NTP source as reachable when reply doesn't have valid data

This fixes using uninitialized sourcestats values when selecting source.

15 years agoAllow overriding system detection in configure
Miroslav Lichvar [Tue, 10 Nov 2009 15:25:59 +0000 (16:25 +0100)] 
Allow overriding system detection in configure

16 years agoDocument -4 and -6 options
Miroslav Lichvar [Mon, 9 Nov 2009 13:35:39 +0000 (14:35 +0100)] 
Document -4 and -6 options

16 years agoSupport LDFLAGS and CPPFLAGS in configure
Miroslav Lichvar [Wed, 4 Nov 2009 14:46:58 +0000 (15:46 +0100)] 
Support LDFLAGS and CPPFLAGS in configure

16 years agoAllow LDFLAGS to be used in linking
Jonathan Cameron [Wed, 4 Nov 2009 14:04:02 +0000 (15:04 +0100)] 
Allow LDFLAGS to be used in linking

16 years agoValidate sample times received in refclock
Miroslav Lichvar [Tue, 3 Nov 2009 15:40:12 +0000 (16:40 +0100)] 
Validate sample times received in refclock

16 years agoDon't forget to save last PPS sequence number
Miroslav Lichvar [Tue, 3 Nov 2009 15:36:02 +0000 (16:36 +0100)] 
Don't forget to save last PPS sequence number

16 years agoAvoid compiler warnings in util.c on 32-bit archs
Miroslav Lichvar [Fri, 30 Oct 2009 10:13:08 +0000 (11:13 +0100)] 
Avoid compiler warnings in util.c on 32-bit archs

16 years agoReplaced references to sunsite with references to tuxfamily.
John G. Hasler [Thu, 29 Oct 2009 21:14:39 +0000 (16:14 -0500)] 
Replaced references to sunsite with references to tuxfamily.

16 years agoUpdate COPYING and FSF address
Miroslav Lichvar [Wed, 28 Oct 2009 16:53:33 +0000 (17:53 +0100)] 
Update COPYING and FSF address

16 years agoUpdate copyrights
Miroslav Lichvar [Wed, 28 Oct 2009 16:53:10 +0000 (17:53 +0100)] 
Update copyrights

16 years agoUpdate documentation for refclock and IPv6 support
Miroslav Lichvar [Wed, 28 Oct 2009 15:53:03 +0000 (16:53 +0100)] 
Update documentation for refclock and IPv6 support

16 years agoRemove forgotten text in server directive description
Miroslav Lichvar [Wed, 28 Oct 2009 15:31:58 +0000 (16:31 +0100)] 
Remove forgotten text in server directive description

16 years agoAdd PPS API refclock driver
Miroslav Lichvar [Wed, 28 Oct 2009 11:23:00 +0000 (12:23 +0100)] 
Add PPS API refclock driver

16 years agoReselect source also according to distance
Miroslav Lichvar [Tue, 27 Oct 2009 13:28:19 +0000 (14:28 +0100)] 
Reselect source also according to distance

Reselect when a source with the same stratum is available and has
significantly better distance than the current source.

16 years agoMake default refclock refid from number of the source
Miroslav Lichvar [Tue, 27 Oct 2009 13:04:59 +0000 (14:04 +0100)] 
Make default refclock refid from number of the source

It should avoid having two or more refclocks with the same refid.

16 years agoAdd refclock option for delay
Miroslav Lichvar [Tue, 27 Oct 2009 13:02:16 +0000 (14:02 +0100)] 
Add refclock option for delay

This is useful when refclocks don't agree on time, increasing the
delay will widen the interval used in the source selection algorithm.

16 years agoReduce size of NTP sources hash table
Miroslav Lichvar [Tue, 13 Oct 2009 15:16:41 +0000 (17:16 +0200)] 
Reduce size of NTP sources hash table

IPv6 addressing significantly increased size of the table,
keep only pointers to get it back.

16 years agoInclude both refid and IP address in tracking and sourcestats reports
Miroslav Lichvar [Tue, 13 Oct 2009 14:04:24 +0000 (16:04 +0200)] 
Include both refid and IP address in tracking and sourcestats reports

ref_id is not sufficient for IPv6 addresses and ref_id is needed for
reference clocks.

16 years agoAdd -4 and -6 options to set address family when resolving names
Miroslav Lichvar [Tue, 13 Oct 2009 11:10:28 +0000 (13:10 +0200)] 
Add -4 and -6 options to set address family when resolving names

16 years agoAlways send timevals in cmdmon protocol in 64-bit format
Miroslav Lichvar [Fri, 9 Oct 2009 13:31:59 +0000 (15:31 +0200)] 
Always send timevals in cmdmon protocol in 64-bit format

This is to avoid incompatibility between 64/32-bit client/server.
While at it, convert all time values in the protocol to timeval
to avoid Y2K38 problem.

16 years agoAdd IPv6 support
Miroslav Lichvar [Fri, 9 Oct 2009 13:00:59 +0000 (15:00 +0200)] 
Add IPv6 support

16 years agoDon't use uninitialized values
Miroslav Lichvar [Wed, 7 Oct 2009 13:11:09 +0000 (15:11 +0200)] 
Don't use uninitialized values

This fixes a bunch or valgrind errors.

16 years agoDon't forget to free capability object
Miroslav Lichvar [Mon, 21 Sep 2009 10:45:33 +0000 (12:45 +0200)] 
Don't forget to free capability object

16 years agoDon't copy util functions in client.c
Miroslav Lichvar [Tue, 15 Sep 2009 16:08:58 +0000 (18:08 +0200)] 
Don't copy util functions in client.c

This requires moving croak() to logging.c and avoiding use
of log functions in util.c.

16 years agoFix string termination in refclock parameter parser
Miroslav Lichvar [Wed, 9 Sep 2009 15:12:43 +0000 (17:12 +0200)] 
Fix string termination in refclock parameter parser

16 years agoDon't lose remaining adjtime in initiate_slew
Miroslav Lichvar [Wed, 26 Aug 2009 15:58:57 +0000 (17:58 +0200)] 
Don't lose remaining adjtime in initiate_slew

initiate_slew is called also from set_frequency which doesn't read
the remaining adjtime. This wasn't a problem before commit 8c0f3f4
as offset_register was 0.0 and initiate_slew immediately returned.

16 years agoAdd SOCK refclock driver
Miroslav Lichvar [Wed, 19 Aug 2009 13:39:06 +0000 (15:39 +0200)] 
Add SOCK refclock driver

This adds a support for receiving samples over unix domain socket.
It's a better alternative to the SHM refclock, the resolution is not
limited to microseconds and it doesn't require polling.

16 years agoSwitch refclock driver parameter to string
Miroslav Lichvar [Wed, 19 Aug 2009 13:29:52 +0000 (15:29 +0200)] 
Switch refclock driver parameter to string

16 years agoAdd support for SO_TIMESTAMP control messages
Miroslav Lichvar [Fri, 7 Aug 2009 15:24:19 +0000 (17:24 +0200)] 
Add support for SO_TIMESTAMP control messages

SO_TIMESTAMP messages contain kernel time stamps for received packets,
this should improve accuracy and avoid the impact of CPU scheduling
latencies.

16 years agoSet reply source IP from query destination IP
Timo Teras [Fri, 7 Aug 2009 14:26:15 +0000 (16:26 +0200)] 
Set reply source IP from query destination IP

Currently, on multihomed host, when chrony is not bound to a specific
IP address, a query is sent to an interface and the default source IP
hint for the back route differs, the reply will have a source IP
different than where the query was destinied to. This will cause
problems because connection tracking firewalls will drop the replies
and most likely the client program will get confused too.

This patch uses the IP_PKTINFO mechanism to get the IP address where
received packets where targetted to and use that IP address as source
hint when sending a reply.

16 years agoSwitch to recvmsg/sendmsg to get access to control messages
Timo Teras [Fri, 7 Aug 2009 12:27:51 +0000 (14:27 +0200)] 
Switch to recvmsg/sendmsg to get access to control messages

16 years agoAdd editline support
Miroslav Lichvar [Fri, 17 Jul 2009 10:38:37 +0000 (12:38 +0200)] 
Add editline support

GNU readline recently changed license to GPLv3+ which makes it
incompatible with chrony (GPLv2). This patch adds support for editline
library (BSD license).

16 years agoFix compiler warnings in getdate.c
Miroslav Lichvar [Mon, 6 Jul 2009 09:49:26 +0000 (11:49 +0200)] 
Fix compiler warnings in getdate.c

16 years agoTry to minimize adjtime error
Miroslav Lichvar [Wed, 1 Jul 2009 13:49:05 +0000 (15:49 +0200)] 
Try to minimize adjtime error

The offset is rounded before calling adjtime and the error below
microsecond is accumulated.

16 years agoAdd median filter for refclocks
Miroslav Lichvar [Wed, 1 Jul 2009 13:40:50 +0000 (15:40 +0200)] 
Add median filter for refclocks

16 years agoAdd client support for Kiss-of-Death RATE
Miroslav Lichvar [Tue, 30 Jun 2009 15:47:11 +0000 (17:47 +0200)] 
Add client support for Kiss-of-Death RATE

This adds support for RATE code which can be used in reply from NTP
server to reduce client's polling.

16 years agoAdd support for ADJ_OFFSET_SS_READ mode
Miroslav Lichvar [Wed, 20 May 2009 15:43:09 +0000 (17:43 +0200)] 
Add support for ADJ_OFFSET_SS_READ mode

Also assume that kernels >= 2.6.27 don't need frequency scaling.

16 years agoAdd SHM refclock driver
Miroslav Lichvar [Tue, 5 May 2009 07:17:38 +0000 (09:17 +0200)] 
Add SHM refclock driver

16 years agoAdd support for reference clocks
Miroslav Lichvar [Tue, 5 May 2009 07:14:13 +0000 (09:14 +0200)] 
Add support for reference clocks

16 years agoMake sure skew isn't 0.0 to avoid segfaults
Miroslav Lichvar [Tue, 5 May 2009 06:52:33 +0000 (08:52 +0200)] 
Make sure skew isn't 0.0 to avoid segfaults

16 years agoDon't finalise from signal handler
Miroslav Lichvar [Wed, 29 Apr 2009 11:53:02 +0000 (13:53 +0200)] 
Don't finalise from signal handler

16 years agoReduce request timeout in chronyc
Miroslav Lichvar [Mon, 27 Apr 2009 14:43:36 +0000 (16:43 +0200)] 
Reduce request timeout in chronyc

16 years agoFix memlockall patch
Miroslav Lichvar [Wed, 11 Feb 2009 17:01:23 +0000 (18:01 +0100)] 
Fix memlockall patch

16 years agoFix compiler warnings in wrap_adjtimex.c
Miroslav Lichvar [Tue, 10 Feb 2009 17:06:25 +0000 (18:06 +0100)] 
Fix compiler warnings in wrap_adjtimex.c

16 years agoAdd mlockall and SCHED_FIFO support
John Hasler [Tue, 10 Feb 2009 16:59:57 +0000 (17:59 +0100)] 
Add mlockall and SCHED_FIFO support

The attached patch adds support for mlockall() as well as the SCHED_FIFO
real-time scheduler. It should result in reduced (and more consistent)
latency. Usage is documented in all the documents.

16 years agoFix leap sign in measurements log
Miroslav Lichvar [Wed, 31 Dec 2008 09:03:49 +0000 (10:03 +0100)] 
Fix leap sign in measurements log

16 years agoLeap second support
Miroslav Lichvar [Wed, 31 Dec 2008 08:59:20 +0000 (09:59 +0100)] 
Leap second support

Leap second status is accepted and forwarded to clients if majority
of selectable sources agree. The actual insertion/deletion is supported
only on Linux now.