summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-06-17 08:54:44 +0200
committerTom Gundersen <teg@jklm.no>2014-06-17 09:17:07 +0200
commitbf0308cbd5362c697fe4df82b2e8b9adc743eb6c (patch)
tree05a6e0dc89abad23c5ec874b47bdd52c89a17321 /src/network/networkd-link.c
parent0bbc2c1f3b8f01eac7826dab1a3e1e073f63da8a (diff)
networkd: link - fix carrier check on new link
We were comparing against our own internal enum rather than the kernel exposed one. Found by Thomas Ritter.
Diffstat (limited to 'src/network/networkd-link.c')
-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 7c738fe81c..d81a3bf630 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1764,7 +1764,7 @@ static int link_configure(Link *link) {
*/
}
- if (link_has_carrier(link->flags, link->operstate)) {
+ if (link_has_carrier(link->flags, link->kernel_operstate)) {
r = link_acquire_conf(link);
if (r < 0)
return r;