diff options
author | Tom Gundersen <teg@jklm.no> | 2014-06-17 08:54:44 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-06-17 09:17:07 +0200 |
commit | bf0308cbd5362c697fe4df82b2e8b9adc743eb6c (patch) | |
tree | 05a6e0dc89abad23c5ec874b47bdd52c89a17321 /src/network/networkd-link.c | |
parent | 0bbc2c1f3b8f01eac7826dab1a3e1e073f63da8a (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.c | 2 |
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; |