/openthread-3.6.0/src/core/config/ |
D | openthread-core-config-check.h | 47 #error \ 52 #error "OPENTHREAD_CONFIG_MAX_TX_ATTEMPTS_DIRECT was replaced by OPENTHREAD_CONFIG_MAC_MAX_FRAME_RE… 56 #error \ 61 #error "OPENTHREAD_CONFIG_MAX_SERVER_ALOCS was replaced by OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_MA… 65 #error "OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT was removed." 69 #error "OPENTHREAD_ENABLE_ANDROID_NDK was replaced by OPENTHREAD_CONFIG_ANDROID_NDK_ENABLE." 73 #error "OPENTHREAD_ENABLE_CERT_LOG was replaced by OPENTHREAD_CONFIG_REFERENCE_DEVICE_ENABLE." 77 #error "OPENTHREAD_ENABLE_MULTIPLE_INSTANCES was replaced by OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_EN… 81 #error "OPENTHREAD_CONFIG_NCP_UART_ENABLE was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE." 85 #error "OPENTHREAD_ENABLE_NCP_UART was replaced by OPENTHREAD_CONFIG_NCP_HDLC_ENABLE." [all …]
|
/openthread-3.6.0/third_party/mbedtls/repo/include/mbedtls/ |
D | check_config.h | 37 #error "mbed TLS requires a platform with 8-bit chars" 42 #error "MBEDTLS_PLATFORM_C is required on Windows" 59 #error "The NET module is not available for mbed OS - please use the network functions provided by … 64 #error "MBEDTLS_DEPRECATED_WARNING only works with GCC and Clang" 68 #error "MBEDTLS_HAVE_TIME_DATE without MBEDTLS_HAVE_TIME does not make sense" 72 #error "MBEDTLS_AESNI_C defined, but not all prerequisites" 76 #error "MBEDTLS_CTR_DRBG_C defined, but not all prerequisites" 80 #error "MBEDTLS_DHM_C defined, but not all prerequisites" 84 #error "MBEDTLS_SSL_TRUNCATED_HMAC_COMPAT defined, but not all prerequisites" 89 #error "MBEDTLS_CMAC_C defined, but not all prerequisites" [all …]
|
/openthread-3.6.0/src/ncp/ |
D | ncp_base_ftd.cpp | 64 otError error = OT_ERROR_NONE; in EncodeChildInfo() local 70 SuccessOrExit(error = mEncoder.WriteEui64(aChildInfo.mExtAddress)); in EncodeChildInfo() 71 SuccessOrExit(error = mEncoder.WriteUint16(aChildInfo.mRloc16)); in EncodeChildInfo() 72 SuccessOrExit(error = mEncoder.WriteUint32(aChildInfo.mTimeout)); in EncodeChildInfo() 73 SuccessOrExit(error = mEncoder.WriteUint32(aChildInfo.mAge)); in EncodeChildInfo() 74 SuccessOrExit(error = mEncoder.WriteUint8(aChildInfo.mNetworkDataVersion)); in EncodeChildInfo() 75 SuccessOrExit(error = mEncoder.WriteUint8(aChildInfo.mLinkQualityIn)); in EncodeChildInfo() 76 SuccessOrExit(error = mEncoder.WriteInt8(aChildInfo.mAverageRssi)); in EncodeChildInfo() 77 SuccessOrExit(error = mEncoder.WriteUint8(modeFlags)); in EncodeChildInfo() 78 SuccessOrExit(error = mEncoder.WriteInt8(aChildInfo.mLastRssi)); in EncodeChildInfo() [all …]
|
D | ncp_base_mtd.cpp | 190 otError error; in EncodeNeighborInfo() local 196 SuccessOrExit(error = mEncoder.OpenStruct()); in EncodeNeighborInfo() 198 SuccessOrExit(error = mEncoder.WriteEui64(aNeighborInfo.mExtAddress)); in EncodeNeighborInfo() 199 SuccessOrExit(error = mEncoder.WriteUint16(aNeighborInfo.mRloc16)); in EncodeNeighborInfo() 200 SuccessOrExit(error = mEncoder.WriteUint32(aNeighborInfo.mAge)); in EncodeNeighborInfo() 201 SuccessOrExit(error = mEncoder.WriteUint8(aNeighborInfo.mLinkQualityIn)); in EncodeNeighborInfo() 202 SuccessOrExit(error = mEncoder.WriteInt8(aNeighborInfo.mAverageRssi)); in EncodeNeighborInfo() 203 SuccessOrExit(error = mEncoder.WriteUint8(modeFlags)); in EncodeNeighborInfo() 204 SuccessOrExit(error = mEncoder.WriteBool(aNeighborInfo.mIsChild)); in EncodeNeighborInfo() 205 SuccessOrExit(error = mEncoder.WriteUint32(aNeighborInfo.mLinkFrameCounter)); in EncodeNeighborInfo() [all …]
|
D | ncp_base.cpp | 394 otError error = OT_ERROR_NONE; in HandleReceive() local 433 error = HandleCommand(header); in HandleReceive() 435 if (error != OT_ERROR_NONE) in HandleReceive() 437 IgnoreError(PrepareLastStatusResponse(header, ThreadErrorToSpinelStatus(error))); in HandleReceive() 546 otError error = OT_ERROR_NONE; in StreamWrite() local 559 VerifyOrExit(!mDisableStreamWrite, error = OT_ERROR_INVALID_STATE); in StreamWrite() 560 … VerifyOrExit(!mChangedPropsSet.IsPropertyFiltered(streamPropKey), error = OT_ERROR_INVALID_STATE); in StreamWrite() 566 VerifyOrExit(IsResponseQueueEmpty(), error = OT_ERROR_NO_BUFS); in StreamWrite() 568 SuccessOrExit(error = mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, streamPropKey)); in StreamWrite() 569 SuccessOrExit(error = mEncoder.WriteData(aDataPtr, static_cast<uint16_t>(aDataLen))); in StreamWrite() [all …]
|
D | ncp_base_radio.cpp | 70 otError error = OT_ERROR_FAILED; in PackRadioFrame() local 121 error = OT_ERROR_NONE; in PackRadioFrame() 124 return error; in PackRadioFrame() 261 otError error = OT_ERROR_NONE; in HandlePropertyGet() local 263 SuccessOrExit(error = mEncoder.WriteUint64(otLinkRawGetRadioTime(mInstance))); in HandlePropertyGet() 266 return error; in HandlePropertyGet() 271 otError error = OT_ERROR_NONE; in HandlePropertySet() local 273 SuccessOrExit(error = mDecoder.ReadBool(mSrcMatchEnabled[mCurCommandIid])); in HandlePropertySet() 275 error = otLinkRawSrcMatchEnable(mInstance, mSrcMatchEnabled[mCurCommandIid]); in HandlePropertySet() 278 return error; in HandlePropertySet() [all …]
|
/openthread-3.6.0/src/lib/spinel/ |
D | spinel_encoder.cpp | 51 otError error = OT_ERROR_NONE; in BeginFrame() local 57 SuccessOrExit(error = BeginFrame(Spinel::Buffer::kPriorityHigh)); in BeginFrame() 61 SuccessOrExit(error = BeginFrame(Spinel::Buffer::kPriorityLow)); in BeginFrame() 64 SuccessOrExit(error = WriteUint8(aHeader)); in BeginFrame() 65 SuccessOrExit(error = WriteUintPacked(aCommand)); in BeginFrame() 68 return error; in BeginFrame() 73 otError error = OT_ERROR_NONE; in BeginFrame() local 75 SuccessOrExit(error = BeginFrame(aHeader, aCommand)); in BeginFrame() 83 SuccessOrExit(error = SavePosition()); in BeginFrame() 84 SuccessOrExit(error = WriteUintPacked(aKey)); in BeginFrame() [all …]
|
D | spinel_decoder.cpp | 72 otError error = OT_ERROR_NONE; in ReadBool() local 75 SuccessOrExit(error = ReadUint8(byte)); in ReadBool() 88 error = OT_ERROR_PARSE; in ReadBool() 92 return error; in ReadBool() 97 otError error = OT_ERROR_NONE; in ReadUint8() local 99 VerifyOrExit(mIndex + sizeof(uint8_t) <= mEnd, error = OT_ERROR_PARSE); in ReadUint8() 104 return error; in ReadUint8() 109 otError error = OT_ERROR_NONE; in ReadInt8() local 112 SuccessOrExit(error = ReadUint8(byte)); in ReadInt8() 116 return error; in ReadInt8() [all …]
|
D | radio_spinel.cpp | 137 otError error = OT_ERROR_NONE; in Init() local 155 SuccessOrExit(error = CheckSpinelVersion()); in Init() 156 …SuccessOrExit(error = Get(SPINEL_PROP_NCP_VERSION, SPINEL_DATATYPE_UTF8_S, sVersion, sizeof(sVersi… in Init() 157 SuccessOrExit(error = Get(SPINEL_PROP_HWADDR, SPINEL_DATATYPE_EUI64_S, sIeeeEui64.m8)); in Init() 172 SuccessOrDie(error); in Init() 235 otError error = OT_ERROR_NONE; in CheckSpinelVersion() local 239 SuccessOrExit(error = in CheckSpinelVersion() 252 return error; in CheckSpinelVersion() 327 otError error = OT_ERROR_NONE; in CheckRadioCapabilities() local 330 SuccessOrExit(error = Get(SPINEL_PROP_RADIO_CAPS, SPINEL_DATATYPE_UINT_PACKED_S, &radioCaps)); in CheckRadioCapabilities() [all …]
|
/openthread-3.6.0/src/core/net/ |
D | dns_types.cpp | 53 Error error = kErrorFailed; in ResponseCodeToError() local 58 error = kErrorNone; in ResponseCodeToError() 65 error = kErrorParse; in ResponseCodeToError() 69 error = kErrorFailed; in ResponseCodeToError() 74 error = kErrorNotFound; in ResponseCodeToError() 79 error = kErrorNotImplemented; in ResponseCodeToError() 83 error = kErrorNotCapable; in ResponseCodeToError() 88 error = kErrorDuplicated; in ResponseCodeToError() 93 error = kErrorSecurity; in ResponseCodeToError() 100 return error; in ResponseCodeToError() [all …]
|
/openthread-3.6.0/src/cli/ |
D | cli_br.cpp | 58 otError error = OT_ERROR_NONE; in Process() local 62 SuccessOrExit(error = aArgs[0].ParseAsUint32(ifIndex)); in Process() 63 SuccessOrExit(error = aArgs[1].ParseAsBool(isRunning)); in Process() 64 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 65 error = otBorderRoutingInit(GetInstancePtr(), ifIndex, isRunning); in Process() 68 return error; in Process() 83 otError error = OT_ERROR_NONE; in Process() local 85 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 86 error = otBorderRoutingSetEnabled(GetInstancePtr(), true); in Process() 89 return error; in Process() [all …]
|
D | cli_udp.cpp | 85 otError error; in Process() local 100 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(sockaddr.mAddress)); in Process() 101 SuccessOrExit(error = aArgs[1].ParseAsUint16(sockaddr.mPort)); in Process() 102 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 104 error = otUdpBind(GetInstancePtr(), &mSocket, &sockaddr, netif); in Process() 107 return error; in Process() 134 otError error; in Process() local 139 …error = Interpreter::ParseToIp6Address(GetInstancePtr(), aArgs[0], sockaddr.mAddress, nat64Synthes… in Process() 146 SuccessOrExit(error = aArgs[1].ParseAsUint16(sockaddr.mPort)); in Process() 147 VerifyOrExit(aArgs[2].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() [all …]
|
D | cli_network_data.cpp | 188 otError error = OT_ERROR_NONE; in Process() local 190 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 194 return error; in Process() 199 otError error = OT_ERROR_NONE; in Process() local 230 error = OT_ERROR_INVALID_ARGS; in Process() 233 return error; in Process() 239 otError error = OT_ERROR_NONE; in Process() local 266 SuccessOrExit(error = aArgs[2].ParseAsUint8(sequenceNumber)); in Process() 298 SuccessOrExit(error = aArgs[2].ParseAsUint16(port)); in Process() 321 SuccessOrExit(error = aArgs[2].ParseAsIp6Address(address)); in Process() [all …]
|
D | cli_dataset.cpp | 400 otError error; in ParseActiveTimestamp() local 402 SuccessOrExit(error = aArgs++->ParseAsUint64(aDataset.mActiveTimestamp.mSeconds)); in ParseActiveTimestamp() 407 return error; in ParseActiveTimestamp() 432 otError error; in ParseMeshLocalPrefix() local 435 SuccessOrExit(error = aArgs++->ParseAsIp6Address(prefix)); in ParseMeshLocalPrefix() 440 return error; in ParseMeshLocalPrefix() 450 otError error = OT_ERROR_NONE; in ParseNetworkName() local 452 VerifyOrExit(!aArgs->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ParseNetworkName() 453 error = otNetworkNameFromString(&aDataset.mNetworkName, aArgs++->GetCString()); in ParseNetworkName() 456 return error; in ParseNetworkName() [all …]
|
D | cli_srp_client.cpp | 50 otError error = OT_ERROR_NONE; in CopyString() local 53 VerifyOrExit(len + 1 <= aDestSize, error = OT_ERROR_INVALID_ARGS); in CopyString() 57 return error; in CopyString() 71 otError error = OT_ERROR_NONE; in Process() local 92 SuccessOrExit(error = Interpreter::ParseEnableOrDisable(aArgs[0], enable)); in Process() 144 return error; in Process() 168 otError error = OT_ERROR_NONE; in Process() local 176 error = Interpreter::ParseEnableOrDisable(aArgs[0], mCallbackEnabled); in Process() 179 return error; in Process() 184 otError error = OT_ERROR_NONE; in Process() local [all …]
|
D | cli_commissioner.cpp | 45 otError error; in Process() local 51 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in Process() 52 SuccessOrExit(error = aArgs[1].ParseAsUint8(count)); in Process() 53 SuccessOrExit(error = aArgs[2].ParseAsUint16(period)); in Process() 54 SuccessOrExit(error = aArgs[3].ParseAsIp6Address(address)); in Process() 56 error = otCommissionerAnnounceBegin(GetInstancePtr(), mask, count, period, &address); in Process() 59 return error; in Process() 64 otError error; in Process() local 71 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in Process() 72 SuccessOrExit(error = aArgs[1].ParseAsUint8(count)); in Process() [all …]
|
D | cli_tcp.cpp | 116 otError error = OT_ERROR_NONE; in Process() local 119 VerifyOrExit(!mInitialized, error = OT_ERROR_ALREADY); in Process() 198 ExitNow(error = OT_ERROR_INVALID_ARGS); in Process() 209 SuccessOrExit(error = aArgs[1].ParseAsUint32(windowSize)); in Process() 213 error = OT_ERROR_INVALID_ARGS); in Process() 238 SuccessOrExit(error = otTcpEndpointInitialize(GetInstancePtr(), &mEndpoint, &endpointArgs)); in Process() 249 error = otTcpListenerInitialize(GetInstancePtr(), &mListener, &listenerArgs); in Process() 250 if (error != OT_ERROR_NONE) in Process() 260 return error; in Process() 274 otError error = OT_ERROR_NONE; in Process() local [all …]
|
/openthread-3.6.0/src/core/diags/ |
D | factory_diags.cpp | 92 Error error = kErrorNone; in ProcessChannel() local 95 VerifyOrExit(aArgsLength == 1, error = kErrorInvalidArgs); in ProcessChannel() 97 SuccessOrExit(error = ParseLong(aArgs[0], value)); in ProcessChannel() 98 …VerifyOrExit(value >= Radio::kChannelMin && value <= Radio::kChannelMax, error = kErrorInvalidArgs… in ProcessChannel() 103 AppendErrorResult(error, aOutput, aOutputMaxLen); in ProcessChannel() 104 return error; in ProcessChannel() 109 Error error = kErrorNone; in ProcessPower() local 112 VerifyOrExit(aArgsLength == 1, error = kErrorInvalidArgs); in ProcessPower() 114 SuccessOrExit(error = ParseLong(aArgs[0], value)); in ProcessPower() 119 AppendErrorResult(error, aOutput, aOutputMaxLen); in ProcessPower() [all …]
|
/openthread-3.6.0/src/posix/platform/ |
D | configuration.cpp | 37 #error \ 57 otError error = OT_ERROR_NONE; in SetRegion() local 63 … VerifyOrExit(GetDomain(kRegionCodeWorldWide, domain) == OT_ERROR_NONE, error = OT_ERROR_FAILED); in SetRegion() 66 SuccessOrExit(error = UpdateChannelMasks(domain)); in SetRegion() 68 SuccessOrExit(error = UpdateTargetPower(domain)); in SetRegion() 69 SuccessOrExit(error = UpdateCalibratedPower()); in SetRegion() 75 if (error == OT_ERROR_NONE) in SetRegion() 82 otThreadErrorToString(error)); in SetRegion() 85 return error; in SetRegion() 90 otError error = OT_ERROR_NOT_FOUND; in GetDomain() local [all …]
|
D | power.cpp | 38 otError error = OT_ERROR_NONE; in Set() local 41 VerifyOrExit(length <= kDomainSize, error = OT_ERROR_INVALID_ARGS); in Set() 46 return error; in Set() 51 otError error = OT_ERROR_NONE; in FromString() local 55 VerifyOrExit((str = strtok_r(aString, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 56 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelStart)); in FromString() 58 VerifyOrExit((str = strtok_r(nullptr, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 59 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(str, mChannelEnd)); in FromString() 61 VerifyOrExit((str = strtok_r(nullptr, ",", &psave)) != nullptr, error = OT_ERROR_PARSE); in FromString() 62 SuccessOrExit(error = Utils::CmdLineParser::ParseAsInt16(str, mTargetPower)); in FromString() [all …]
|
/openthread-3.6.0/src/core/crypto/ |
D | crypto_platform.cpp | 90 Error error = kErrorNone; in otPlatCryptoAesInit() local 93 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesInit() 94 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesInit() 100 return error; in otPlatCryptoAesInit() 105 Error error = kErrorNone; in otPlatCryptoAesSetKey() local 109 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesSetKey() 110 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesSetKey() 114 error = kErrorFailed); in otPlatCryptoAesSetKey() 117 return error; in otPlatCryptoAesSetKey() 122 Error error = kErrorNone; in otPlatCryptoAesEncrypt() local [all …]
|
/openthread-3.6.0/src/core/mac/ |
D | link_raw.cpp | 86 Error error = kErrorNone; in SetReceiveDone() local 92 VerifyOrExit(!Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in SetReceiveDone() 104 VerifyOrExit(!mSubMac.IsTransmittingOrScanning(), error = kErrorBusy); in SetReceiveDone() 111 SuccessOrExit(error = mSubMac.Enable()); in SetReceiveDone() 122 return error; in SetReceiveDone() 127 Error error = kErrorNone; in SetPanId() local 129 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetPanId() 134 return error; in SetPanId() 139 Error error = kErrorNone; in SetChannel() local 141 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetChannel() [all …]
|
/openthread-3.6.0/src/core/coap/ |
D | coap_message.cpp | 72 Error error; in Init() local 75 SuccessOrExit(error = GenerateRandomToken(kDefaultTokenLength)); in Init() 76 SuccessOrExit(error = AppendUriPathOptions(PathForUri(aUri))); in Init() 79 return error; in Init() 151 Error error = kErrorNone; in AppendOption() local 157 VerifyOrExit(aNumber >= GetHelpData().mOptionLast, error = kErrorInvalidArgs); in AppendOption() 167 …tic_cast<uint32_t>(GetLength()) + headerLength + aLength < kMaxHeaderLength, error = kErrorNoBufs); in AppendOption() 169 SuccessOrExit(error = AppendBytes(header, headerLength)); in AppendOption() 170 SuccessOrExit(error = AppendBytes(aValue, aLength)); in AppendOption() 177 return error; in AppendOption() [all …]
|
/openthread-3.6.0/src/core/meshcop/ |
D | border_agent.cpp | 122 Error error = kErrorNone; in SendErrorMessage() local 125 …VerifyOrExit((message = Get<Tmf::SecureAgent>().NewPriorityMessage()) != nullptr, error = kErrorNo… in SendErrorMessage() 126 SuccessOrExit(error = aForwardContext.ToHeader(*message, CoapCodeFromError(aError))); in SendErrorMessage() 127 SuccessOrExit(error = SendMessage(*message)); in SendErrorMessage() 130 FreeMessageOnError(message, error); in SendErrorMessage() 131 LogError("send error CoAP message", error); in SendErrorMessage() 136 Error error = kErrorNone; in SendErrorMessage() local 139 …VerifyOrExit((message = Get<Tmf::SecureAgent>().NewPriorityMessage()) != nullptr, error = kErrorNo… in SendErrorMessage() 155 SuccessOrExit(error = message->SetTokenFromMessage(aRequest)); in SendErrorMessage() 157 SuccessOrExit(error = SendMessage(*message)); in SendErrorMessage() [all …]
|
D | dataset_manager.cpp | 70 Error error; in Restore() local 77 SuccessOrExit(error = mLocal.Restore(dataset)); in Restore() 89 return error; in Restore() 94 Error error; in ApplyConfiguration() local 97 SuccessOrExit(error = Read(dataset)); in ApplyConfiguration() 98 SuccessOrExit(error = dataset.ApplyConfiguration(GetInstance())); in ApplyConfiguration() 101 return error; in ApplyConfiguration() 117 Error error = kErrorNone; in Save() local 127 SuccessOrExit(error = aDataset.ApplyConfiguration(GetInstance(), &isNetworkKeyUpdated)); in Save() 135 SuccessOrExit(error = mLocal.Save(aDataset)); in Save() [all …]
|