summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-08 12:32:11 +0200
committerTom Gundersen <teg@jklm.no>2014-05-08 15:27:55 +0200
commit75adc2189bb3b4f993e50f5160c9dff3efaec0b1 (patch)
treefb82c08e5efdf7accf820b2745234cc6541458d4 /src/network
parentcd7affaeea16d3904354b810a292e594dfef25dd (diff)
networkd: link - operstate is an enum, not a bitmask
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 0f2004d717..04b2265610 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1693,7 +1693,7 @@ int link_save(Link *link) {
admin_state = link_state_to_string(link->state);
assert(admin_state);
- if (link->operstate & IF_OPER_DORMANT)
+ if (link->operstate == IF_OPER_DORMANT)
oper_state = "dormant";
else if (link_has_carrier(link->flags, link->operstate))
oper_state = "carrier";