mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
ntp: allow online/offline state to be selected by connectability
Allow SRC_MAYBE_ONLINE to be specified for new NTP sources and connectivity setting to select between SRC_ONLINE and SRC_OFFLINE according to the result of the connect() system call, i.e. check whether the client has a route to send its requests.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
typedef enum {
|
||||
SRC_OFFLINE,
|
||||
SRC_ONLINE,
|
||||
SRC_MAYBE_ONLINE,
|
||||
} SRC_Connectivity;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user