]> git.ipfire.org Git - thirdparty/chrony.git/log
thirdparty/chrony.git
8 years agodoc: improve chrony.conf man page
Stephen Wadeley [Fri, 3 Jun 2016 07:33:34 +0000 (09:33 +0200)] 
doc: improve chrony.conf man page

- fix word order, articles, consistency, and some typos
- avoid slashes, contractions, `may`, dashes in running text
- use colons before example and code blocks
- add Oxford commas

8 years agoclient: fix compiler warnings on NetBSD
Miroslav Lichvar [Tue, 7 Jun 2016 07:34:20 +0000 (09:34 +0200)] 
client: fix compiler warnings on NetBSD

8 years agoreference: suppress orphan option in special reference modes
Miroslav Lichvar [Mon, 30 May 2016 11:59:01 +0000 (13:59 +0200)] 
reference: suppress orphan option in special reference modes

This allows a server that will become the orphan source to initialize
its time with the initstepslew directive from the current orphan source
or its clients.

8 years agodoc: improve answer in FAQ for firewall issue
Miroslav Lichvar [Mon, 23 May 2016 07:00:42 +0000 (09:00 +0200)] 
doc: improve answer in FAQ for firewall issue

8 years agoexamples: update chrony.spec
Miroslav Lichvar [Tue, 17 May 2016 15:57:33 +0000 (17:57 +0200)] 
examples: update chrony.spec

8 years agotest: extend 105-ntpauth
Miroslav Lichvar [Tue, 17 May 2016 10:55:54 +0000 (12:55 +0200)] 
test: extend 105-ntpauth

8 years agontp: fix definition of minimum and maximum MAC length
Miroslav Lichvar [Tue, 17 May 2016 10:49:52 +0000 (12:49 +0200)] 
ntp: fix definition of minimum and maximum MAC length

The NTP_*_MAC_LENGTH macros didn't include the key ID, which caused the
NTP authentication check to ignore MACs with 512-bit hashes (SHA512,
WHIRLPOOL).

This was broken since update to NTPv4.

8 years agodoc: update NEWS 2.4-pre1
Miroslav Lichvar [Mon, 16 May 2016 09:08:00 +0000 (11:08 +0200)] 
doc: update NEWS

8 years agomake_release: update for changes in documentation
Miroslav Lichvar [Fri, 13 May 2016 10:28:32 +0000 (12:28 +0200)] 
make_release: update for changes in documentation

8 years agomakefile: remove config.h and config.log in distclean
Miroslav Lichvar [Fri, 13 May 2016 10:27:51 +0000 (12:27 +0200)] 
makefile: remove config.h and config.log in distclean

8 years agoupdate copyright years
Miroslav Lichvar [Fri, 13 May 2016 11:29:10 +0000 (13:29 +0200)] 
update copyright years

8 years agodoc: update examples of configuration in isolated networks
Miroslav Lichvar [Thu, 12 May 2016 15:18:29 +0000 (17:18 +0200)] 
doc: update examples of configuration in isolated networks

8 years agodoc: fix typo in chronyc man page
Miroslav Lichvar [Thu, 12 May 2016 13:24:12 +0000 (15:24 +0200)] 
doc: fix typo in chronyc man page

8 years agodoc: update FAQ
Miroslav Lichvar [Thu, 12 May 2016 13:21:26 +0000 (15:21 +0200)] 
doc: update FAQ

8 years agontp: don't check for synchronization loop in special reference modes
Miroslav Lichvar [Thu, 12 May 2016 13:43:42 +0000 (15:43 +0200)] 
ntp: don't check for synchronization loop in special reference modes

If a special reference mode is enabled, always pass the test for
synchronization loop. This allows chronyd using the initstepslew
directive (or the -q/-Q option) to accept time from its own clients
after restart as is documented in the chrony.conf man page.

This was broken since update to NTPv4.

8 years agorefclock: avoid reallocation of refclock instances
Miroslav Lichvar [Wed, 11 May 2016 14:31:51 +0000 (16:31 +0200)] 
refclock: avoid reallocation of refclock instances

Change the array with refclock instances to store just pointers and
avoid reallocation of the instances. This fixes a bug with the SOCK
refclock, which uses the pointer to the instance in a file handler and
which was invalid when the instance was reallocated (after adding
another refclock).

The bug is from commit d92583ed330f4c1f5f29fc1fc7c01d2a19d12319.

8 years agosched: fix handling of signals after finalization
Miroslav Lichvar [Fri, 15 Apr 2016 12:49:03 +0000 (14:49 +0200)] 
sched: fix handling of signals after finalization

Don't require the scheduler to be initialized in SCH_QuitProgram().
This fixes a crash when a signal is received between scheduler
finalization and chronyd exit.

8 years agosources: consider only reachable orphans for selection
Miroslav Lichvar [Wed, 13 Apr 2016 09:43:36 +0000 (11:43 +0200)] 
sources: consider only reachable orphans for selection

Ignore orphan sources that are unreachable (but still have usable stats)
to have a quick and consistent source selection between orphans.

This also fixes the "Unknown local refid in orphan mode" error appearing
when a selected orphan source is removed, as the source is marked as
unreachable and the selection runs with disabled NTP instance before the
source instance is actually removed.

8 years agodoc: fix typos in man pages
Miroslav Lichvar [Tue, 12 Apr 2016 10:31:04 +0000 (12:31 +0200)] 
doc: fix typos in man pages

8 years agodoc: improve answer in FAQ for error 501 Not authorised
Miroslav Lichvar [Tue, 12 Apr 2016 10:27:31 +0000 (12:27 +0200)] 
doc: improve answer in FAQ for error 501 Not authorised

8 years agodoc: use https in links to chrony website
Miroslav Lichvar [Tue, 12 Apr 2016 10:01:46 +0000 (12:01 +0200)] 
doc: use https in links to chrony website

8 years agoclient: initialize variables in new local command
Miroslav Lichvar [Mon, 11 Apr 2016 06:28:45 +0000 (08:28 +0200)] 
client: initialize variables in new local command

8 years agoreference: rework activation of local reference
Miroslav Lichvar [Fri, 8 Apr 2016 13:50:27 +0000 (15:50 +0200)] 
reference: rework activation of local reference

Instead of using a timer for switching the reference to the
unsynchronised state (which activates the local reference), check
if it should be active when returning the reference parameters.

8 years agoreference: return real sync status in REF_GetReferenceParams()
Miroslav Lichvar [Fri, 8 Apr 2016 14:10:02 +0000 (16:10 +0200)] 
reference: return real sync status in REF_GetReferenceParams()

If local reference is active, return normal leap, but unsynchronised
status. Update the callers of the function to work with the leap
directly and not change their behaviour.

REF_IsLocalActive() is no longer needed.

8 years agoreference: report same values in tracking command as in NTP
Miroslav Lichvar [Thu, 7 Apr 2016 15:09:01 +0000 (17:09 +0200)] 
reference: report same values in tracking command as in NTP

Use REF_GetReferenceParams() in the tracking command to simplify the
code and report the same values as what NTP clients of the server see.

When the local reference mode is active, this changes the leap status to
synchronised and reference time to one second behind current time. When
not synchronised, the root delay and root dispersion are now 1 second.

8 years agostubs: add NSR_GetLocalRefid()
Miroslav Lichvar [Fri, 8 Apr 2016 10:41:13 +0000 (12:41 +0200)] 
stubs: add NSR_GetLocalRefid()

8 years agocmdmon: extend local command to match local directive
Miroslav Lichvar [Thu, 7 Apr 2016 14:33:23 +0000 (16:33 +0200)] 
cmdmon: extend local command to match local directive

8 years agoreference: clamp local stratum set from cmdmon
Miroslav Lichvar [Fri, 8 Apr 2016 10:34:48 +0000 (12:34 +0200)] 
reference: clamp local stratum set from cmdmon

8 years agocmdparse: check if stratum in local directive is valid
Miroslav Lichvar [Wed, 6 Apr 2016 14:38:14 +0000 (16:38 +0200)] 
cmdparse: check if stratum in local directive is valid

8 years agocmdmon: remove obsolete definition
Miroslav Lichvar [Wed, 6 Apr 2016 13:56:12 +0000 (15:56 +0200)] 
cmdmon: remove obsolete definition

8 years agontp: ignore order of resolved addresses when replacing tentative source
Miroslav Lichvar [Tue, 5 Apr 2016 15:15:26 +0000 (17:15 +0200)] 
ntp: ignore order of resolved addresses when replacing tentative source

If the replaced source never had a valid reply (e.g. because it was a
bad replacement), ignore the order of addresses from the resolver to not
get stuck to a pair of addresses if the order doesn't change, or a group
of IPv4/IPv6 addresses if the resolver prefers inaccessible IP family.

8 years agontp: mark all new sources and replacements as tentative
Miroslav Lichvar [Mon, 4 Apr 2016 16:09:34 +0000 (18:09 +0200)] 
ntp: mark all new sources and replacements as tentative

8 years agodoc: update description of local directive
Miroslav Lichvar [Fri, 1 Apr 2016 16:42:43 +0000 (18:42 +0200)] 
doc: update description of local directive

8 years agontp: don't check reference timestamp in received packets
Miroslav Lichvar [Fri, 1 Apr 2016 12:24:04 +0000 (14:24 +0200)] 
ntp: don't check reference timestamp in received packets

When ntpd as an NTP server has active orphan mode, it doesn't update
its reference time and the reference timestamp may fail the NTP test
3 and 7. (https://bugs.ntp.org/show_bug.cgi?id=1098)

Remove both checks of the timestamp to allow chronyd to operate as
a client of ntpd server in the orphan mode. When ntpd is fixed and
old versions are no longer used, this may be reverted.

8 years agosources: log error when local refid is unknown in orphan mode
Miroslav Lichvar [Fri, 1 Apr 2016 07:37:49 +0000 (09:37 +0200)] 
sources: log error when local refid is unknown in orphan mode

8 years agotest: add 121-orphan
Miroslav Lichvar [Thu, 31 Mar 2016 13:57:56 +0000 (15:57 +0200)] 
test: add 121-orphan

8 years agosources: add support for orphan sources
Miroslav Lichvar [Wed, 30 Mar 2016 15:39:49 +0000 (17:39 +0200)] 
sources: add support for orphan sources

When the local reference is configured with the orphan option, NTP
sources that have stratum equal to the configured local stratum are
considered to be orphans (i.e. serving local time while not being
synchronised with real time) and are excluded from the normal source
selection. Sources with stratum larger than the local stratum are
considered to be directly on indirectly synchronised to an orphan and
are always ignored.

If no selectable source is available and all orphan sources have
reference IDs larger than the local ID, no source will be selected and
the local reference mode will be activated at some point, i.e. this host
will become an orphan. Otherwise, the orphan source with the smallest
reference ID will be selected. This ensures a group of servers polling
each other (with the same orphan configuration) which have no external
source can settle down to a state where only one server is serving its
local unsychronised time and others are synchronised to it.

8 years agoreference: add orphan mode to local reference
Miroslav Lichvar [Wed, 30 Mar 2016 15:39:14 +0000 (17:39 +0200)] 
reference: add orphan mode to local reference

Add orphan option to the local directive. It will enable an orphan mode
compatible with ntpd.

8 years agoreference: activate local reference with large root distance
Miroslav Lichvar [Wed, 30 Mar 2016 15:12:12 +0000 (17:12 +0200)] 
reference: activate local reference with large root distance

Since the update to NTPv4, when the clock is in the synchronised state
and the clock updates stop (e.g. sources become unreachable), it doesn't
switch to the unsynchronised state and the local reference is never
activate. This can be a problem for clients that rely on the server to
always have root distance below some value (e.g. chronyd's maxdistance).

Add a timer that will activate the local reference when the root
distance reaches a specified threshold. It can be configured with the
distance option in the local directive (by default 1.0 second).

8 years agoconf: rework local directive to have default stratum
Miroslav Lichvar [Wed, 30 Mar 2016 13:58:45 +0000 (15:58 +0200)] 
conf: rework local directive to have default stratum

Allow the local directive to be specified without the stratum field.
It's an option now, with default value 10. Also, move the parsing code
to cmdparse.c to make it available to the client.

8 years agontp: add function to get local reference ID
Miroslav Lichvar [Wed, 30 Mar 2016 09:02:04 +0000 (11:02 +0200)] 
ntp: add function to get local reference ID

When a valid NTP reply is received, save the local address (e.g. from
IP_PKTINFO), so the reference ID which would the source use for this
host can be calculated when needed.

8 years agosys_linux: include <termios.h> for TCGETS
Miroslav Lichvar [Tue, 29 Mar 2016 08:06:21 +0000 (10:06 +0200)] 
sys_linux: include <termios.h> for TCGETS

8 years agolocal: make maximum frequency offset configurable
Miroslav Lichvar [Tue, 22 Mar 2016 16:07:46 +0000 (17:07 +0100)] 
local: make maximum frequency offset configurable

Add maxdrift directive to set the maximum assumed drift of the clock,
which sets the maximum frequency offset chronyd is allowed to use to
to correct the drift.

8 years agosources: try to replace NTP sources with bad distance
Miroslav Lichvar [Tue, 22 Mar 2016 16:01:38 +0000 (17:01 +0100)] 
sources: try to replace NTP sources with bad distance

Similarly to unreachable sources and falsetickers, try to replace
sources with distance larger than the limit set by the maxdistance
directive with a newly resolved address of the hostname.

8 years agoclient: ignore -v option in csv mode
Miroslav Lichvar [Fri, 18 Mar 2016 13:28:53 +0000 (14:28 +0100)] 
client: ignore -v option in csv mode

8 years agoutil: fix UTI_FloatNetworkToHost() with very small exponents
Miroslav Lichvar [Thu, 17 Mar 2016 13:28:45 +0000 (14:28 +0100)] 
util: fix UTI_FloatNetworkToHost() with very small exponents

Fix conversion of floating point numbers from the cmdmon format with
very small exponents, as for instance could be in the smoothing report
when the smoothing process ends.

This was broken in commit 8e71a46173afe01e11620980a1c7c028d7fd048f.

8 years agoclient: add CSV output mode
Miroslav Lichvar [Wed, 16 Mar 2016 14:50:47 +0000 (15:50 +0100)] 
client: add CSV output mode

Add a new option (-c) to chronyc to enable printing of reports in a
column-separated values (CSV) format. IP addresses will not be resolved
to hostnames, time will be printed as number of seconds since the epoch
and values in seconds will not be converted to other units.

8 years agoclient: rework printing of reports
Miroslav Lichvar [Wed, 16 Mar 2016 11:05:42 +0000 (12:05 +0100)] 
client: rework printing of reports

Add a new printf-like function to allow printing of all fields at once
and rework all commands which print a report to use it. Add functions
for printing of headers and information fields, and formatting of IP
addresses and reference IDs.

8 years agoutil: randomize hashing of IP addresses
Miroslav Lichvar [Mon, 14 Mar 2016 17:06:56 +0000 (18:06 +0100)] 
util: randomize hashing of IP addresses

Include a random (constant) value in the hash in UTI_IPToHash() to
randomize the order in which NTP sources are stored in the hash table
and polled on start. This change also randomizes the order of clientlog
records.

8 years agotest: make 105-ntpauth more reliable
Miroslav Lichvar [Mon, 14 Mar 2016 16:42:49 +0000 (17:42 +0100)] 
test: make 105-ntpauth more reliable

8 years agomakefile: add distclean target to test/unit/Makefile
Miroslav Lichvar [Mon, 14 Mar 2016 14:51:53 +0000 (15:51 +0100)] 
makefile: add distclean target to test/unit/Makefile

8 years agomakefile: remove Makefile in doc/Makefile on distclean
Miroslav Lichvar [Mon, 14 Mar 2016 14:50:59 +0000 (15:50 +0100)] 
makefile: remove Makefile in doc/Makefile on distclean

8 years agontp: improve error messages for socket options
Miroslav Lichvar [Mon, 14 Mar 2016 14:41:05 +0000 (15:41 +0100)] 
ntp: improve error messages for socket options

8 years agocmdmon: extend initialization checks
Miroslav Lichvar [Mon, 14 Mar 2016 14:31:11 +0000 (15:31 +0100)] 
cmdmon: extend initialization checks

Move the message size checks to a separate function and check also
header size in the command request and reply to catch incompatible
changes.

8 years agorewrite assertions with very long messages
Miroslav Lichvar [Mon, 14 Mar 2016 14:15:51 +0000 (15:15 +0100)] 
rewrite assertions with very long messages

8 years agoclient: add reselectdist to help text
Miroslav Lichvar [Fri, 11 Mar 2016 14:17:39 +0000 (15:17 +0100)] 
client: add reselectdist to help text

8 years agogit: update .gitignore
Miroslav Lichvar [Fri, 11 Mar 2016 11:46:06 +0000 (12:46 +0100)] 
git: update .gitignore

8 years agodoc: convert manual from Texinfo to AsciiDoc
Miroslav Lichvar [Mon, 7 Mar 2016 09:43:52 +0000 (10:43 +0100)] 
doc: convert manual from Texinfo to AsciiDoc

Split and convert the manual into four AsciiDoc documents, a document
about installation and three documents in the manpage type for
chrony.conf, chronyd and chronyc. The minimal man pages that were
maintained separately from the manual are replaced by full man pages
generated from AsciiDoc. Info files will no longer be provided.

Some parts of the manual are rewritten, updated or trimmed. The
introduction chapter is partially merged with README. The chapter about
typical operating scenarios is included in the chrony.conf man page.

8 years agodoc: update installation instructions 2.3
Miroslav Lichvar [Tue, 16 Feb 2016 13:22:58 +0000 (14:22 +0100)] 
doc: update installation instructions

8 years agodoc: improve description of trust option
Miroslav Lichvar [Tue, 16 Feb 2016 11:45:07 +0000 (12:45 +0100)] 
doc: improve description of trust option

8 years agotest/unit: add sources unit test
Miroslav Lichvar [Mon, 15 Feb 2016 15:08:15 +0000 (16:08 +0100)] 
test/unit: add sources unit test

8 years agotest/unit: include microseconds in default random seed
Miroslav Lichvar [Mon, 15 Feb 2016 15:05:43 +0000 (16:05 +0100)] 
test/unit: include microseconds in default random seed

8 years agotest/unit: add more helper functions
Miroslav Lichvar [Mon, 15 Feb 2016 15:05:18 +0000 (16:05 +0100)] 
test/unit: add more helper functions

8 years agotest/unit: follow chrony function naming convention
Miroslav Lichvar [Mon, 15 Feb 2016 12:13:13 +0000 (13:13 +0100)] 
test/unit: follow chrony function naming convention

8 years agotest: add ntp_sources unit test
Miroslav Lichvar [Fri, 5 Feb 2016 13:46:03 +0000 (14:46 +0100)] 
test: add ntp_sources unit test

8 years agotest: add clientlog unit test
Miroslav Lichvar [Fri, 5 Feb 2016 10:52:27 +0000 (11:52 +0100)] 
test: add clientlog unit test

8 years agoaddrfilt: remove TEST code
Miroslav Lichvar [Fri, 5 Feb 2016 10:10:44 +0000 (11:10 +0100)] 
addrfilt: remove TEST code

A test of the address filter is now included in unit tests.

8 years agotest: add addrfilt unit test
Miroslav Lichvar [Fri, 5 Feb 2016 10:08:12 +0000 (11:08 +0100)] 
test: add addrfilt unit test

8 years agotest: specify files with path in source commands
Miroslav Lichvar [Fri, 5 Feb 2016 09:52:47 +0000 (10:52 +0100)] 
test: specify files with path in source commands

This should prevent sourcing of an unrelated file found in $PATH.

8 years agotest: don't download files in tests
Miroslav Lichvar [Fri, 5 Feb 2016 09:47:16 +0000 (10:47 +0100)] 
test: don't download files in tests

Remove automatic download and compilation of clknetsim. If clknetsim is
not found, skip all simulation tests, but don't fail "make check".
Also, respect the CLKNETSIM_PATH environment variable.

8 years agogit: update .gitignore
Miroslav Lichvar [Fri, 5 Feb 2016 08:53:43 +0000 (09:53 +0100)] 
git: update .gitignore

8 years agotest: add support for unit testing
Miroslav Lichvar [Fri, 5 Feb 2016 08:52:46 +0000 (09:52 +0100)] 
test: add support for unit testing

8 years agoupdate NEWS 2.3-pre1
Miroslav Lichvar [Tue, 2 Feb 2016 15:49:05 +0000 (16:49 +0100)] 
update NEWS

8 years agoupdate README
Miroslav Lichvar [Tue, 2 Feb 2016 11:05:51 +0000 (12:05 +0100)] 
update README

8 years agoupdate copyright years
Miroslav Lichvar [Mon, 1 Feb 2016 14:24:37 +0000 (15:24 +0100)] 
update copyright years

8 years agontp: optimize resizing of hash table with sources
Miroslav Lichvar [Tue, 2 Feb 2016 11:00:58 +0000 (12:00 +0100)] 
ntp: optimize resizing of hash table with sources

8 years agosys_generic: use privops for settimeofday()
Miroslav Lichvar [Mon, 1 Feb 2016 15:51:46 +0000 (16:51 +0100)] 
sys_generic: use privops for settimeofday()

This is needed on FreeBSD and Solaris when running without root
privileges.

8 years agoclientlog: fix warning reported by static analyzer
Miroslav Lichvar [Mon, 1 Feb 2016 13:37:10 +0000 (14:37 +0100)] 
clientlog: fix warning reported by static analyzer

8 years agoclient: fix format specifiers in client report
Miroslav Lichvar [Mon, 1 Feb 2016 09:23:35 +0000 (10:23 +0100)] 
client: fix format specifiers in client report

This was missing in commit 861ac013bcc54fa7b3c92cc4b43a8e2071885907.

8 years agocmdmon: update protocol changelog
Miroslav Lichvar [Fri, 29 Jan 2016 15:50:43 +0000 (16:50 +0100)] 
cmdmon: update protocol changelog

8 years agocmdmon: define new types for CLIENT_ACCESSES_BY_INDEX command
Miroslav Lichvar [Fri, 29 Jan 2016 14:46:56 +0000 (15:46 +0100)] 
cmdmon: define new types for CLIENT_ACCESSES_BY_INDEX command

There was an incompatible change in the client access report. To avoid
bumping the protocol version drop support for the original request/reply
types and define new CLIENT_ACCESSES_BY_INDEX2 types as a newer version
of the command.

8 years agocmdmon: allow unhandled commands
Miroslav Lichvar [Fri, 29 Jan 2016 14:35:32 +0000 (15:35 +0100)] 
cmdmon: allow unhandled commands

Replace the assert() with a debug message to not crash if someone
forgets to implement a newly defined command.

8 years agocmdmon: reply to invalid commands
Miroslav Lichvar [Fri, 29 Jan 2016 14:32:47 +0000 (15:32 +0100)] 
cmdmon: reply to invalid commands

If an unknown command is received (e.g. from a future client), it should
get a reply and print an error code instead of timing out.

8 years agocmdmon: update debug messages
Miroslav Lichvar [Fri, 29 Jan 2016 14:06:43 +0000 (15:06 +0100)] 
cmdmon: update debug messages

8 years agocmdmon: use 32-bit fields in client access report
Miroslav Lichvar [Fri, 29 Jan 2016 12:46:38 +0000 (13:46 +0100)] 
cmdmon: use 32-bit fields in client access report

The clientlog record still uses 16-bit integers to count dropped
packets, but this will avoid an incompatible change in the command
reply if there will be a need to count more than 2^16 drops.

8 years agoclientlog: don't allow rate limiting with noclientlog
Miroslav Lichvar [Thu, 28 Jan 2016 13:52:34 +0000 (14:52 +0100)] 
clientlog: don't allow rate limiting with noclientlog

8 years agodoc: update description of clients command
Miroslav Lichvar [Fri, 29 Jan 2016 16:18:14 +0000 (17:18 +0100)] 
doc: update description of clients command

8 years agodoc: describe rate limiting directives
Miroslav Lichvar [Thu, 28 Jan 2016 13:23:26 +0000 (14:23 +0100)] 
doc: describe rate limiting directives

8 years agoexamples: update for recent changes
Miroslav Lichvar [Mon, 25 Jan 2016 16:55:20 +0000 (17:55 +0100)] 
examples: update for recent changes

8 years agodoc: update keyfile description
Miroslav Lichvar [Mon, 25 Jan 2016 16:24:08 +0000 (17:24 +0100)] 
doc: update keyfile description

8 years agoconf: set logchange to 1 second by default
Miroslav Lichvar [Tue, 26 Jan 2016 14:35:55 +0000 (15:35 +0100)] 
conf: set logchange to 1 second by default

logchange is now always enabled, with 1 second threshold by default.

8 years agoclient: generate key 1 by default in keygen command
Miroslav Lichvar [Mon, 25 Jan 2016 17:03:39 +0000 (18:03 +0100)] 
client: generate key 1 by default in keygen command

8 years agokeys: warn about short key only if used by source
Miroslav Lichvar [Mon, 25 Jan 2016 15:50:51 +0000 (16:50 +0100)] 
keys: warn about short key only if used by source

After restricting authentication of servers and peers to the specified
key, a short key in the key file is a security problem from the client's
point of view only if it's specified for a source.

8 years agopktlength: fix compiler warning on Mac OS X
Miroslav Lichvar [Mon, 25 Jan 2016 11:33:42 +0000 (12:33 +0100)] 
pktlength: fix compiler warning on Mac OS X

8 years agocmdmon: extend initialisation tests
Miroslav Lichvar [Tue, 19 Jan 2016 15:53:28 +0000 (16:53 +0100)] 
cmdmon: extend initialisation tests

8 years agopktlength: rework code to use tables
Miroslav Lichvar [Tue, 19 Jan 2016 15:52:52 +0000 (16:52 +0100)] 
pktlength: rework code to use tables

8 years agoclient: add serverstats command
Miroslav Lichvar [Mon, 18 Jan 2016 16:13:26 +0000 (17:13 +0100)] 
client: add serverstats command

8 years agocmdmon: add serverstats command
Miroslav Lichvar [Mon, 18 Jan 2016 16:09:36 +0000 (17:09 +0100)] 
cmdmon: add serverstats command

Add a new command to obtain a server report with the new clientlog
statistics.

8 years agoclientlog: count total number of hits and drops
Miroslav Lichvar [Mon, 18 Jan 2016 16:08:23 +0000 (17:08 +0100)] 
clientlog: count total number of hits and drops

Count total number of NTP and command hits. Count also number of log
records that were replaced when the hash table couldn't be resized due
to the memory limit.

8 years agoMerge branch '2.2-security'
Miroslav Lichvar [Wed, 20 Jan 2016 11:18:42 +0000 (12:18 +0100)] 
Merge branch '2.2-security'