Embedded TCP/IP stack  4.7.0

◆ fnet_netif_get_by_name()

fnet_netif_desc_t fnet_netif_get_by_name ( const fnet_char_t name)

Looks for a network interface according to the specified name.

Parameters
nameThe name string of a network interface.
Maximum length of the interface name is defined by the FNET_NETIF_NAMELEN.
Returns
This function returns:
  • Network interface descriptor that matches the name parameter.
  • FNET_NULL if there is no match.
See also
fnet_netif_get_by_ip4_addr()

This function scans the global network interface list looking for a network interface matching the name parameter (for example "eth0", "loop").


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net