[−][src]Function openthread_sys::otThreadSetMaxChildIpAddresses
pub unsafe extern "C" fn otThreadSetMaxChildIpAddresses(
aInstance: *mut otInstance,
aMaxIpAddresses: u8
) -> otError
This function sets/restores the maximum number of IP addresses that each MTD child may register with this device as parent.
@note This API requires OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE
, and is only used by Thread Test Harness
to limit the address registrations of the reference parent in order to test the MTD DUT reaction.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMaxIpAddresses The maximum number of IP addresses that each MTD child may register with this device as parent. 0 to clear the setting and restore the default.
@retval OT_ERROR_NONE Successfully set/cleared the number. @retval OT_ERROR_INVALID_ARGS If exceeds the allowed maximum number.
@sa otThreadGetMaxChildIpAddresses