Binds the IPv6 address to the specified network interface.
- Parameters
-
netif_desc | Network interface descriptor. |
addr | The IPv6 address for the network interface. |
addr_type | The 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.