pub unsafe extern "C" fn otSrpServerSetLeaseConfig(
    aInstance: *mut otInstance,
    aLeaseConfig: *const otSrpServerLeaseConfig
) -> otError
Expand description

Sets SRP server LEASE and KEY-LEASE configurations.

When a non-zero LEASE time is requested from a client, the granted value will be limited in range [aMinLease, aMaxLease]; and a non-zero KEY-LEASE will be granted in range [aMinKeyLease, aMaxKeyLease]. For zero LEASE or KEY-LEASE time, zero will be granted.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aLeaseConfig A pointer to an otSrpServerLeaseConfig instance.

@retval OT_ERROR_NONE Successfully set the LEASE and KEY-LEASE ranges. @retval OT_ERROR_INVALID_ARGS The LEASE or KEY-LEASE range is not valid.