Lines Matching refs:carrier

590 	int carrier;  in dhcpcd_pollup()  local
592 carrier = if_carrier(ifp); /* will set ifp->flags */ in dhcpcd_pollup()
593 if (carrier == LINK_UP && !(ifp->flags & IFF_UP)) { in dhcpcd_pollup()
602 dhcpcd_handlecarrier(ifp->ctx, carrier, ifp->flags, ifp->name); in dhcpcd_pollup()
606 dhcpcd_handlecarrier(struct dhcpcd_ctx *ctx, int carrier, unsigned int flags, in dhcpcd_handlecarrier() argument
615 switch(carrier) { in dhcpcd_handlecarrier()
617 carrier = if_carrier(ifp); /* will set ifp->flags */ in dhcpcd_handlecarrier()
638 if (carrier == LINK_UNKNOWN) { in dhcpcd_handlecarrier()
641 } else if (carrier == LINK_DOWN || (ifp->flags & IFF_UP) == 0) { in dhcpcd_handlecarrier()
642 if (ifp->carrier != LINK_DOWN) { in dhcpcd_handlecarrier()
643 if (ifp->carrier == LINK_UP) in dhcpcd_handlecarrier()
646 ifp->carrier = LINK_DOWN; in dhcpcd_handlecarrier()
656 } else if (carrier == LINK_UP && ifp->flags & IFF_UP) { in dhcpcd_handlecarrier()
657 if (ifp->carrier != LINK_UP) { in dhcpcd_handlecarrier()
660 ifp->carrier = LINK_UP; in dhcpcd_handlecarrier()
748 int carrier; in dhcpcd_startinterface() local
752 switch (ifp->carrier) { in dhcpcd_startinterface()
762 if ((carrier = if_carrier(ifp)) == LINK_UNKNOWN) { in dhcpcd_startinterface()
768 dhcpcd_handlecarrier(ifp->ctx, carrier, in dhcpcd_startinterface()
859 ifp->carrier == LINK_UNKNOWN) in dhcpcd_prestartinterface()
861 int carrier; in dhcpcd_prestartinterface() local
863 if ((carrier = if_carrier(ifp)) != LINK_UNKNOWN) { in dhcpcd_prestartinterface()
864 dhcpcd_handlecarrier(ifp->ctx, carrier, in dhcpcd_prestartinterface()
935 if (ifp->options->options & DHCPCD_LINK && ifp->carrier != LINK_UNKNOWN) in run_preinit()
937 ifp->carrier == LINK_UP ? "CARRIER" : "NOCARRIER"); in run_preinit()
1919 if (ifp->carrier != LINK_DOWN) in main()