summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorMathieu Trudel-Lapierre <mathieu.tl@gmail.com>2017-11-30 12:03:50 -0500
committerLennart Poettering <lennart@poettering.net>2017-11-30 18:03:50 +0100
commitc1a3890410f043fe09af8b139eb6bfe2832089be (patch)
treea241ae07b084806bcb5d4f2b1d2bab884388c120 /src/systemd/sd-network.h
parent9d4f242a5322cd055201b8f7d127db77870b5b2e (diff)
downloadsystemd-c1a3890410f043fe09af8b139eb6bfe2832089be.tar.gz
Add a "RequiredForOnline=" Link attribute for .network files (#7347)
RequiredForOnline= denotes a link/network that does/does not require being up for systemd-networkd-wait-online to consider the system online; this makes it possible to ignore devices without modifying parameters to wait-online.
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 7f5a6bd3fa..2d48946d2a 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -95,6 +95,14 @@ int sd_network_link_get_setup_state(int ifindex, char **state);
*/
int sd_network_link_get_operational_state(int ifindex, char **state);
+/* Indicates whether the network is relevant to being online.
+ * Possible return codes:
+ * 0: the connection is not required
+ * 1: the connection is required to consider the system online
+ * <0: networkd is not aware of the link
+ */
+int sd_network_link_get_required_for_online(int ifindex);
+
/* Get path to .network file applied to link */
int sd_network_link_get_network_file(int ifindex, char **filename);