Embedded TCP/IP stack  4.7.0

◆ fnet_netif_set_hw_addr()

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

Sets the hardware address of the specified network interface.

Parameters
netif_descNetwork interface descriptor.
hw_addrBuffer containing the hardware address (for the FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface type, it contains the MAC address).
hw_addr_sizeSize of the hardware address in the hw_addr (for FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface types, it equals 6).
Returns
FNET_OK if no error occurs.
FNET_ERR if an error occurs.
See also
fnet_netif_get_hw_addr()

This function sets the hardware address of the netif interface to the hw_addr value.
For FNET_NETIF_TYPE_ETHERNET and FNET_NETIF_TYPE_WIFI interface types, this hardware address is the MAC address.


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