diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-07 15:26:47 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-08 15:28:19 +0200 |
commit | e0e5ce237b11f2d97189cd7725bf339b4b8a78de (patch) | |
tree | aa2e3cd22c8da15efa81a4ecca0b2eb46a7ff215 /src/timesync/timesyncd.h | |
parent | 3a9c5a32bec18dc1cca68af46fd1aebfad7e9fd7 (diff) |
timesyncd: only run when the system has a carrier on a network interface
As the operational state detection in sd-network is still too primitive, timesyncd
will likely try to connect a bit early, so the first attempt will fail.
Diffstat (limited to 'src/timesync/timesyncd.h')
-rw-r--r-- | src/timesync/timesyncd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/timesync/timesyncd.h b/src/timesync/timesyncd.h index 6dd1388ea8..370b966fc6 100644 --- a/src/timesync/timesyncd.h +++ b/src/timesync/timesyncd.h @@ -24,6 +24,7 @@ #include "ratelimit.h" #include "sd-event.h" #include "sd-resolve.h" +#include "sd-network.h" typedef struct Manager Manager; typedef struct ServerAddress ServerAddress; @@ -49,6 +50,10 @@ struct Manager { RateLimit ratelimit; + /* network */ + sd_event_source *network_event_source; + sd_network_monitor *network_monitor; + /* peer */ sd_resolve_query *resolve_query; sd_event_source *event_receive; |