cmdmon: add onoffline command

The onoffline command tells chronyd to switch all sources to the online
or offline status according to the current network configuration. A
source is considered online if it is possible to send requests to it,
i.e. a route to the network is present.
This commit is contained in:
Miroslav Lichvar
2018-05-24 16:56:56 +02:00
parent 8b9021bf34
commit 34db671b57
5 changed files with 40 additions and 2 deletions

View File

@@ -100,7 +100,8 @@
#define REQ_ADD_SERVER3 60
#define REQ_ADD_PEER3 61
#define REQ_SHUTDOWN 62
#define N_REQUEST_TYPES 63
#define REQ_ONOFFLINE 63
#define N_REQUEST_TYPES 64
/* Structure used to exchange timespecs independent of time_t size */
typedef struct {