/* Called by a driver when its link goes down  */
void netif_set_link_down(struct netif *netif)
/* Called by a driver when its link goes down  */
void netif_set_link_down(struct netif *netif)
{
  if (netif->flags & NETIF_FLAG_LINK_UP) {
    netif->flags &= ~NETIF_FLAG_LINK_UP;
    NETIF_LINK_CALLBACK(netif);
  }
}