/* Return the interface index for the netif with name or NETIF_NO_INDEX if not found/on error */
u8_t netif_name_to_index(const char *name)
/* Return the interface index for the netif with name or NETIF_NO_INDEX if not found/on error */
u8_t netif_name_to_index(const char *name)
{
  struct netif *netif = netif_find(name);
  if (netif != NULL) {
    return netif_get_index(netif);
  }
  return NETIF_NO_INDEX;
}