[][src]Function openthread_sys::otIp6AddUnicastAddress

pub unsafe extern "C" fn otIp6AddUnicastAddress(
    aInstance: *mut otInstance,
    aAddress: *const otNetifAddress
) -> otError

Add a Network Interface Address to the Thread interface.

The passed-in instance @p aAddress is copied by the Thread interface. The Thread interface only supports a fixed number of externally added unicast addresses. See OPENTHREAD_CONFIG_IP6_MAX_EXT_UCAST_ADDRS.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aAddress A pointer to a Network Interface Address.

@retval OT_ERROR_NONE Successfully added (or updated) the Network Interface Address. @retval OT_ERROR_INVALID_ARGS The IP Address indicated by @p aAddress is an internal address. @retval OT_ERROR_NO_BUFS The Network Interface is already storing the maximum allowed external addresses.