summaryrefslogtreecommitdiff
path: root/src/systemd/sd-network.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-13 22:44:35 +0200
committerTom Gundersen <teg@jklm.no>2014-08-13 22:44:41 +0200
commitd3df0e3982777fd5de8cffaa585eba0af3773c08 (patch)
tree7674683f0562b84c0f0a8e275cc256d69365a9d1 /src/systemd/sd-network.h
parentd6731e4c7964ee2860d4f5abdb0b52acd7a66960 (diff)
downloadsystemd-d3df0e3982777fd5de8cffaa585eba0af3773c08.tar.gz
sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'
Suggested by Lennart and Kay.
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r--src/systemd/sd-network.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h
index 49034e84d0..dede7aea3d 100644
--- a/src/systemd/sd-network.h
+++ b/src/systemd/sd-network.h
@@ -78,7 +78,13 @@ int sd_network_get_ntp(char ***addr);
int sd_network_link_get_state(int ifindex, char **state);
/* Get operatinal state from ifindex.
- * Possible states: down, up, dormant, carrier, degraded, routable
+ * Possible states:
+ * off: the device is powered down
+ * no-carrier: the device is powered up, but it does not yet have a carrier
+ * dormant: the device has a carrier, but is not yet ready for normal traffic
+ * carrier: the link has a carrier
+ * degraded: the link has carrier and addresses valid on the local link configured
+ * routable: the link has carrier and routable address configured
* Possible return codes:
* -ENODATA: networkd is not aware of the link
*/