Embedded TCP/IP stack: fnet_netif_bind_ip6_addr

FNET

fnet_return_t fnet_netif_bind_ip6_addr ( fnet_netif_desc_t  netif_desc,
const fnet_ip6_addr_t addr,
fnet_netif_ip_addr_type_t  addr_type 
)

Binds the IPv6 address to the specified network interface.

Parameters
netif_descNetwork interface descriptor.
addrThe IPv6 address for the network interface.
addr_typeThe IPv6 address type that defines the way the IPv6 address to be assigned to the interface.
Returns
This function returns:
See also
fnet_netif_unbind_ip6_addr()

This function binds the IPv6 address to the netif interface.
The addr_type parameter defines the way the IPv6 address is assigned to the interface:

  • FNET_NETIF_IP_ADDR_TYPE_AUTOCONFIGURABLE: value of the addr parameter defines the first 64bits of the bind IPv6 address. The last 64bits of the IPv6 address are overwritten with the Interface Identifier. In case of Ethernet interface, the Interface Identifier is formed from 48-bit MAC address, according to [RFC2464].
  • !FNET_NETIF_IP_ADDR_TYPE_AUTOCONFIGURABLE: value of the addr parameter defines the whole IPv6 address to be bind to the interface.

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