summaryrefslogtreecommitdiffstats
path: root/src/if.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-09-21 22:24:18 +0100
committerRoy Marples <roy@marples.name>2020-09-21 22:24:18 +0100
commit47e72381a26dc5622ac9fa3d8895fd340aa4ea76 (patch)
tree5ff8b540202cdab2f0c18452eb1a13a6177b1833 /src/if.c
parent42e2923e68a05eaffc67e941feb90cc37fc24d14 (diff)
downloaddhcpcd-47e72381a26dc5622ac9fa3d8895fd340aa4ea76.tar.xz
Try and track link state better, regardless of if we're using
the interface or not.
Diffstat (limited to 'src/if.c')
-rw-r--r--src/if.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/if.c b/src/if.c
index cb407e19..d3c326a9 100644
--- a/src/if.c
+++ b/src/if.c
@@ -684,10 +684,7 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
#endif
ifp->active = active;
- if (ifp->active)
- ifp->carrier = if_carrier(ifp);
- else
- ifp->carrier = LINK_UNKNOWN;
+ ifp->carrier = if_carrier(ifp);
TAILQ_INSERT_TAIL(ifs, ifp, next);
}