Embedded TCP/IP stack
4.7.0
|
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.
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. |
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.