chiark / gitweb /
networkd: link - operstate is an enum, not a bitmask
authorTom Gundersen <teg@jklm.no>
Thu, 8 May 2014 10:32:11 +0000 (12:32 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 8 May 2014 13:27:55 +0000 (15:27 +0200)
src/network/networkd-link.c

index 0f2004d..04b2265 100644 (file)
@@ -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";