Embedded TCP/IP stack: fnet_netif_get_hw_addr

FNET

fnet_return_t fnet_netif_get_hw_addr ( fnet_netif_desc_t  netif_desc,
fnet_uint8_t *  hw_addr,
fnet_size_t  hw_addr_size 
)

Retrieves a hardware address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
hw_addrBuffer that receives a hardware address (for FNET_NETIF_TYPE_ETHERNET and and FNET_NETIF_TYPE_WIFI interface types, it will contain the MAC address).
hw_addr_sizeSize of the hardware address in the hw_addr (for the FNET_NETIF_TYPE_ETHERNET and and FNET_NETIF_TYPE_WIFI interface types, it equals 6).
Returns
This function returns:
See also
fnet_netif_set_hw_addr()

This function reads the hardware address of the netif interface and puts it into the hw_addr buffer.
For the FNET_NETIF_TYPE_ETHERNET interface type, this hardware address is the MAC address.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net