Miroslav Lichvar
2c033989b6
Update comments referencing RFC 1305
2014-10-14 16:52:22 +02:00
Miroslav Lichvar
8fbfe55e92
ntp: update packet processing to NTPv4 (RFC 5905)
2014-10-14 16:52:22 +02:00
Miroslav Lichvar
740e8130dd
ntp: clamp value set by minstratum option
2014-10-13 15:10:15 +02:00
Miroslav Lichvar
5bddaf6820
sources: use correct specifier for refid in debug message
2014-10-13 15:10:15 +02:00
Miroslav Lichvar
c36230e21b
ntp: print number of bytes sent in debug message
2014-10-13 15:10:15 +02:00
Miroslav Lichvar
15d8c08eaa
ntp: enable PKTINFO on client sockets
...
This will be useful to detect synchronization loops.
2014-10-08 15:13:02 +02:00
Miroslav Lichvar
2f738d5805
util: fix sockaddr function naming
2014-10-03 10:15:18 +02:00
Miroslav Lichvar
e05b687009
client: improve sources caption
2014-09-29 11:29:51 +02:00
Miroslav Lichvar
55a22656b8
util: use common functions to convert to/from sockaddr
2014-09-26 17:54:45 +02:00
Miroslav Lichvar
2db20adc3e
client: print full date in manual list
2014-09-26 15:47:57 +02:00
Miroslav Lichvar
c7eeb57a32
ntp: fix NSR_TakeSourcesOffline()
...
This was broken when switching to dynamic allocation in commit 9e7193.
2014-09-26 15:27:08 +02:00
Miroslav Lichvar
361726b3ae
keys: store IDs in uint32_t
2014-09-26 14:14:54 +02:00
Miroslav Lichvar
c404786b92
logging: remove warning on missing debug messages
...
The state of the DEBUG feature is now printed with chronyd version.
2014-09-25 11:12:23 +02:00
Miroslav Lichvar
2ff4eca7bf
cmdmon: fix initialization of allocated reply slots
...
The next pointer in the last allocated reply slot was not set. This
could cause a crash when more slots were needed. (the slots are used to
save unacknowledged replies to authenticated commands)
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
1eca83ff22
cmdmon: allocate reply slots in smaller quantums
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
2575fa8f83
cmdmon: use char for permissions table
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
b7e86192ee
refclock: include refid in some debug messages
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
078f0f511e
util: optimize UTI_RefidToString()
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
4963b931d0
rtc: allocate samples dynamically
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
75fd327222
conf: allocate sources dynamically
...
This removes the limits on maximum number of sources specified by the
initstepslew, server and refclock directives in the config file.
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
9e71932c2e
ntp: allocate source records dynamically
...
This removes the limit on maximum number of added NTP sources.
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
d92583ed33
refclocks: allocate refclock instances dynamically
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
cd27860e55
keys: allocate keys dynamically
...
This removes the limit on maximum number of keys in the key file.
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
ba875fc04a
sched: allocate file handlers dynamically
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
b5a85bd2fe
sources: reallocate arrays in exponentially increasing sizes
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
4e0df8c2a6
ntp: improve hashing of sources
...
Use 32-bit hash and switch to quadratic probing. This will be useful to
allow resizing of the hash table and not limit the number of sources.
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
37bc30c8d9
Add array utility functions
2014-09-25 10:58:57 +02:00
Miroslav Lichvar
f6ed7844e1
Free allocated memory on exit
...
This should reduce the number of possible memory leaks reported by
valgrind. The remaining reported leaks are sched tqe allocation, async
DNS instance allocation, cmdmon response/timestamp cell allocation, and
clientlog subnet allocation.
2014-09-25 10:57:55 +02:00
Miroslav Lichvar
d466390233
cmdparse: don't duplicate hostname in CPS_ParseNTPSourceAdd()
...
Let the caller duplicate the string if needed.
2014-09-24 12:43:11 +02:00
Miroslav Lichvar
336473398a
Check for memory allocation errors
2014-09-23 15:47:02 +02:00
Miroslav Lichvar
bb16c81e7b
test: make 114-presend more tolerant
2014-09-23 15:46:27 +02:00
Miroslav Lichvar
f955b46c13
nameserv: move fallback DNS_Name2IPAddressAsync() to stubs.c
2014-09-22 13:14:16 +02:00
Miroslav Lichvar
b54711252b
configure: add --disable-sechash option
2014-09-22 13:14:16 +02:00
Miroslav Lichvar
f2710d5b55
Print enabled/disabled features with version
2014-09-22 13:14:16 +02:00
Miroslav Lichvar
285fae856d
configure: unify macro naming for optional features
2014-09-22 13:14:16 +02:00
Miroslav Lichvar
111b63bb16
configure: allow building without cmdmon, NTP, refclock support
2014-09-22 13:14:11 +02:00
Miroslav Lichvar
767a8b19a9
configure: unify macro naming for available headers
2014-09-19 11:06:37 +02:00
Miroslav Lichvar
cb28d6cdb7
configure: don't remove config files with --help
2014-09-19 10:13:42 +02:00
Miroslav Lichvar
a0d5abef88
sourcestats: remove tracking of skew change
...
This is not used since commit 7a6ee1d
.
2014-09-19 10:07:03 +02:00
Miroslav Lichvar
ebab36e859
doc: update NEWS
2014-09-10 17:00:54 +02:00
Miroslav Lichvar
3988a1e9a8
doc: mention that directives are not case-sensitive
2014-09-10 17:00:54 +02:00
Miroslav Lichvar
949ef3e1dc
doc: add section to FAQ on improving accuracy with NTP
2014-09-10 17:00:54 +02:00
Miroslav Lichvar
dd12303276
doc: remove minpoll and maxpoll options from configuration example
2014-09-10 17:00:54 +02:00
Miroslav Lichvar
f1379a6574
sched: fix Clang warning
2014-09-10 17:00:50 +02:00
Miroslav Lichvar
ad58384760
client: describe error when could not open config or keyfile
2014-09-10 11:34:48 +02:00
Miroslav Lichvar
0e786f5907
Ignore measurements around leap second
...
When current time is within 5 seconds of a leap second, don't accumulate
new samples or update the leap second status to increase the chances of
getting through safely.
2014-09-09 17:08:30 +02:00
Miroslav Lichvar
e1accce498
ntp: print warning 10 years before supported time ends
2014-09-09 17:08:30 +02:00
Miroslav Lichvar
28db0fdde9
configure: check if pkg-config is available
...
This is needed with some shells to prevent "pkg-config: not found"
errors from being displayed.
2014-09-09 17:08:26 +02:00
Miroslav Lichvar
584bf9382b
Fix compiler warnings on NetBSD
2014-09-09 11:48:09 +02:00
Miroslav Lichvar
0168b405a3
examples: add NetworkManager dispatcher script
2014-09-04 17:43:27 +02:00