ot::Ip6::Netif::AddExternalUnicastAddress() method
Adds an external (to OpenThread) unicast address to the network interface. For external address, the @p aAddress instance is not directly used (i.e., it can be temporary). It is copied into a local entry (allocated from an internal pool) before being added in the unicast address linked list. The maximum number of external addresses is specified by `OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS`.
Arguments
aAddress
A reference to the unicast address.
Return value
kErrorNone Successfully added (or updated) the unicast address. kErrorInvalidArgs The address indicated by @p aAddress is an internal address. kErrorNoBufs The maximum number of allowed external addresses are already added.
ot::Ip6::Netif::AddExternalUnicastAddress() calls 5 functions:
![]()
ot::Ip6::Netif::AddExternalUnicastAddress()
ot::Ip6::Netif::AddExternalUnicastAddress() reads 8 variables and writes 7 variables:
![]()
ot::Ip6::Netif::AddExternalUnicastAddress()