/* This function should be passed as a parameter to netifapi_netif_add(). */
static err_t ethernetif_init(struct netif *netif)
/* This function should be passed as a parameter to netifapi_netif_add(). */
static err_t ethernetif_init(struct netif *netif)
{
    osalDbgAssert((netif != NULL), "netif != NULL");
    MIB2_INIT_NETIF(netif, snmp_ifType_ethernet_csmacd, LWIP_LINK_SPEED);
    netif->state = NULL;
    netif->name[0] = LWIP_IFNAME0;
    netif->name[1] = LWIP_IFNAME1;
    netif->output = etharp_output;
    netif->linkoutput = low_level_output;
    low_level_init(netif);
    return ERR_OK;
}