diff options
author | Tom Gundersen <teg@jklm.no> | 2015-01-29 07:34:34 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-01-31 15:26:08 +0100 |
commit | 79b1f37d95f08fe7620b071eec51d2810ed077c9 (patch) | |
tree | a80e71691b9b8dd57639c5d5351a41a154dec1c7 /src/network/networkd-wait-online.h | |
parent | 233ba5c3a0f73e01fe6149fd8c377826a83c2a0a (diff) |
networkd-wait-online: allow specific devices to be ignored
In addition to the loopback device, also explicitly configured devices to be ignored.
Suggested by Charles Devereaux <systemd@guylhem.net>.
Diffstat (limited to 'src/network/networkd-wait-online.h')
-rw-r--r-- | src/network/networkd-wait-online.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/network/networkd-wait-online.h b/src/network/networkd-wait-online.h index c57f902e9e..eb78647ebd 100644 --- a/src/network/networkd-wait-online.h +++ b/src/network/networkd-wait-online.h @@ -28,11 +28,16 @@ #include "util.h" #include "hashmap.h" -typedef struct Manager { +typedef struct Manager Manager; + +#include "networkd-wait-online-link.h" + +struct Manager { Hashmap *links; Hashmap *links_by_name; char **interfaces; + char **ignore; sd_rtnl *rtnl; sd_event_source *rtnl_event_source; @@ -41,11 +46,12 @@ typedef struct Manager { sd_event_source *network_monitor_event_source; sd_event *event; -} Manager; +}; void manager_free(Manager *m); -int manager_new(Manager **ret, char **interfaces); +int manager_new(Manager **ret, char **interfaces, char **ignore); DEFINE_TRIVIAL_CLEANUP_FUNC(Manager*, manager_free); bool manager_all_configured(Manager *m); +bool manager_ignore_link(Manager *m, Link *link); |