diff options
author | Tom Gundersen <teg@jklm.no> | 2014-08-13 22:44:35 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-08-13 22:44:41 +0200 |
commit | d3df0e3982777fd5de8cffaa585eba0af3773c08 (patch) | |
tree | 7674683f0562b84c0f0a8e275cc256d69365a9d1 /src/network/networkd-link.c | |
parent | d6731e4c7964ee2860d4f5abdb0b52acd7a66960 (diff) |
sd-network: rename operstates 'down' -> 'off' and 'up' -> 'no-carrier'
Suggested by Lennart and Kay.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 398e8baac9..908d834cd4 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1657,9 +1657,9 @@ static void link_update_operstate(Link *link) { /* no useful addresses found */ link->operstate = LINK_OPERSTATE_CARRIER; } else if (link->flags & IFF_UP) - link->operstate = LINK_OPERSTATE_UP; + link->operstate = LINK_OPERSTATE_NO_CARRIER; else - link->operstate = LINK_OPERSTATE_DOWN; + link->operstate = LINK_OPERSTATE_OFF; } int link_save(Link *link) { @@ -1793,8 +1793,8 @@ static const char* const link_state_table[_LINK_STATE_MAX] = { DEFINE_STRING_TABLE_LOOKUP(link_state, LinkState); static const char* const link_operstate_table[_LINK_OPERSTATE_MAX] = { - [LINK_OPERSTATE_DOWN] = "down", - [LINK_OPERSTATE_UP] = "up", + [LINK_OPERSTATE_OFF] = "off", + [LINK_OPERSTATE_NO_CARRIER] = "no-carrier", [LINK_OPERSTATE_DORMANT] = "dormant", [LINK_OPERSTATE_CARRIER] = "carrier", [LINK_OPERSTATE_DEGRADED] = "degraded", |