Miroslav Lichvar
206e597b04
util: use sigaction() to set signal handler
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
ceef8ad2d8
main: move signal handler setting to util.c
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
2d581a6a86
cmdmon: add debug messages for receiving/sending packets
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
82f7fa3887
util: remove INLINE_UTILITIES support
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
f88a01e8c7
remove getdate.c from repository
...
Building from repository now requires installed bison, but released
tarballs will still include a generated getdate.c.
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
ca8e03b785
include config.h in all compiled files
...
After running configure script (new config.h written), all objects
should be recompiled.
2015-07-28 11:57:57 +02:00
Miroslav Lichvar
15932c9d7b
sys: add new log message for kernel status reset after leap second
...
When a leap second is applied by the kernel, it doesn't actually clear
the STA_INS|STA_DEL bits from the status word, but the state returned
by ntp_adjtime()/adjtimex() is TIME_WAIT until the application clears
the bits.
Add "System clock status reset after leap second" log message for this
case.
2015-07-27 12:35:21 +02:00
Bryan Christianson
0fc0f906e1
util: fix rounding of negative numbers in UTI_DoubleToTimeval()
2015-07-23 14:53:00 +02:00
Miroslav Lichvar
7f58852ec0
util: fix UTI_Log2ToDouble() for maximum/minimum exponent
2015-07-23 12:04:27 +02:00
Miroslav Lichvar
85a9a53e69
configure: replace echo -n with printf
...
POSIX doesn't require echo to support -n.
2015-07-23 11:27:16 +02:00
Miroslav Lichvar
aa0c0fc401
make_release: don't package chrony.txt
2015-07-22 18:14:40 +02:00
Miroslav Lichvar
0e694e08fc
makefile: install chrony.txt in install-doc only
...
Don't install chrony.txt in make install to avoid dependency on makeinfo
since chrony.texi is prepared by configure to set the default paths in
the documentation.
2015-07-22 17:42:42 +02:00
Miroslav Lichvar
c2ddcc9f36
makefile: don't install COPYING and README
2015-07-22 17:38:00 +02:00
Miroslav Lichvar
7a7cf6a5ce
doc: update NEWS
2015-06-23 16:02:17 +02:00
Miroslav Lichvar
c2f83bd8a4
sys: fix clock stepping by integer number of seconds on Linux
...
The kernel requires in the ADJ_SETOFFSET | ADJ_NANO mode that the
timex.time.tv_usec value is smaller than 10^9 nanosecond, which wasn't
the case with a negative integer offset (e.g. inserted leap second).
2015-06-23 15:08:42 +02:00
Miroslav Lichvar
1f0e6296c6
doc: update NEWS
2015-06-22 12:54:52 +02:00
Miroslav Lichvar
ab1f01bacd
ntp: use specific reference ID when smoothing served time
...
Set refid in server/broadcast packets to 127.127.1.255 when a time
smoothing offset is applied to the timestamps. This allows the clients
and administrators to detect that the server is not serving its best
estimate of the true time.
2015-06-22 12:54:50 +02:00
Miroslav Lichvar
b9b896d8e7
ntp: remove unnecessary casting
2015-06-22 12:54:33 +02:00
Miroslav Lichvar
6be54f366c
reference: move definition of special refids to ntp.h
2015-06-22 12:54:22 +02:00
Miroslav Lichvar
802cdb3230
test: require latest clknetsim
2015-06-19 14:20:58 +02:00
Miroslav Lichvar
7e27880cb6
doc: update leapsecmode and smoothtime descriptions
2015-06-19 14:20:58 +02:00
Miroslav Lichvar
d3ad85aa43
doc: add Mac OS X to supported platforms
2015-06-18 16:35:26 +02:00
Miroslav Lichvar
59192fc695
update copyright years
2015-06-18 15:30:22 +02:00
Miroslav Lichvar
9095b80c5b
doc: refer to authhash command in password command description
2015-06-17 18:31:16 +02:00
Miroslav Lichvar
ed5b78bf09
doc: convert FAQ to AsciiDoc and update it
...
It's now in a separate file again.
2015-06-17 18:05:14 +02:00
Bryan Christianson
d6aafa3f64
sys: MacOS X driver ported from NetBSD
2015-06-15 14:40:54 +02:00
Miroslav Lichvar
8de04a808d
ntp: add debug message to print number of resolved addresses
2015-06-15 13:03:11 +02:00
Miroslav Lichvar
2a299233b3
update NEWS
2015-06-10 14:44:54 +02:00
Miroslav Lichvar
64f83c8861
cmdmon: reply with STT_INVALID on invalid option in handle_manual()
2015-06-09 17:05:45 +02:00
Miroslav Lichvar
1009fe3d9c
makefile: warn when Makefile needs to be regenerated
2015-06-09 16:43:56 +02:00
Miroslav Lichvar
ba341fe81a
sources: remove unused code in SRC_SelectSource()
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
36e8cb6530
client: add smoothtime command
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
273da62aec
cmdmon: add smoothtime command
...
This adds a command to reset or activate the time smoothing process.
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
41788184a7
client: add smoothing command
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
fb9c2c7dc8
cmdmon: add smoothing command
...
This adds a new request to get a current report on time smoothing.
2015-06-09 16:15:30 +02:00
Miroslav Lichvar
43116be122
smooth: fix resetting
2015-06-08 17:22:01 +02:00
Miroslav Lichvar
ee038d5de5
cmdmon: use SCH_GetLastEventTime() to get current time
...
It's cheaper and accurate enough.
2015-06-08 15:07:18 +02:00
Miroslav Lichvar
ea7fae5277
sched: detect timeout overflow in SCH_AddTimeoutByDelay()
...
Abort when the system time gets so close to the end of 32-bit time_t
that timeouts added by delay start to overflow. This is an addition to
the loop detector in dispatch_timeouts().
2015-06-08 14:49:52 +02:00
Miroslav Lichvar
70b108ab69
array: allow arrays larger than 4 GB
...
It's not expected we will work with such large arrays anytime soon, but
better be safe than sorry.
Also, limit the number of elements to 2^31-1 to prevent infinite loop in
the calculation of allocated elements.
2015-06-08 14:43:16 +02:00
Miroslav Lichvar
08b152d6a2
test: add 202-prefer
2015-06-08 12:33:46 +02:00
Miroslav Lichvar
83c6213c67
test: add option to override generated server directives on client
2015-06-08 12:33:34 +02:00
Miroslav Lichvar
4253075a97
sources: fix marking of non-preferred selectable sources
...
When reducing the list of selectable sources to sources with the prefer
option, sources before the first preferred source were left with the
SRC_OK status, which triggered an assertion failure in the next
selection.
2015-06-08 11:54:43 +02:00
Miroslav Lichvar
0abdc2a350
smooth: add option to smooth out only leap seconds
...
The leaponly option can be used to enable a mode where only leap seconds
are smoothed out and normal offset/frequency changes are ignored. This
is useful to make the interval in which a leap second is smoothed out
constant and allow an NTP client to use multiple leap smearing servers
safely.
2015-06-02 15:24:01 +02:00
Miroslav Lichvar
31669f343a
cmdmon: replace definitions of empty requests with null request
2015-06-01 15:00:14 +02:00
Miroslav Lichvar
438b881ab4
cmdmon: set only non-success status in command handling functions
2015-05-28 15:21:25 +02:00
Miroslav Lichvar
27863146a3
cmdmon: refactor allow/deny functions
2015-05-28 14:32:45 +02:00
Miroslav Lichvar
cd4b73612b
ntp: include message precision in peer dispersion
2015-05-28 13:49:43 +02:00
Miroslav Lichvar
3c217a9e37
util: add UTI_Log2ToDouble()
2015-05-28 12:51:54 +02:00
Miroslav Lichvar
cde3a003ea
util: handle NaN in UTI_FloatHostToNetwork()
2015-05-18 15:51:32 +02:00
Miroslav Lichvar
2c35f56612
client: handle empty hostname before slash in allow/deny commands
2015-05-18 15:36:52 +02:00