/* This function is the ethernet packet send function. It calls etharp_output after checking link status. */
err_t lpc_etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
/* This function is the ethernet packet send function. It calls etharp_output after checking link status. */
err_t lpc_etharp_output(struct netif *netif, struct pbuf *q, ip_addr_t *ipaddr)
{
    if (netif->flags & NETIF_FLAG_LINK_UP)
        return etharp_output(netif, q, ipaddr);
    return ERR_CONN;
}