From: Roy Marples Date: Thu, 5 Sep 2013 13:27:52 +0000 (+0000) Subject: Fix initial carrier status X-Git-Tag: v6.1.0~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50b52a2400620a1fad492500ff4763b1a0099dc9;p=thirdparty%2Fdhcpcd.git Fix initial carrier status --- diff --git a/dhcpcd.c b/dhcpcd.c index ba5c5180..8bddb4ca 100644 --- a/dhcpcd.c +++ b/dhcpcd.c @@ -528,11 +528,11 @@ init_state(struct interface *ifp, int argc, char **argv) if (ifo->options & DHCPCD_LINK) { switch (carrier_status(ifp)) { - case 0: + case LINK_DOWN: ifp->carrier = LINK_DOWN; reason = "NOCARRIER"; break; - case 1: + case LINK_UP: ifp->carrier = LINK_UP; reason = "CARRIER"; break;