Miroslav Lichvar
777303f130
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.
2011-11-02 13:53:00 +01:00
Miroslav Lichvar
6015f99d98
Fix writing rtc data when called soon after trimrtc
2011-09-14 18:03:01 +02:00
Miroslav Lichvar
78fc17c661
Use ADJ_OFFSET_SS_READ mode only with kernels 2.6.28 and later
2011-09-13 16:39:08 +02:00
Miroslav Lichvar
d42addf746
Add macro for maximum fastslew timeout
2011-09-01 18:08:45 +02:00
Miroslav Lichvar
f570eb76b3
Check for timepps.h also in sys directory
2011-09-01 17:06:54 +02:00
Miroslav Lichvar
cc3f5962b8
Merge NCR_Process functions
2011-09-01 16:25:13 +02:00
Miroslav Lichvar
6ab3d1daa3
Add support for ADJ_SETOFFSET mode
...
This adjtimex mode allows precise stepping of the system clock.
2011-09-01 15:31:11 +02:00
Miroslav Lichvar
b088b70f82
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.
2011-08-31 18:36:10 +02:00
Miroslav Lichvar
fbbb6bbc00
Update gpsd SOCK example in documentation
2011-08-26 18:34:00 +02:00
Miroslav Lichvar
5c36342958
Use initial delay also for burst samples
2011-08-26 18:34:00 +02:00
Miroslav Lichvar
f1a0cacc5a
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.
2011-08-26 18:34:00 +02:00
Miroslav Lichvar
1d2a0856b4
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.
2011-08-26 18:31:26 +02:00
Miroslav Lichvar
7fb50d9a3e
Always use delayed name resolving for server and peer directives
...
This significantly reduces initialization time.
2011-08-26 14:22:10 +02:00
Miroslav Lichvar
919b5b5a7d
Change working directory to /
2011-08-25 18:49:34 +02:00
Miroslav Lichvar
1e35b26826
Read config after opening syslog
2011-08-25 14:46:16 +02:00
Miroslav Lichvar
27b0b5824a
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.
2011-08-12 15:38:05 +02:00
Miroslav Lichvar
1d72d22bc5
Match skew in ntp_core to sourcestats skew
2011-08-12 15:38:05 +02:00
Miroslav Lichvar
e0c9ed44f9
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.
2011-08-12 15:37:58 +02:00
Miroslav Lichvar
411f4da340
Fix creating logdir
2011-08-11 14:15:15 +02:00
Miroslav Lichvar
4fac84098e
Update NEWS
2011-07-13 14:55:28 +02:00
Miroslav Lichvar
21b2063a6f
Retry on permanent DNS error by default
2011-07-13 14:49:22 +02:00
Miroslav Lichvar
917c191650
Update NEWS
2011-06-24 13:45:16 +02:00
Miroslav Lichvar
2bfce03d29
Add configure option for sendmail path
2011-06-24 13:27:30 +02:00
Miroslav Lichvar
1cb8167be0
Generate version and date in man pages
2011-06-24 12:30:48 +02:00
Miroslav Lichvar
40d33cc64d
Convert make_release to shell script
2011-06-24 12:27:54 +02:00
Miroslav Lichvar
95433e9639
Remove chrony.lsm
2011-06-23 17:49:18 +02:00
Miroslav Lichvar
bbe1a09e7e
Step also cooked select timestamp in scheduler slew handler
2011-06-23 15:23:16 +02:00
Miroslav Lichvar
dce2366b3a
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.
2011-06-23 15:14:08 +02:00
Miroslav Lichvar
bab7ba22cf
Add asserts for timeout delays
2011-06-23 13:42:04 +02:00
Miroslav Lichvar
d6a91057ae
Add waitsync command
2011-06-23 12:13:51 +02:00
Miroslav Lichvar
c6e9065498
Fix current_total_tick calculation
2011-06-15 15:35:15 +02:00
Miroslav Lichvar
22fda21eae
Don't call driver read_freq in LCL_ReadAbsoluteFrequency
2011-06-15 15:35:14 +02:00
Miroslav Lichvar
103a520aa6
Create logdir before making first tracking write
2011-06-15 15:35:14 +02:00
Miroslav Lichvar
86531a51a7
Don't update drift file on first reference update
2011-06-15 15:35:14 +02:00
Miroslav Lichvar
2b7e4d645f
Don't reset kernel frequency on start without drift file
2011-06-15 15:35:00 +02:00
Miroslav Lichvar
a5f63180fc
Don't use uninitialized values
2011-06-13 18:17:33 +02:00
Miroslav Lichvar
934d4e04b5
Validate leap status in refclock samples
2011-06-13 17:03:30 +02:00
Miroslav Lichvar
1b8547059a
Set leap status by enum
2011-06-13 17:02:42 +02:00
Miroslav Lichvar
91279a0f28
Store reference IDs in uint32_t
2011-06-13 15:34:16 +02:00
Miroslav Lichvar
31ba3144c8
Don't limit refclock driver name to 4 chars
2011-06-13 13:49:46 +02:00
Miroslav Lichvar
0bf34725e3
Don't try to recover from our own time steps
2011-06-10 18:57:04 +02:00
Miroslav Lichvar
91749ebb2b
Try to handle unexpected backward time jumps
2011-06-10 18:29:41 +02:00
Miroslav Lichvar
4ba3dd66ad
Set version string in config.h
2011-06-09 14:32:22 +02:00
Miroslav Lichvar
d40696f7f3
Add .deps to .gitignore
2011-06-09 14:31:04 +02:00
Miroslav Lichvar
4a401a9e83
Make .deps order-only prerequisite
2011-06-09 13:56:45 +02:00
Miroslav Lichvar
6a2a837ede
Remove kernel version check from rtc code
...
It should work with all currently supported kernels (>= 2.2.0).
2011-06-06 21:33:59 +02:00
Miroslav Lichvar
eca08a281c
Determine hz and shift from sysconf(_SC_CLK_TCK) when available
2011-06-06 17:41:14 +02:00
Miroslav Lichvar
9fd8f76fa0
Log final version specific details
2011-06-06 17:12:31 +02:00
Miroslav Lichvar
50de930730
Drop support for old readonly adjtime
2011-06-06 17:12:31 +02:00
Miroslav Lichvar
da1097095c
Drop support for pre 2.2 Linux kernels
2011-06-06 17:12:31 +02:00