/openthread-latest/src/core/crypto/ |
D | crypto_platform.cpp | 93 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesInit() 94 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesInit() 109 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesSetKey() 110 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesSetKey() 113 …VerifyOrExit((mbedtls_aes_setkey_enc(context, key.GetBytes(), (key.GetLength() * kBitsPerByte)) ==… in otPlatCryptoAesSetKey() 125 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesEncrypt() 126 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesEncrypt() 129 …VerifyOrExit((mbedtls_aes_crypt_ecb(context, MBEDTLS_AES_ENCRYPT, aInput, aOutput) == 0), error = … in otPlatCryptoAesEncrypt() 140 VerifyOrExit(aContext != nullptr, error = kErrorInvalidArgs); in otPlatCryptoAesFree() 141 VerifyOrExit(aContext->mContextSize >= sizeof(mbedtls_aes_context), error = kErrorFailed); in otPlatCryptoAesFree() [all …]
|
/openthread-latest/src/core/radio/ |
D | trel_interface.cpp | 93 VerifyOrExit(!mEnabled); in Enable() 96 VerifyOrExit(mInitialized); in Enable() 109 VerifyOrExit(mEnabled); in Disable() 112 VerifyOrExit(mInitialized); in Disable() 124 VerifyOrExit(mInitialized && mEnabled); in HandleExtAddressChange() 134 VerifyOrExit(mInitialized && mEnabled); in HandleExtPanIdChange() 156 VerifyOrExit(mInitialized && mEnabled); in RegisterService() 179 VerifyOrExit(instance.IsInitialized()); in otPlatTrelHandleDiscoveredPeerInfo() 193 VerifyOrExit(mInitialized && mEnabled); in HandleDiscoveredPeerInfo() 197 VerifyOrExit(extAddress != Get<Mac::Mac>().GetExtAddress()); in HandleDiscoveredPeerInfo() [all …]
|
/openthread-latest/src/core/meshcop/ |
D | secure_transport.cpp | 146 VerifyOrExit(mState != aState); in SetState() 159 VerifyOrExit(IsStateClosed(), error = kErrorAlready); in Open() 178 VerifyOrExit(IsStateClosed(), error = kErrorInvalidState); in SetMaxConnectionAttempts() 191 VerifyOrExit(IsStateOpen(), error = kErrorInvalidState); in Connect() 209 VerifyOrExit(!IsStateClosed()); in HandleReceive() 230 VerifyOrExit((mMessageInfo.GetPeerAddr() == aMessageInfo.GetPeerAddr()) && in HandleReceive() 253 VerifyOrExit(IsStateOpen(), error = kErrorInvalidState); in Bind() 254 VerifyOrExit(!mTransportCallback.IsSet(), error = kErrorAlready); in Bind() 266 VerifyOrExit(IsStateOpen(), error = kErrorInvalidState); in Bind() 267 VerifyOrExit(!mSocket.IsBound(), error = kErrorAlready); in Bind() [all …]
|
D | dataset_updater.cpp | 72 VerifyOrExit(!Get<Mle::Mle>().IsDisabled()); in RequestUpdate() 78 VerifyOrExit(!aDataset.ContainsTlv(Tlv::kActiveTimestamp)); in RequestUpdate() 79 VerifyOrExit(!aDataset.ContainsTlv(Tlv::kPendingTimestamp)); in RequestUpdate() 81 VerifyOrExit(!IsUpdateOngoing(), error = kErrorBusy); in RequestUpdate() 83 VerifyOrExit(!aDataset.IsSubsetOf(activeDataset), error = kErrorAlready); in RequestUpdate() 112 VerifyOrExit(message != nullptr, error = kErrorNoBufs); in RequestUpdate() 128 VerifyOrExit(IsUpdateOngoing()); in CancelUpdate() 139 VerifyOrExit(IsUpdateOngoing()); in Finish() 170 VerifyOrExit(IsUpdateOngoing()); in HandleDatasetChanged()
|
D | tcat_agent.cpp | 84 VerifyOrExit(mVendorInfo != nullptr, error = kErrorFailed); in Start() 109 VerifyOrExit(aVendorInfo.IsValid(), error = kErrorInvalidArgs); in SetTcatVendorInfo() 122 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in Connected() 127 VerifyOrExit(len == sizeof(mCommissionerAuthorizationField), error = kErrorParse); in Connected() 128 …VerifyOrExit((mCommissionerAuthorizationField.mHeader & kCommissionerFlag) == 1, error = kErrorPar… in Connected() 133 VerifyOrExit(len == sizeof(mDeviceAuthorizationField), error = kErrorParse); in Connected() 134 VerifyOrExit((mDeviceAuthorizationField.mHeader & kCommissionerFlag) == 0, error = kErrorParse); in Connected() 197 VerifyOrExit(IsConnected()); in CheckCommandClassAuthorizationFlags() 198 VerifyOrExit(aCommissionerCommandClassFlags & kAccessFlag); in CheckCommandClassAuthorizationFlags() 247 VerifyOrExit((aCommissionerCommandClassFlags & kNetworkNameFlag) == 0); in CheckCommandClassAuthorizationFlags() [all …]
|
/openthread-latest/src/core/net/ |
D | dnssd.cpp | 122 VerifyOrExit(IsReady()); in RegisterService() 144 VerifyOrExit(IsReady()); in UnregisterService() 152 VerifyOrExit(aCallback != nullptr); in UnregisterService() 168 VerifyOrExit(IsReady()); in RegisterHost() 190 VerifyOrExit(IsReady()); in UnregisterHost() 198 VerifyOrExit(aCallback != nullptr); in UnregisterHost() 214 VerifyOrExit(IsReady()); in RegisterKey() 236 VerifyOrExit(IsReady()); in UnregisterKey() 244 VerifyOrExit(aCallback != nullptr); in UnregisterKey() 260 VerifyOrExit(IsReady()); in StartBrowser() [all …]
|
D | srp_server.cpp | 110 VerifyOrExit(mState == kStateDisabled, error = kErrorInvalidState); in SetAddressMode() 111 VerifyOrExit(mAddressMode != aMode); in SetAddressMode() 123 VerifyOrExit(mState == kStateDisabled, error = kErrorInvalidState); in SetAnycastModeSequenceNumber() 150 VerifyOrExit(mState == kStateDisabled); in Enable() 177 VerifyOrExit(mState != kStateDisabled); in Disable() 189 VerifyOrExit(mAutoEnable != aEnabled); in SetAutoEnableMode() 209 VerifyOrExit(aTtlConfig.IsValid(), error = kErrorInvalidArgs); in SetTtlConfig() 237 VerifyOrExit(mMaxKeyLease <= Time::MsecToSec(TimerMilli::kMaxDelay)); in IsValid() 238 VerifyOrExit(mMinLease <= mMaxLease); in IsValid() 239 VerifyOrExit(mMinKeyLease <= mMaxKeyLease); in IsValid() [all …]
|
D | dns_types.cpp | 108 VerifyOrExit(!IsEmpty()); in Matches() 117 VerifyOrExit(matches); in Matches() 121 VerifyOrExit(matches); in Matches() 153 VerifyOrExit(len < kMaxNameSize); in CompareAndSkipLabels() 155 VerifyOrExit(StringStartsWith(aNamePtr, aLabels, kStringCaseInsensitiveMatch)); in CompareAndSkipLabels() 158 VerifyOrExit(*aNamePtr == aExpectedNextChar); in CompareAndSkipLabels() 221 VerifyOrExit((0 < aLength) && (aLength <= kMaxLabelLength), error = kErrorInvalidArgs); in AppendLabel() 237 VerifyOrExit(aLabels != nullptr); in AppendMultipleLabels() 260 VerifyOrExit(index + 1 < kMaxEncodedLength, error = kErrorInvalidArgs); in AppendMultipleLabels() 407 VerifyOrExit(aNameBufferSize >= sizeof(uint8_t), error = kErrorNoBufs); in ReadName() [all …]
|
/openthread-latest/src/cli/ |
D | cli_mdns.cpp | 52 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 66 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 77 VerifyOrExit(aArgs[0].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in Process() 234 VerifyOrExit(!aArgs->IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessRegisterHost() 247 VerifyOrExit(host.mAddressesLength < kMaxAddresses, error = OT_ERROR_NO_BUFS); in ProcessRegisterHost() 254 VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS); in ProcessRegisterHost() 299 VerifyOrExit(!aArgs->IsEmpty()); in ParseServiceArgs() 306 VerifyOrExit(!aArgs->IsEmpty()); in ParseServiceArgs() 308 VerifyOrExit(len + 1 < kStringSize, error = OT_ERROR_NO_BUFS); in ParseServiceArgs() 322 VerifyOrExit(aService.mSubTypeLabelsLength < kMaxSubTypes, error = OT_ERROR_NO_BUFS); in ParseServiceArgs() [all …]
|
/openthread-latest/src/core/mac/ |
D | sub_mac.cpp | 195 VerifyOrExit(mState == kStateDisabled); in Enable() 228 VerifyOrExit(ShouldHandleTransitionToSleep()); in Sleep() 350 VerifyOrExit(mTransmitFrame.GetSecurityEnabled()); in ProcessTransmitSecurity() 351 VerifyOrExit(!mTransmitFrame.IsSecurityProcessed()); in ProcessTransmitSecurity() 360 VerifyOrExit(ShouldHandleTransmitSecurity()); in ProcessTransmitSecurity() 361 VerifyOrExit(keyIdMode == Frame::kKeyIdMode1); in ProcessTransmitSecurity() 377 VerifyOrExit(mTransmitFrame.GetTimeIeOffset() == 0); in ProcessTransmitSecurity() 423 VerifyOrExit(ShouldHandleCsmaBackOff(), BeginTransmit()); in StartCsmaBackoff() 464 VerifyOrExit(mState == kStateCsmaBackoff || mState == kStateCslTransmit); in BeginTransmit() 466 VerifyOrExit(mState == kStateCsmaBackoff); in BeginTransmit() [all …]
|
D | mac.cpp | 150 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in ActiveScan() 151 VerifyOrExit(!IsActiveScanInProgress() && !IsEnergyScanInProgress(), error = kErrorBusy); in ActiveScan() 171 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in EnergyScan() 172 VerifyOrExit(!IsActiveScanInProgress() && !IsEnergyScanInProgress(), error = kErrorBusy); in EnergyScan() 239 VerifyOrExit(aBeaconFrame != nullptr, error = kErrorInvalidArgs); in ConvertBeaconToActiveScanResult() 241 VerifyOrExit(aBeaconFrame->GetType() == Frame::kTypeBeacon, error = kErrorParse); in ConvertBeaconToActiveScanResult() 243 VerifyOrExit(address.IsExtended(), error = kErrorParse); in ConvertBeaconToActiveScanResult() 267 VerifyOrExit(IsValidUtf8String(aResult.mNetworkName.m8), error = kErrorParse); in ConvertBeaconToActiveScanResult() 282 VerifyOrExit(IsEnabled(), error = kErrorAbort); in UpdateScanChannel() 308 VerifyOrExit(mActiveScanHandler != nullptr); in ReportActiveScanResult() [all …]
|
D | mac_frame.cpp | 250 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in ValidatePsdu() 251 VerifyOrExit((index + GetFooterLength()) <= mLength, error = kErrorParse); in ValidatePsdu() 301 VerifyOrExit(IsDstPanIdPresent(), index = kInvalidIndex); in FindDstPanIdIndex() 367 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstPanId() 404 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstAddr() 464 VerifyOrExit(IsSrcPanIdPresent(), index = kInvalidIndex); in FindSrcPanIdIndex() 533 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcPanId() 545 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in SetSrcPanId() 589 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSrcAddr() 657 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetSecurityControlField() [all …]
|
D | link_raw.cpp | 92 VerifyOrExit(!Get<ThreadNetif>().IsUp(), error = kErrorInvalidState); in SetReceiveDone() 104 VerifyOrExit(!mSubMac.IsTransmittingOrScanning(), error = kErrorBusy); in SetReceiveDone() 129 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetPanId() 141 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetChannel() 152 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetExtAddress() 163 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetShortAddress() 174 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in Receive() 196 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in Transmit() 220 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in EnergyScan() 249 VerifyOrExit(IsEnabled(), error = kErrorInvalidState); in SetMacKey() [all …]
|
/openthread-latest/src/posix/ |
D | client.cpp | 93 VerifyOrExit(strstr(aBuffer, kExit) == aBuffer); in QuitOnExit() 143 VerifyOrExit((rval == -1) && (errno == EINTR), perror("write"); ret = false); in DoWrite() 166 VerifyOrExit(sSessionFd != -1, ret = -1); in ConnectSession() 175 VerifyOrExit(ret >= 0 && static_cast<size_t>(ret) < sizeof(sockname.sun_path), { in ConnectSession() 201 VerifyOrExit(rval == -1, ok = true); in ReconnectSession() 204 VerifyOrExit(errno != ENOENT); in ReconnectSession() 281 …VerifyOrExit(ConnectSession(config) != -1, perror("connect session failed"); ret = OT_EXIT_FAILURE… in main() 296 VerifyOrExit(count < sizeof(buffer), ret = OT_EXIT_INVALID_ARGUMENTS); in main() 302 VerifyOrExit(count < sizeof(buffer), ret = OT_EXIT_INVALID_ARGUMENTS); in main() 309 VerifyOrExit(DoWrite(sSessionFd, buffer, count), ret = OT_EXIT_FAILURE); in main() [all …]
|
/openthread-latest/src/core/utils/ |
D | jam_detector.cpp | 69 VerifyOrExit(!mEnabled, error = kErrorAlready); in Start() 70 VerifyOrExit(aHandler != nullptr, error = kErrorInvalidArgs); in Start() 87 VerifyOrExit(mEnabled, error = kErrorAlready); in Stop() 102 VerifyOrExit(mEnabled); in CheckState() 107 VerifyOrExit(mTimer.IsRunning()); in CheckState() 113 VerifyOrExit(!mTimer.IsRunning()); in CheckState() 137 VerifyOrExit(aWindow != 0, error = kErrorInvalidArgs); in SetWindow() 138 VerifyOrExit(aWindow <= kMaxWindow, error = kErrorInvalidArgs); in SetWindow() 151 VerifyOrExit(aBusyPeriod != 0, error = kErrorInvalidArgs); in SetBusyPeriod() 152 VerifyOrExit(aBusyPeriod <= mWindow, error = kErrorInvalidArgs); in SetBusyPeriod() [all …]
|
/openthread-latest/src/core/thread/ |
D | network_data_notifier.cpp | 84 VerifyOrExit(Get<Mle::MleRouter>().IsAttached() && !mWaitingForResponse); in SynchronizeServerData() 86 VerifyOrExit((mNextDelay == 0) || !mTimer.IsRunning()); in SynchronizeServerData() 91 VerifyOrExit(error == kErrorNotFound); in SynchronizeServerData() 97 VerifyOrExit(error == kErrorNotFound); in SynchronizeServerData() 135 VerifyOrExit(Get<Mle::MleRouter>().IsRouterOrLeader()); in RemoveStaleChildEntries() 198 VerifyOrExit(message != nullptr, error = kErrorNoBufs); in SendServerDataNotification() 301 VerifyOrExit(Get<Mle::MleRouter>().IsRouterEligible()); in IsEligibleForRouterRoleUpgradeAsBorderRouter() 306 VerifyOrExit(Get<Mle::MleRouter>().GetRouterUpgradeThreshold() != 0); in IsEligibleForRouterRoleUpgradeAsBorderRouter() 312 VerifyOrExit(Get<Local>().ContainsBorderRouterWithRloc(rloc16) && in IsEligibleForRouterRoleUpgradeAsBorderRouter() 316 VerifyOrExit((activeRouterCount >= Get<Mle::MleRouter>().GetRouterUpgradeThreshold()) && in IsEligibleForRouterRoleUpgradeAsBorderRouter() [all …]
|
D | link_metrics.cpp | 87 VerifyOrExit(info.mTypeIdCount == 0, error = kErrorInvalidArgs); in Query() 139 VerifyOrExit(mReportCallback.IsSet()); in HandleReport() 159 VerifyOrExit(!hasStatus && !hasReport, error = kErrorDrop); in HandleReport() 165 VerifyOrExit(!hasStatus, error = kErrorDrop); in HandleReport() 169 VerifyOrExit(reportTlv.IsValid(), error = kErrorParse); in HandleReport() 218 VerifyOrExit(hasStatus || hasReport); in HandleReport() 239 VerifyOrExit(aSeriesId > kQueryIdSingleProbe, error = kErrorInvalidArgs); in SendMgmtRequestForwardTrackingSeries() 272 VerifyOrExit(aMetrics == nullptr, error = kErrorInvalidArgs); in SendMgmtRequestEnhAckProbing() 311 VerifyOrExit(mMgmtResponseCallback.IsSet()); in HandleManagementResponse() 327 VerifyOrExit(!hasStatus, error = kErrorParse); in HandleManagementResponse() [all …]
|
D | mle_router.cpp | 124 VerifyOrExit(mRouterEligible && IsFullThreadDevice()); in IsRouterEligible() 127 VerifyOrExit(secPolicy.mRoutersEnabled); in IsRouterEligible() 132 VerifyOrExit(mCcmEnabled || secPolicy.mNonCcmRoutersEnabled); in IsRouterEligible() 134 VerifyOrExit(secPolicy.mNonCcmRoutersEnabled); in IsRouterEligible() 140 VerifyOrExit(!mThreadVersionCheckEnabled || in IsRouterEligible() 144 …VerifyOrExit(secPolicy.mVersionThresholdForRouting + SecurityPolicy::kVersionThresholdOffsetVersio… in IsRouterEligible() 162 VerifyOrExit(!aEligible, error = kErrorNotCapable); in SetRouterEligible() 165 VerifyOrExit(aEligible != mRouterEligible); in SetRouterEligible() 204 VerifyOrExit(IsRouterOrLeader() && !IsRouterEligible()); in HandleSecurityPolicyChanged() 206 VerifyOrExit(!mRouterRoleTransition.IsPending()); in HandleSecurityPolicyChanged() [all …]
|
D | network_data_leader_ftd.cpp | 102 VerifyOrExit(!mIsClone); in IncrementVersions() 145 VerifyOrExit(Get<BackboneRouter::Leader>().HasPrimary(), error = kErrorDrop); in AnycastLookup() 161 VerifyOrExit(aRloc16 != Mle::kInvalidRloc16, error = kErrorNoRoute); in AnycastLookup() 221 VerifyOrExit(prefixTlv != nullptr); in LookupRouteForAgentAloc() 243 VerifyOrExit(Get<Mle::Mle>().IsLeader() && !mWaitingForNetDataSync); in HandleTmf() 247 VerifyOrExit(aMessageInfo.GetPeerAddr().GetIid().IsRoutingLocator()); in HandleTmf() 262 VerifyOrExit(networkDataTlv.IsValid()); in HandleTmf() 286 VerifyOrExit(Get<Mle::Mle>().IsLeader() && !mWaitingForNetDataSync); in HandleTmf() 291 …VerifyOrExit(Tlv::Find<MeshCoP::BorderAgentLocatorTlv>(aMessage, borderAgentRloc) == kErrorNotFoun… in HandleTmf() 297 VerifyOrExit(sessionId == localSessionId); in HandleTmf() [all …]
|
/openthread-latest/src/posix/platform/ |
D | udp.cpp | 150 VerifyOrExit(rval > 0, perror("sendmsg")); in transmitPacket() 183 VerifyOrExit(rval > 0, perror("recvmsg")); in receivePacket() 226 VerifyOrExit(fd >= 0, error = OT_ERROR_FAILED); in otPlatUdpSocket() 241 VerifyOrExit(aUdpSocket->mHandle != nullptr); in otPlatUdpClose() 244 VerifyOrExit(0 == close(fd), error = OT_ERROR_FAILED); in otPlatUdpClose() 259 VerifyOrExit(aUdpSocket->mSockName.mPort != 0, error = OT_ERROR_INVALID_ARGS); in otPlatUdpBind() 270 …VerifyOrExit(0 == bind(fd, reinterpret_cast<struct sockaddr *>(&sin6), sizeof(sin6)), error = OT_E… in otPlatUdpBind() 275 …VerifyOrExit(0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVHOPLIMIT, &on, sizeof(on)), error = OT_ERR… in otPlatUdpBind() 276 …VerifyOrExit(0 == setsockopt(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)), error = OT_ERRO… in otPlatUdpBind() 300 …VerifyOrExit(setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, nullptr, 0) == 0, error = OT_ERROR_FAILED… in otPlatUdpBindToNetif() [all …]
|
/openthread-latest/src/core/backbone_router/ |
D | bbr_manager.cpp | 138 VerifyOrExit(Get<Local>().IsEnabled()); in HandleTmf() 163 VerifyOrExit(aMessage.IsConfirmablePostRequest(), error = kErrorParse); in HandleMulticastListenerRegistration() 174 VerifyOrExit(isPrimary, status = ThreadStatusTlv::kMlrBbrNotPrimary); in HandleMulticastListenerRegistration() 182 …VerifyOrExit((Get<NetworkData::Leader>().FindCommissioningSessionId(localSessionId) == kErrorNone)… in HandleMulticastListenerRegistration() 191 …VerifyOrExit(Tlv::FindTlvValueOffsetRange(aMessage, Ip6AddressesTlv::kIp6Addresses, offsetRange) =… in HandleMulticastListenerRegistration() 193 …VerifyOrExit(offsetRange.GetLength() % sizeof(Ip6::Address) == 0, status = ThreadStatusTlv::kMlrGe… in HandleMulticastListenerRegistration() 194 VerifyOrExit(offsetRange.GetLength() / sizeof(Ip6::Address) <= Ip6AddressesTlv::kMaxAddresses, in HandleMulticastListenerRegistration() 205 … VerifyOrExit(timeout < NumericLimits<uint32_t>::kMax, status = ThreadStatusTlv::kMlrNoPersistent); in HandleMulticastListenerRegistration() 294 VerifyOrExit(message != nullptr, error = kErrorNoBufs); in SendMulticastListenerRegistrationResponse() 332 VerifyOrExit(message != nullptr, error = kErrorNoBufs); in SendBackboneMulticastListenerRegistration() [all …]
|
D | bbr_local.cpp | 85 VerifyOrExit(aEnable != IsEnabled()); in SetEnabled() 106 VerifyOrExit(mState != kStateDisabled); in Reset() 135 VerifyOrExit(aConfig.mMlrTimeout >= kMinMlrTimeout && aConfig.mMlrTimeout <= kMaxMlrTimeout, in SetConfig() 140 VerifyOrExit(aConfig.mReregistrationDelay >= 1, error = kErrorInvalidArgs); in SetConfig() 143 VerifyOrExit(aConfig.mReregistrationDelay * 2 < aConfig.mMlrTimeout, error = kErrorInvalidArgs); in SetConfig() 179 VerifyOrExit(mState != kStateDisabled && Get<Mle::Mle>().IsAttached()); in AddService() 184 VerifyOrExit(!Get<BackboneRouter::Leader>().HasPrimary() || in AddService() 216 VerifyOrExit(mState != aState); in SetState() 250 VerifyOrExit(IsEnabled() && Get<Mle::MleRouter>().IsAttached()); in HandleBackboneRouterPrimaryUpdate() 294 VerifyOrExit(!Get<Mle::MleRouter>().IsRouterRoleTransitionPending()); in HandleTimeTick() [all …]
|
/openthread-latest/src/core/border_router/ |
D | infra_if.cpp | 62 VerifyOrExit(!mInitialized, error = kErrorInvalidState); in Init() 100 VerifyOrExit(mInitialized && mIsRunning, error = kErrorInvalidState); in HandledReceived() 101 VerifyOrExit(aIfIndex == mIfIndex, error = kErrorDrop); in HandledReceived() 102 VerifyOrExit(aPacket.GetBytes() != nullptr, error = kErrorInvalidArgs); in HandledReceived() 103 VerifyOrExit(aPacket.GetLength() >= sizeof(Ip6::Icmp::Header), error = kErrorParse); in HandledReceived() 131 VerifyOrExit(mInitialized && mIsRunning, error = kErrorInvalidState); in DiscoverNat64PrefixDone() 132 VerifyOrExit(aIfIndex == mIfIndex, error = kErrorInvalidArgs); in DiscoverNat64PrefixDone() 149 VerifyOrExit(mInitialized, error = kErrorInvalidState); in HandleStateChanged() 150 VerifyOrExit(aIfIndex == mIfIndex, error = kErrorInvalidArgs); in HandleStateChanged() 152 VerifyOrExit(aIsRunning != mIsRunning); in HandleStateChanged()
|
D | routing_manager.cpp | 99 …VerifyOrExit(GetState() == kStateUninitialized || GetState() == kStateDisabled, error = kErrorInva… in Init() 138 VerifyOrExit(IsInitialized(), error = kErrorInvalidState); in SetEnabled() 140 VerifyOrExit(aEnabled != mIsEnabled); in SetEnabled() 154 VerifyOrExit(IsInitialized()); in GetState() 155 VerifyOrExit(IsEnabled(), state = kStateDisabled); in GetState() 167 VerifyOrExit(IsInitialized(), error = kErrorInvalidState); in GetOmrPrefix() 179 VerifyOrExit(IsInitialized(), error = kErrorInvalidState); in GetPdOmrPrefix() 190 VerifyOrExit(IsInitialized(), error = kErrorInvalidState); in GetPdProcessedRaInfo() 202 VerifyOrExit(IsRunning(), error = kErrorInvalidState); in GetFavoredOmrPrefix() 214 VerifyOrExit(IsInitialized(), error = kErrorInvalidState); in GetOnLinkPrefix() [all …]
|
/openthread-latest/src/core/diags/ |
D | factory_diags.cpp | 94 VerifyOrExit(aArgsLength == 1, error = kErrorInvalidArgs); in ProcessChannel() 97 …VerifyOrExit(value >= Radio::kChannelMin && value <= Radio::kChannelMax, error = kErrorInvalidArgs… in ProcessChannel() 111 VerifyOrExit(aArgsLength == 1, error = kErrorInvalidArgs); in ProcessPower() 251 VerifyOrExit(aArgsLength == 1, error = kErrorInvalidArgs); 254 VerifyOrExit(size <= OT_RADIO_FRAME_MAX_SIZE, error = kErrorInvalidArgs); 255 VerifyOrExit(size >= OT_RADIO_FRAME_MIN_SIZE, error = kErrorInvalidArgs); 271 VerifyOrExit(otPlatDiagModeGet(), error = kErrorInvalidState); 282 …VerifyOrExit(value >= Radio::kChannelMin && value <= Radio::kChannelMax, error = kErrorInvalidArgs… 300 VerifyOrExit(otPlatDiagModeGet(), error = kErrorInvalidState); 328 VerifyOrExit(otPlatDiagModeGet(), error = kErrorInvalidState); [all …]
|