Embedded TCP/IP stack: fnet_netif_init

FNET

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

Initializes network interface and adds it to FNET stack.

Parameters
netif_descNetwork interface descriptor to be initialized (FNET_CPU_ETH0_IF,FNET_CPU_ETH1_IF).
hw_addrBuffer containing the hardware address (for the Ethernet interface, it contains the MAC address).
hw_addr_sizeSize of the hardware address in the hw_addr (for the Ethernet interface, it equals 6).
Returns
This function returns:
See also
fnet_init(), fnet_netif_release()

This function initializes network interface defined by netif_desc and adds it to the FNET stack.
FNET declares descriptors for Ethernet interfaces (FNET_CPU_ETH0_IF, FNET_CPU_ETH1_IF).

Note
Loop-back interface (if set FNET_CFG_LOOPBACK) is initialized automatically during stack initialization.

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