diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-19 20:44:21 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-19 20:44:21 +0200 |
commit | e375dcde7202d5df4e29f5258e0f8c2bcea4535c (patch) | |
tree | 68b487f54d01cc0fafc6db3364620266435b1171 /src/systemd/sd-network.h | |
parent | bcb7a07e0a785bda1eed658e984ff6b4a11cba9a (diff) | |
download | systemd-e375dcde7202d5df4e29f5258e0f8c2bcea4535c.tar.gz |
networkd/sd-network: extend operational states
Expose states 'degraded' or 'routable' if a link has a site/link-local or a routable address, respectively.
Diffstat (limited to 'src/systemd/sd-network.h')
-rw-r--r-- | src/systemd/sd-network.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemd/sd-network.h b/src/systemd/sd-network.h index e42d1060e6..7d05086be6 100644 --- a/src/systemd/sd-network.h +++ b/src/systemd/sd-network.h @@ -61,14 +61,14 @@ _SD_BEGIN_DECLARATIONS; int sd_network_get_link_state(unsigned index, char **state); /* Get operatinal state from ifindex. - * Possible states: unknown, dormant, carrier + * Possible states: unknown, dormant, carrier, degraded, routable * Possible return codes: * -ENODATA: networkd is not aware of the link */ int sd_network_get_link_operational_state(unsigned index, char **state); /* Get overall opeartional state - * Possible states: unknown, dormant, carrier + * Possible states: unknown, dormant, carrier, degraded, routable * Possible return codes: * -ENODATA: networkd is not aware of any links */ |