]>
git.ipfire.org Git - thirdparty/chrony.git/log
Miroslav Lichvar [Tue, 9 Sep 2014 12:02:00 +0000 (14:02 +0200)]
ntp: print warning 10 years before supported time ends
Miroslav Lichvar [Tue, 9 Sep 2014 10:23:14 +0000 (12:23 +0200)]
configure: check if pkg-config is available
This is needed with some shells to prevent "pkg-config: not found"
errors from being displayed.
Miroslav Lichvar [Tue, 9 Sep 2014 09:48:09 +0000 (11:48 +0200)]
Fix compiler warnings on NetBSD
Miroslav Lichvar [Thu, 4 Sep 2014 15:43:27 +0000 (17:43 +0200)]
examples: add NetworkManager dispatcher script
Miroslav Lichvar [Thu, 4 Sep 2014 15:30:36 +0000 (17:30 +0200)]
examples: add systemd services
Miroslav Lichvar [Thu, 4 Sep 2014 15:27:43 +0000 (17:27 +0200)]
examples: add logrotate configuration
Miroslav Lichvar [Thu, 4 Sep 2014 15:22:09 +0000 (17:22 +0200)]
Move chrony.spec to examples
Miroslav Lichvar [Mon, 25 Aug 2014 15:24:58 +0000 (17:24 +0200)]
sys: fix typo in prctl() error message
Miroslav Lichvar [Thu, 21 Aug 2014 12:06:06 +0000 (14:06 +0200)]
util: fix compiler warning with 32-bit time_t
Miroslav Lichvar [Thu, 21 Aug 2014 07:56:57 +0000 (09:56 +0200)]
Update NEWS
Miroslav Lichvar [Wed, 20 Aug 2014 14:41:18 +0000 (16:41 +0200)]
ntp: don't stop online burst when sending fails
Don't stop online burst for unreachable sources until sending succeeds.
This is mainly useful with iburst when chronyd is started before the
network is configured.
Miroslav Lichvar [Wed, 20 Aug 2014 13:24:21 +0000 (15:24 +0200)]
ntp: don't adjust polling interval when sending fails
Miroslav Lichvar [Wed, 20 Aug 2014 12:30:42 +0000 (14:30 +0200)]
ntp: return with status from functions sending packets
Miroslav Lichvar [Wed, 20 Aug 2014 10:52:55 +0000 (12:52 +0200)]
doc: clarify description of -s option
Miroslav Lichvar [Wed, 20 Aug 2014 09:34:16 +0000 (11:34 +0200)]
sched: improve time jump detection
To detect forward time jumps, use a timestamp made before calling
select() instead of the first timeout in the queue. Also, if the timeout
value is modified by select() (e.g. on Linux) use it to get a more
accurate estimate of the elapsed time.
Miroslav Lichvar [Tue, 19 Aug 2014 14:05:47 +0000 (16:05 +0200)]
ntp: restart timer when poll interval changes on reset
Miroslav Lichvar [Tue, 19 Aug 2014 13:51:59 +0000 (15:51 +0200)]
ntp: add function to restart transmit timer
Miroslav Lichvar [Tue, 19 Aug 2014 09:45:30 +0000 (11:45 +0200)]
sched: make sure scheduler parameter change handler is first
This is needed to allow other handlers to add new timers.
Miroslav Lichvar [Tue, 19 Aug 2014 08:56:53 +0000 (10:56 +0200)]
local: use common function to invoke parameter change handlers
This was missing in commit
b69b648d .
Miroslav Lichvar [Mon, 18 Aug 2014 16:31:02 +0000 (18:31 +0200)]
reference: always update driftfile on exit
This is useful with the new fallback function of the -s option to
restore the system time at which chronyd was previously stopped.
Miroslav Lichvar [Mon, 18 Aug 2014 16:21:24 +0000 (18:21 +0200)]
rtc: set clock to mtime of driftfile when RTC preinit fails
When the RTC preinit function fails, set the system clock to the time of
the last modification of the driftfile if it's in the future. This makes
the -s option somewhat useful on systems where RTC is not supported or
missing.
This is similar to the functionality implemented in the fake-hwclock
script.
Miroslav Lichvar [Mon, 18 Aug 2014 15:34:25 +0000 (17:34 +0200)]
rtc: don't try to open rtcfile when not set
Miroslav Lichvar [Mon, 18 Aug 2014 15:19:36 +0000 (17:19 +0200)]
rtc: use fscanf() to read coefficients
Miroslav Lichvar [Mon, 18 Aug 2014 15:03:55 +0000 (17:03 +0200)]
rtc: return status from preinit function
Miroslav Lichvar [Mon, 18 Aug 2014 11:07:52 +0000 (13:07 +0200)]
rtc: use LCL functions to read and step system clock
Miroslav Lichvar [Mon, 18 Aug 2014 11:06:38 +0000 (13:06 +0200)]
rtc: improve accuracy of preinit step
Miroslav Lichvar [Mon, 18 Aug 2014 09:58:56 +0000 (11:58 +0200)]
rtc: minor cleanup in RTC_Linux_TimePreInit()
Miroslav Lichvar [Mon, 18 Aug 2014 09:25:16 +0000 (11:25 +0200)]
rtc: move preinit call to RTC_Initialise()
Miroslav Lichvar [Mon, 18 Aug 2014 09:03:15 +0000 (11:03 +0200)]
rtc: cleanup in error messages
Miroslav Lichvar [Mon, 18 Aug 2014 13:09:48 +0000 (15:09 +0200)]
test: add 115-cmdmontime
Miroslav Lichvar [Mon, 18 Aug 2014 12:52:07 +0000 (14:52 +0200)]
util: update functions converting cmdmon timestamps
Miroslav Lichvar [Mon, 18 Aug 2014 11:58:52 +0000 (13:58 +0200)]
cmdmon: convert LOGON timestamp only with LOGON message
Avoid always calling UTI_TimevalNetworkToHost() and make the code more
readable.
Miroslav Lichvar [Fri, 15 Aug 2014 14:36:00 +0000 (16:36 +0200)]
sched: check that added file descriptor fits in fd_set
Miroslav Lichvar [Fri, 15 Aug 2014 14:32:26 +0000 (16:32 +0200)]
sched: use FD_SETSIZE if defined
Miroslav Lichvar [Fri, 15 Aug 2014 14:23:09 +0000 (16:23 +0200)]
test: add 114-presend
Miroslav Lichvar [Fri, 15 Aug 2014 14:17:50 +0000 (16:17 +0200)]
ntp: add debug message for received packet
Miroslav Lichvar [Fri, 15 Aug 2014 13:45:48 +0000 (15:45 +0200)]
ntp: use NTP instead of echo for presend
Switch to NTP for presend as the echo service (RFC 862) is rarely
enabled. When presend is active, send an NTP client packet to the
server/peer and ignore the reply.
This also fixes presend with separate client sockets. The destination
port can't be changed on connected sockets, so the echo packet was sent
to the NTP port instead of the echo port.
Miroslav Lichvar [Fri, 15 Aug 2014 10:54:32 +0000 (12:54 +0200)]
Check for truncated source address when receiving packets
Miroslav Lichvar [Fri, 15 Aug 2014 08:12:36 +0000 (10:12 +0200)]
test: fix check in run script
Miroslav Lichvar [Thu, 14 Aug 2014 16:02:28 +0000 (18:02 +0200)]
test: add 008-ntpera
Miroslav Lichvar [Thu, 14 Aug 2014 15:58:59 +0000 (17:58 +0200)]
test: allow tests to be skipped
Miroslav Lichvar [Thu, 7 Aug 2014 15:08:19 +0000 (17:08 +0200)]
util: add support for other NTP eras
NTP timestamps use only 32 bits to count seconds and the current NTP era
ends in 2036. Add support for converting NTP timestamps from other NTP
eras on systems with 64-bit time_t.
The earliest assumed NTP time is set by the configure script (by default
to 50 years before the date of the build) and earlier NTP timestamps
underflow to the following NTP era.
Miroslav Lichvar [Thu, 7 Aug 2014 12:29:15 +0000 (14:29 +0200)]
ntp: move packet size asserts to ntp_core
Miroslav Lichvar [Thu, 7 Aug 2014 12:23:33 +0000 (14:23 +0200)]
util: fix printing of timestamps when time_t is longer than long
Miroslav Lichvar [Thu, 7 Aug 2014 12:11:17 +0000 (14:11 +0200)]
configure: check for 64-bit time_t
Miroslav Lichvar [Thu, 14 Aug 2014 13:57:09 +0000 (15:57 +0200)]
ntp: use one socket with random port when acquisitionport is 0
Miroslav Lichvar [Thu, 14 Aug 2014 13:33:33 +0000 (15:33 +0200)]
conf: return port numbers as int
Miroslav Lichvar [Mon, 4 Aug 2014 15:21:26 +0000 (17:21 +0200)]
cmdmon: allow binding to address that doesn't exist yet
Miroslav Lichvar [Mon, 4 Aug 2014 15:21:15 +0000 (17:21 +0200)]
ntp: allow binding to address that doesn't exist yet
Miroslav Lichvar [Thu, 14 Aug 2014 12:30:03 +0000 (14:30 +0200)]
ntp: remove disabled code in prepare_socket()
Miroslav Lichvar [Wed, 13 Aug 2014 16:29:56 +0000 (18:29 +0200)]
ntp: bind socket only when port or address was specified
This removes an unnecessary system call when getting new connected
client socket.
Miroslav Lichvar [Wed, 13 Aug 2014 16:14:42 +0000 (18:14 +0200)]
ntp: remove socket reconnecting
As new client socket is now created for each request, there is no need
to reconnect the socket. This is a partial revert of commit
43cca04c .
Miroslav Lichvar [Wed, 13 Aug 2014 16:11:34 +0000 (18:11 +0200)]
ntp: create new socket for each client request
Create a new connected client socket before each request and close it
when a valid reply is received.
This is useful when the network configuration is changed and the client
socket should be reconnected, but the old bound address remains valid
and sendmsg() doesn't return with an error.
Miroslav Lichvar [Fri, 15 Aug 2014 08:56:39 +0000 (10:56 +0200)]
Regenerate getdate.c
Miroslav Lichvar [Wed, 13 Aug 2014 11:01:35 +0000 (13:01 +0200)]
makefile: regenerate getdate.c when missing
Joachim Wiedorn [Wed, 13 Aug 2014 08:55:22 +0000 (10:55 +0200)]
doc: fix small typo
Miroslav Lichvar [Wed, 13 Aug 2014 08:49:06 +0000 (10:49 +0200)]
configure: remove ncurses_lib from first readline test
Miroslav Lichvar [Wed, 6 Aug 2014 13:43:32 +0000 (15:43 +0200)]
test: increase default time rms limit
This is improves testing reliability with new default corrtimeratio.
Miroslav Lichvar [Wed, 6 Aug 2014 13:12:18 +0000 (15:12 +0200)]
test: require latest clknetsim
Miroslav Lichvar [Wed, 6 Aug 2014 08:03:16 +0000 (10:03 +0200)]
ntp: close socket when duplicating fails
Miroslav Lichvar [Tue, 5 Aug 2014 14:33:56 +0000 (16:33 +0200)]
refclock: fix compiler warning in SOCK error message
Miroslav Lichvar [Tue, 5 Aug 2014 13:15:15 +0000 (15:15 +0200)]
logging: move exit call from LOG_Message to LOG_FATAL
Miroslav Lichvar [Mon, 4 Aug 2014 15:20:28 +0000 (17:20 +0200)]
ntp: shorten setsockopt error messages
Miroslav Lichvar [Mon, 4 Aug 2014 14:37:00 +0000 (16:37 +0200)]
ntp: move debug message after sendmsg()
This should reduce the delay before sending the packet when debugging is
enabled.
Miroslav Lichvar [Mon, 4 Aug 2014 13:49:29 +0000 (15:49 +0200)]
ntp: reconnect client sockets
With separate client sockets, allow the initial connect() to fail (e.g.
when the network is not reachable yet) and try to connect later when
sending the packet.
Also, reconnect the socket when the local address has changed.
Miroslav Lichvar [Tue, 29 Jul 2014 16:10:40 +0000 (18:10 +0200)]
doc: mention linuxcaps support in FAQ
Miroslav Lichvar [Tue, 1 Jul 2014 11:08:23 +0000 (13:08 +0200)]
doc: update FAQ
Miroslav Lichvar [Tue, 1 Jul 2014 10:50:13 +0000 (12:50 +0200)]
doc: use iburst option in examples
Miroslav Lichvar [Mon, 30 Jun 2014 15:30:17 +0000 (17:30 +0200)]
doc: update NEWS
Miroslav Lichvar [Mon, 30 Jun 2014 15:20:06 +0000 (17:20 +0200)]
doc: update README
Miroslav Lichvar [Mon, 30 Jun 2014 15:19:40 +0000 (17:19 +0200)]
doc: update initstepslew description
Miroslav Lichvar [Mon, 30 Jun 2014 14:21:42 +0000 (16:21 +0200)]
doc: update FAQ
Miroslav Lichvar [Mon, 30 Jun 2014 12:11:30 +0000 (14:11 +0200)]
Update configuration examples
Miroslav Lichvar [Mon, 30 Jun 2014 10:42:26 +0000 (12:42 +0200)]
sched: exit with fatal message when there is nothing to do
With cmdport 0 and port 0, it's now possible that there is no descriptor
watched or timer running, i.e. chronyd doing nothing and only waiting to
be terminated. Replace the assertion with LOG_FATAL to exit properly.
Miroslav Lichvar [Mon, 30 Jun 2014 10:36:52 +0000 (12:36 +0200)]
cmdmon: don't create socket when cmdport is 0
Miroslav Lichvar [Fri, 27 Jun 2014 15:26:54 +0000 (17:26 +0200)]
makefile: remove faq.php rule
Miroslav Lichvar [Fri, 27 Jun 2014 14:05:43 +0000 (16:05 +0200)]
make_release: generate FAQ from chrony.txt
Miroslav Lichvar [Fri, 27 Jun 2014 12:07:45 +0000 (14:07 +0200)]
make_release: generate INSTALL from chrony.txt
Miroslav Lichvar [Fri, 27 Jun 2014 12:00:42 +0000 (14:00 +0200)]
make_release: add testing mode
Miroslav Lichvar [Fri, 27 Jun 2014 13:30:00 +0000 (15:30 +0200)]
doc: include faq.txt in main document
Miroslav Lichvar [Fri, 27 Jun 2014 11:08:32 +0000 (13:08 +0200)]
doc: update installation chapter
Miroslav Lichvar [Fri, 27 Jun 2014 09:49:32 +0000 (11:49 +0200)]
doc: drop porting guide
Most of the information provided in this section looks obsolete.
Comments in the source code should be a better source.
Miroslav Lichvar [Fri, 27 Jun 2014 09:35:40 +0000 (11:35 +0200)]
util: print timevals for debug messages as numbers
Miroslav Lichvar [Thu, 26 Jun 2014 16:28:13 +0000 (18:28 +0200)]
Convert disabled log messages to debug or remove them
Miroslav Lichvar [Thu, 26 Jun 2014 15:15:50 +0000 (17:15 +0200)]
cmdmon: remove disabled code
Miroslav Lichvar [Thu, 26 Jun 2014 15:12:32 +0000 (17:12 +0200)]
keys: fix determine_hash_delay() declaration
Miroslav Lichvar [Wed, 25 Jun 2014 15:35:41 +0000 (17:35 +0200)]
test: require latest clknetsim revision
Miroslav Lichvar [Wed, 25 Jun 2014 13:36:14 +0000 (15:36 +0200)]
ntp: don't set address for sendmsg() with connected sockets
Miroslav Lichvar [Fri, 6 Jun 2014 14:11:23 +0000 (16:11 +0200)]
doc: update NEWS
Miroslav Lichvar [Fri, 6 Jun 2014 14:41:33 +0000 (16:41 +0200)]
make_release: fix man page preparation
Miroslav Lichvar [Fri, 6 Jun 2014 10:07:31 +0000 (12:07 +0200)]
Check return value of chmod() and fcntl()
Miroslav Lichvar [Fri, 6 Jun 2014 09:19:03 +0000 (11:19 +0200)]
reference: fix adjusting of last reference update time
The timestamp is in cooked time, it needs to be adjusted on all changes,
not only on step.
Miroslav Lichvar [Fri, 6 Jun 2014 08:13:25 +0000 (10:13 +0200)]
client: fix printing of negative poll in sources report
Miroslav Lichvar [Thu, 5 Jun 2014 14:42:39 +0000 (16:42 +0200)]
Update copyright years
Miroslav Lichvar [Thu, 5 Jun 2014 13:41:56 +0000 (15:41 +0200)]
doc: update acknowledgements
Miroslav Lichvar [Thu, 5 Jun 2014 12:46:22 +0000 (14:46 +0200)]
reference: rework makestep
Rework makestep to cancel accumulated offset and step with the new
offset instead of accumulating new offset first, canceling all
accumulated offset and making the step.
This avoids two large frequency changes to initiate and cancel a slew
before making the step.
Miroslav Lichvar [Thu, 5 Jun 2014 12:26:07 +0000 (14:26 +0200)]
test: extend 109-makestep
Miroslav Lichvar [Wed, 4 Jun 2014 14:46:15 +0000 (16:46 +0200)]
ntp: cook SO_TIMESTAMP timestamp
This is a partial revert of
8aa9eb19c826f3ea4a9c2ce5e3a71b74aeeb99d0 .
With the new generic driver cooking is cheap and it should be slighly
more accurate than reusing offset correction from the scheduler
timestamps.
Miroslav Lichvar [Wed, 4 Jun 2014 14:44:14 +0000 (16:44 +0200)]
reference: cook timestamp when setting reference
This is a partial revert of
8aa9eb19c826f3ea4a9c2ce5e3a71b74aeeb99d0 .
With the new generic driver cooking is cheap and it should be slighly
more accurate than reusing offset correction from the scheduler
timestamps.
Miroslav Lichvar [Wed, 4 Jun 2014 13:48:05 +0000 (15:48 +0200)]
test: add 113-leapsecond