/openthread-2.7.6/src/ncp/ |
D | ncp_base_radio.cpp | 70 SuccessOrExit(mEncoder.WriteDataWithLen(aFrame->mPsdu, aFrame->mLength)); in PackRadioFrame() 75 SuccessOrExit(mEncoder.WriteUint16(0)); in PackRadioFrame() 79 SuccessOrExit(mEncoder.WriteInt8(aFrame ? aFrame->mInfo.mRxInfo.mRssi : 0)); // RSSI in PackRadioFrame() 80 …SuccessOrExit(mEncoder.WriteInt8(-128)); // Noise Floor (Curre… in PackRadioFrame() 95 SuccessOrExit(mEncoder.WriteUint16(flags)); // Flags in PackRadioFrame() 97 SuccessOrExit(mEncoder.OpenStruct()); // PHY-data in PackRadioFrame() 98 …SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mChannel : 0)); // 802.15.4 channel (Receive ch… in PackRadioFrame() 99 SuccessOrExit(mEncoder.WriteUint8(aFrame ? aFrame->mInfo.mRxInfo.mLqi in PackRadioFrame() 102 …SuccessOrExit(mEncoder.WriteUint64(aFrame ? aFrame->mInfo.mRxInfo.mTimestamp : 0)); // The timesta… in PackRadioFrame() 103 SuccessOrExit(mEncoder.CloseStruct()); in PackRadioFrame() [all …]
|
D | ncp_base_ftd.cpp | 72 SuccessOrExit(error = mEncoder.WriteEui64(aChildInfo.mExtAddress)); in EncodeChildInfo() 73 SuccessOrExit(error = mEncoder.WriteUint16(aChildInfo.mRloc16)); in EncodeChildInfo() 74 SuccessOrExit(error = mEncoder.WriteUint32(aChildInfo.mTimeout)); in EncodeChildInfo() 75 SuccessOrExit(error = mEncoder.WriteUint32(aChildInfo.mAge)); in EncodeChildInfo() 76 SuccessOrExit(error = mEncoder.WriteUint8(aChildInfo.mNetworkDataVersion)); in EncodeChildInfo() 77 SuccessOrExit(error = mEncoder.WriteUint8(aChildInfo.mLinkQualityIn)); in EncodeChildInfo() 78 SuccessOrExit(error = mEncoder.WriteInt8(aChildInfo.mAverageRssi)); in EncodeChildInfo() 79 SuccessOrExit(error = mEncoder.WriteUint8(modeFlags)); in EncodeChildInfo() 80 SuccessOrExit(error = mEncoder.WriteInt8(aChildInfo.mLastRssi)); in EncodeChildInfo() 104 …SuccessOrExit(mEncoder.BeginFrame(SPINEL_HEADER_FLAG | SPINEL_HEADER_IID_0, SPINEL_CMD_PROP_VALUE_… in HandleParentResponseInfo() [all …]
|
D | ncp_base_mtd.cpp | 195 SuccessOrExit(error = mEncoder.OpenStruct()); in EncodeNeighborInfo() 197 SuccessOrExit(error = mEncoder.WriteEui64(aNeighborInfo.mExtAddress)); in EncodeNeighborInfo() 198 SuccessOrExit(error = mEncoder.WriteUint16(aNeighborInfo.mRloc16)); in EncodeNeighborInfo() 199 SuccessOrExit(error = mEncoder.WriteUint32(aNeighborInfo.mAge)); in EncodeNeighborInfo() 200 SuccessOrExit(error = mEncoder.WriteUint8(aNeighborInfo.mLinkQualityIn)); in EncodeNeighborInfo() 201 SuccessOrExit(error = mEncoder.WriteInt8(aNeighborInfo.mAverageRssi)); in EncodeNeighborInfo() 202 SuccessOrExit(error = mEncoder.WriteUint8(modeFlags)); in EncodeNeighborInfo() 203 SuccessOrExit(error = mEncoder.WriteBool(aNeighborInfo.mIsChild)); in EncodeNeighborInfo() 204 SuccessOrExit(error = mEncoder.WriteUint32(aNeighborInfo.mLinkFrameCounter)); in EncodeNeighborInfo() 205 SuccessOrExit(error = mEncoder.WriteUint32(aNeighborInfo.mMleFrameCounter)); in EncodeNeighborInfo() [all …]
|
D | ncp_base.cpp | 365 SuccessOrExit(mDecoder.ReadUint8(header)); in HandleReceive() 440 SuccessOrExit(SendQueuedResponses()); in HandleFrameRemovedFromNcpBuffer() 450 … SuccessOrExit(WritePropertyValueIsFrame(mHostPowerStateHeader, SPINEL_PROP_HOST_POWER_STATE)); in HandleFrameRemovedFromNcpBuffer() 465 SuccessOrExit(SendQueuedDatagramMessages()); in HandleFrameRemovedFromNcpBuffer() 515 SuccessOrExit(error = mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, streamPropKey)); in StreamWrite() 516 SuccessOrExit(error = mEncoder.WriteData(aDataPtr, static_cast<uint16_t>(aDataLen))); in StreamWrite() 517 SuccessOrExit(error = mEncoder.EndFrame()); in StreamWrite() 680 …SuccessOrExit(error = mEncoder.BeginFrame(header, SPINEL_CMD_PROP_VALUE_IS, SPINEL_PROP_STREAM_LOG… in Log() 681 SuccessOrExit(error = mEncoder.WriteUtf8(aLogString)); in Log() 682 SuccessOrExit(error = mEncoder.WriteUint8(ConvertLogLevel(aLogLevel))); in Log() [all …]
|
/openthread-2.7.6/src/lib/spinel/ |
D | spinel_encoder.cpp | 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() 75 SuccessOrExit(error = BeginFrame(aHeader, aCommand)); in BeginFrame() 83 SuccessOrExit(error = SavePosition()); in BeginFrame() 84 SuccessOrExit(error = WriteUintPacked(aKey)); in BeginFrame() 94 SuccessOrExit(error = ResetToSaved()); in OverwriteWithLastStatusError() 95 SuccessOrExit(error = WriteUintPacked(SPINEL_PROP_LAST_STATUS)); in OverwriteWithLastStatusError() 96 SuccessOrExit(error = WriteUintPacked(aStatus)); in OverwriteWithLastStatusError() [all …]
|
/openthread-2.7.6/src/core/meshcop/ |
D | joiner_router.cpp | 142 SuccessOrExit(error = GetBorderAgentRloc(Get<ThreadNetif>(), borderAgentRloc)); in HandleUdpReceive() 146 SuccessOrExit(error = message->InitAsNonConfirmablePost(UriPath::kRelayRx)); in HandleUdpReceive() 147 SuccessOrExit(error = message->SetPayloadMarker()); in HandleUdpReceive() 149 SuccessOrExit(error = Tlv::Append<JoinerUdpPortTlv>(*message, aMessageInfo.GetPeerPort())); in HandleUdpReceive() 150 SuccessOrExit(error = Tlv::Append<JoinerIidTlv>(*message, aMessageInfo.GetPeerAddr().GetIid())); in HandleUdpReceive() 151 …SuccessOrExit(error = Tlv::Append<JoinerRouterLocatorTlv>(*message, Get<Mle::MleRouter>().GetRloc1… in HandleUdpReceive() 155 SuccessOrExit(error = message->Append(tlv)); in HandleUdpReceive() 157 SuccessOrExit(error = message->SetLength(offset + tlv.GetLength())); in HandleUdpReceive() 165 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo)); in HandleUdpReceive() 197 SuccessOrExit(error = Tlv::Find<JoinerUdpPortTlv>(aMessage, joinerPort)); in HandleRelayTransmit() [all …]
|
D | border_agent.cpp | 117 SuccessOrExit(error = aForwardContext.ToHeader(*message, CoapCodeFromError(aError))); in SendErrorMessage() 118 SuccessOrExit(error = coaps.SendMessage(*message, coaps.GetMessageInfo())); in SendErrorMessage() 147 SuccessOrExit(error = message->SetTokenFromMessage(aRequest)); in SendErrorMessage() 149 SuccessOrExit(error = coaps.SendMessage(*message, coaps.GetMessageInfo())); in SendErrorMessage() 174 SuccessOrExit(error = aResult); in HandleCoapResponse() 181 SuccessOrExit(error = Tlv::Find<StateTlv>(*aResponse, state)); in HandleCoapResponse() 187 SuccessOrExit(error = Tlv::Find<CommissionerSessionIdTlv>(*aResponse, sessionId)); in HandleCoapResponse() 198 SuccessOrExit(error = aForwardContext.ToHeader(*message, aResponse->GetCode())); in HandleCoapResponse() 202 SuccessOrExit(error = message->SetPayloadMarker()); in HandleCoapResponse() 205 SuccessOrExit(error = ForwardToCommissioner(*message, *aResponse)); in HandleCoapResponse() [all …]
|
D | energy_scan_client.cpp | 77 SuccessOrExit(error = message->InitAsPost(aAddress, UriPath::kEnergyScan)); in SendQuery() 78 SuccessOrExit(error = message->SetPayloadMarker()); in SendQuery() 80 SuccessOrExit( in SendQuery() 85 SuccessOrExit(error = channelMask.AppendTo(*message)); in SendQuery() 87 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendQuery() 88 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendQuery() 89 SuccessOrExit(error = Tlv::Append<MeshCoP::ScanDurationTlv>(*message, aScanDuration)); in SendQuery() 94 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo)); in SendQuery() 129 …SuccessOrExit(MeshCoP::Tlv::FindTlv(aMessage, MeshCoP::Tlv::kEnergyList, sizeof(energyList), energ… in HandleReport() 137 SuccessOrExit(Get<Tmf::Agent>().SendEmptyAck(aMessage, aMessageInfo)); in HandleReport()
|
D | announce_begin_client.cpp | 69 SuccessOrExit(error = message->InitAsPost(aAddress, UriPath::kAnnounceBegin)); in SendRequest() 70 SuccessOrExit(error = message->SetPayloadMarker()); in SendRequest() 72 SuccessOrExit( in SendRequest() 77 SuccessOrExit(error = channelMask.AppendTo(*message)); in SendRequest() 79 SuccessOrExit(error = Tlv::Append<MeshCoP::CountTlv>(*message, aCount)); in SendRequest() 80 SuccessOrExit(error = Tlv::Append<MeshCoP::PeriodTlv>(*message, aPeriod)); in SendRequest() 86 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo)); in SendRequest()
|
D | dataset_manager.cpp | 93 SuccessOrExit(error = mLocal.Restore(dataset)); in Restore() 119 SuccessOrExit(error = Read(dataset)); in ApplyConfiguration() 120 SuccessOrExit(error = dataset.ApplyConfiguration(GetInstance())); in ApplyConfiguration() 156 SuccessOrExit(error = aDataset.ApplyConfiguration(GetInstance(), &isNetworkkeyUpdated)); in Save() 185 SuccessOrExit(error = mLocal.Save(aDatasetInfo)); in Save() 196 SuccessOrExit(error = mLocal.Save(aDataset)); in Save() 207 SuccessOrExit(error = mLocal.Save(aDataset)); in SaveLocal() 256 SuccessOrExit(error = Read(dataset)); in GetChannelMask() 303 SuccessOrExit(error = in SendSet() 305 SuccessOrExit(error = message->SetPayloadMarker()); in SendSet() [all …]
|
D | meshcop_leader.cpp | 84 SuccessOrExit(Tlv::FindTlv(aMessage, commissionerId)); in HandlePetition() 105 SuccessOrExit( in HandlePetition() 131 SuccessOrExit(error = message->SetDefaultResponseHeader(aRequest)); in SendPetitionResponse() 132 SuccessOrExit(error = message->SetPayloadMarker()); in SendPetitionResponse() 134 SuccessOrExit(error = Tlv::Append<StateTlv>(*message, aState)); in SendPetitionResponse() 138 SuccessOrExit(error = mCommissionerId.AppendTo(*message)); in SendPetitionResponse() 143 SuccessOrExit(error = Tlv::Append<CommissionerSessionIdTlv>(*message, mSessionId)); in SendPetitionResponse() 146 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, aMessageInfo)); in SendPetitionResponse() 170 SuccessOrExit(Tlv::Find<StateTlv>(aMessage, state)); in HandleKeepAlive() 172 SuccessOrExit(Tlv::Find<CommissionerSessionIdTlv>(aMessage, sessionId)); in HandleKeepAlive() [all …]
|
D | commissioner.cpp | 95 SuccessOrExit(Get<Notifier>().Update(mState, aState, kEventCommissionerStateChanged)); in SetState() 310 SuccessOrExit(error = Get<Coap::CoapSecure>().Start(SendRelayTransmit, this)); in Start() 318 SuccessOrExit(error = SendPetition()); in Start() 460 SuccessOrExit(error = joiner->mPskd.SetFrom(aPskd)); in AddJoiner() 697 SuccessOrExit(error = message->InitAsConfirmablePost(UriPath::kCommissionerGet)); in SendMgmtCommissionerGetRequest() 701 SuccessOrExit(error = message->SetPayloadMarker()); in SendMgmtCommissionerGetRequest() 708 SuccessOrExit(error = message->Append(tlv)); in SendMgmtCommissionerGetRequest() 709 SuccessOrExit(error = message->AppendBytes(aTlvs, aLength)); in SendMgmtCommissionerGetRequest() 713 SuccessOrExit(error = Get<Mle::MleRouter>().GetLeaderAloc(messageInfo.GetPeerAddr())); in SendMgmtCommissionerGetRequest() 715 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo, in SendMgmtCommissionerGetRequest() [all …]
|
D | panid_query_client.cpp | 74 SuccessOrExit(error = message->InitAsPost(aAddress, UriPath::kPanIdQuery)); in SendQuery() 75 SuccessOrExit(error = message->SetPayloadMarker()); in SendQuery() 77 SuccessOrExit( in SendQuery() 82 SuccessOrExit(error = channelMask.AppendTo(*message)); in SendQuery() 84 SuccessOrExit(error = Tlv::Append<MeshCoP::PanIdTlv>(*message, aPanId)); in SendQuery() 89 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo)); in SendQuery() 117 SuccessOrExit(Tlv::Find<MeshCoP::PanIdTlv>(aMessage, panId)); in HandleConflict() 126 SuccessOrExit(Get<Tmf::Agent>().SendEmptyAck(aMessage, responseInfo)); in HandleConflict()
|
/openthread-2.7.6/src/core/thread/ |
D | network_diagnostic.cpp | 87 SuccessOrExit(error = message->InitAsNonConfirmablePost(UriPath::kDiagnosticGetQuery)); in SendDiagnosticGet() 93 SuccessOrExit(error = message->InitAsConfirmablePost(UriPath::kDiagnosticGetRequest)); in SendDiagnosticGet() 98 SuccessOrExit(error = message->SetPayloadMarker()); in SendDiagnosticGet() 103 SuccessOrExit(error = Tlv::Append<TypeListTlv>(*message, aTlvTypes, aCount)); in SendDiagnosticGet() 118 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo, handler, this)); in SendDiagnosticGet() 143 SuccessOrExit(aResult); in HandleDiagnosticGetResponse() 177 SuccessOrExit(Get<Tmf::Agent>().SendEmptyAck(aMessage, aMessageInfo)); in HandleDiagnosticGetAnswer() 200 SuccessOrExit(error = aMessage.Append(tlv)); in AppendIp6AddressList() 204 SuccessOrExit(error = aMessage.Append(addr.GetAddress())); in AppendIp6AddressList() 236 SuccessOrExit(error = aMessage.Append(tlv)); in AppendChildTable() [all …]
|
D | lowpan.cpp | 119 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 14, 2)); in CompressSourceIid() 124 … SuccessOrExit(error = buf.Write(aIpAddr.GetIid().GetBytes(), Ip6::InterfaceIdentifier::kSize)); in CompressSourceIid() 162 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 14, 2)); in CompressDestinationIid() 167 … SuccessOrExit(error = buf.Write(aIpAddr.GetIid().GetBytes(), Ip6::InterfaceIdentifier::kSize)); in CompressDestinationIid() 196 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[15])); in CompressMulticast() 202 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[1])); in CompressMulticast() 203 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 13, 3)); in CompressMulticast() 209 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8[1])); in CompressMulticast() 210 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 11, 5)); in CompressMulticast() 220 SuccessOrExit(error = buf.Write(aIpAddr.mFields.m8 + 1, 2)); in CompressMulticast() [all …]
|
D | mle_router.cpp | 188 SuccessOrExit(error = SendLinkRequest(nullptr)); in BecomeRouter() 193 SuccessOrExit(error = SendAddressSolicit(aStatus)); in BecomeRouter() 468 SuccessOrExit(error = AppendHeader(*message, kCommandAdvertisement)); in SendAdvertisement() 469 SuccessOrExit(error = AppendSourceAddress(*message)); in SendAdvertisement() 470 SuccessOrExit(error = AppendLeaderData(*message)); in SendAdvertisement() 484 SuccessOrExit(error = AppendRoute(*message)); in SendAdvertisement() 489 SuccessOrExit(error = SendMessage(*message, destination)); in SendAdvertisement() 510 SuccessOrExit(error = AppendHeader(*message, kCommandLinkRequest)); in SendLinkRequest() 511 SuccessOrExit(error = AppendVersion(*message)); in SendLinkRequest() 520 SuccessOrExit(error = AppendTlvRequest(*message, detachedTlvs, sizeof(detachedTlvs))); in SendLinkRequest() [all …]
|
D | energy_scan_server.cpp | 80 SuccessOrExit(Tlv::Find<MeshCoP::CountTlv>(aMessage, count)); in HandleRequest() 81 SuccessOrExit(Tlv::Find<MeshCoP::PeriodTlv>(aMessage, period)); in HandleRequest() 82 SuccessOrExit(Tlv::Find<MeshCoP::ScanDurationTlv>(aMessage, scanDuration)); in HandleRequest() 99 SuccessOrExit(Get<Tmf::Agent>().SendEmptyAck(aMessage, responseInfo)); in HandleRequest() 180 SuccessOrExit(error = message->InitAsConfirmablePost(UriPath::kEnergyReport)); in SendReport() 181 SuccessOrExit(error = message->SetPayloadMarker()); in SendReport() 185 SuccessOrExit(error = channelMask.AppendTo(*message)); in SendReport() 189 SuccessOrExit(error = message->Append(energyList)); in SendReport() 190 SuccessOrExit(error = message->AppendBytes(mScanResults, mScanResultsLength)); in SendReport() 195 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, messageInfo)); in SendReport()
|
/openthread-2.7.6/src/cli/ |
D | cli_dataset.cpp | 181 SuccessOrExit(error = aArgs[1].ParseAsHexString(size, datasetTlvs.mTlvs)); in ProcessInit() 184 SuccessOrExit(error = otDatasetParseTlvs(&datasetTlvs, &sDataset)); in ProcessInit() 199 SuccessOrExit(error = otDatasetGetActive(mInterpreter.mInstance, &dataset)); in ProcessActive() 206 SuccessOrExit(error = otDatasetGetActiveTlvs(mInterpreter.mInstance, &dataset)); in ProcessActive() 223 SuccessOrExit(error = otDatasetGetPending(mInterpreter.mInstance, &dataset)); in ProcessPending() 230 SuccessOrExit(error = otDatasetGetPendingTlvs(mInterpreter.mInstance, &dataset)); in ProcessPending() 252 SuccessOrExit(error = aArgs[0].ParseAsUint64(sDataset.mActiveTimestamp)); in ProcessActiveTimestamp() 273 SuccessOrExit(error = aArgs[0].ParseAsUint16(sDataset.mChannel)); in ProcessChannel() 294 SuccessOrExit(error = aArgs[0].ParseAsUint32(sDataset.mChannelMask)); in ProcessChannelMask() 339 SuccessOrExit(error = aArgs[0].ParseAsUint32(sDataset.mDelay)); in ProcessDelay() [all …]
|
D | cli_commissioner.cpp | 65 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in ProcessAnnounce() 66 SuccessOrExit(error = aArgs[1].ParseAsUint8(count)); in ProcessAnnounce() 67 SuccessOrExit(error = aArgs[2].ParseAsUint16(period)); in ProcessAnnounce() 68 SuccessOrExit(error = aArgs[3].ParseAsIp6Address(address)); in ProcessAnnounce() 85 SuccessOrExit(error = aArgs[0].ParseAsUint32(mask)); in ProcessEnergy() 86 SuccessOrExit(error = aArgs[1].ParseAsUint8(count)); in ProcessEnergy() 87 SuccessOrExit(error = aArgs[2].ParseAsUint16(period)); in ProcessEnergy() 88 SuccessOrExit(error = aArgs[3].ParseAsUint16(scanDuration)); in ProcessEnergy() 89 SuccessOrExit(error = aArgs[4].ParseAsIp6Address(address)); in ProcessEnergy() 123 SuccessOrExit(error); in ProcessJoiner() [all …]
|
D | cli_coap.cpp | 94 SuccessOrExit(error = otCoapMessageSetToken(message, mRequestToken, mRequestTokenLength)); in CancelResourceSubscription() 95 SuccessOrExit(error = otCoapMessageAppendObserveOption(message, 1)); in CancelResourceSubscription() 96 SuccessOrExit(error = otCoapMessageAppendUriPathOptions(message, mRequestUri)); in CancelResourceSubscription() 97 SuccessOrExit(error = in CancelResourceSubscription() 186 SuccessOrExit(error = aArgs[1].ParseAsUint32(mBlockCount)); in ProcessResource() 241 …SuccessOrExit(error = otCoapMessageSetToken(notificationMessage, mSubscriberToken, mSubscriberToke… in ProcessSet() 242 … SuccessOrExit(error = otCoapMessageAppendObserveOption(notificationMessage, mObserveSerial++)); in ProcessSet() 243 SuccessOrExit(error = otCoapMessageSetPayloadMarker(notificationMessage)); in ProcessSet() 244 SuccessOrExit(error = otMessageAppend(notificationMessage, mResourceContent, in ProcessSet() 247 … SuccessOrExit(error = otCoapSendRequest(mInterpreter.mInstance, notificationMessage, &messageInfo, in ProcessSet() [all …]
|
D | cli_udp.cpp | 83 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(sockaddr.mAddress)); in ProcessBind() 84 SuccessOrExit(error = aArgs[1].ParseAsUint16(sockaddr.mPort)); in ProcessBind() 98 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(sockaddr.mAddress)); in ProcessConnect() 99 SuccessOrExit(error = aArgs[1].ParseAsUint16(sockaddr.mPort)); in ProcessConnect() 146 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(messageInfo.mPeerAddr)); in ProcessSend() 147 SuccessOrExit(error = aArgs[1].ParseAsUint16(messageInfo.mPeerPort)); in ProcessSend() 160 SuccessOrExit(error = aArgs[1].ParseAsUint16(payloadLength)); in ProcessSend() 161 SuccessOrExit(error = PrepareAutoGeneratedPayload(*message, payloadLength)); in ProcessSend() 168 SuccessOrExit(error = PrepareHexStringPaylod(*message, aArgs[1].GetCString())); in ProcessSend() 180 … SuccessOrExit(error = otMessageAppend(message, aArgs[0].GetCString(), aArgs[0].GetLength())); in ProcessSend() [all …]
|
D | cli.cpp | 289 SuccessOrExit(error = Utils::CmdLineParser::ParseAsUint8(separator + 1, aDiscerner.mLength)); in ParseJoinerDiscerner() 421 SuccessOrExit(error = otBorderRoutingSetEnabled(mInstance, enable)); in ProcessBorderRouting() 427 SuccessOrExit(error = otBorderRoutingGetOmrPrefix(mInstance, &omrPrefix)); in ProcessBorderRouting() 435 SuccessOrExit(error = otBorderRoutingGetOnLinkPrefix(mInstance, &onLinkPrefix)); in ProcessBorderRouting() 488 SuccessOrExit(error = aArgs[2].ParseAsUint8(status)); in ProcessBackboneRouter() 492 SuccessOrExit(error = aArgs[3].ParseAsHexString(iid.mFields.m8)); in ProcessBackboneRouter() 509 SuccessOrExit(error = ProcessBackboneRouterLocal(aArgs)); in ProcessBackboneRouter() 543 SuccessOrExit(error = aArgs[2].ParseAsIp6Address(address)); in ProcessBackboneRouterMgmtMlr() 547 SuccessOrExit(error = aArgs[3].ParseAsUint32(timeout)); in ProcessBackboneRouterMgmtMlr() 594 SuccessOrExit(error = otBackboneRouterRegister(mInstance)); in ProcessBackboneRouterLocal() [all …]
|
/openthread-2.7.6/src/core/net/ |
D | srp_client.cpp | 217 SuccessOrExit(error = mSocket.Open(Client::HandleUdpReceive, this)); in Start() 218 SuccessOrExit(error = mSocket.Connect(aServerSockAddr)); in Start() 444 SuccessOrExit(error = aService.Init()); in AddService() 495 SuccessOrExit(error = mServices.Remove(aService)); in ClearService() 662 SuccessOrExit(error = PrepareUpdateMessage(*message)); in SendUpdate() 663 SuccessOrExit(error = mSocket.SendTo(*message, Ip6::MessageInfo())); in SendUpdate() 737 SuccessOrExit(error = ReadOrGenerateKey(info.mKeyPair)); in PrepareUpdateMessage() 742 SuccessOrExit(error = header.SetRandomMessageId()); in PrepareUpdateMessage() 759 SuccessOrExit(error = aMessage.Append(header)); in PrepareUpdateMessage() 764 SuccessOrExit(error = Dns::Name::AppendName(mDomainName, aMessage)); in PrepareUpdateMessage() [all …]
|
D | dhcp6_server.cpp | 192 SuccessOrExit(aMessage.Read(aMessage.GetOffset(), header)); in HandleUdpReceive() 214 SuccessOrExit(ProcessClientIdentifier(aMessage, optionOffset, clientIdentifier)); in ProcessSolicit() 225 SuccessOrExit(ProcessElapsedTime(aMessage, optionOffset)); in ProcessSolicit() 230 SuccessOrExit(ProcessIaNa(aMessage, optionOffset, iana)); in ProcessSolicit() 232 SuccessOrExit(SendReply(aDst, aTransactionId, clientIdentifier, iana)); in ProcessSolicit() 247 SuccessOrExit(aMessage.Read(aOffset, option)); in FindOption() 264 SuccessOrExit(error = aMessage.Read(aOffset, aClientId)); in ProcessClientIdentifier() 278 SuccessOrExit(error = aMessage.Read(aOffset, option)); in ProcessElapsedTime() 290 SuccessOrExit(error = aMessage.Read(aOffset, aIaNa)); in ProcessIaNa() 302 SuccessOrExit(error = ProcessIaAddress(aMessage, optionOffset)); in ProcessIaNa() [all …]
|
/openthread-2.7.6/src/core/backbone_router/ |
D | bbr_manager.cpp | 306 SuccessOrExit(message->SetDefaultResponseHeader(aMessage)); in SendMulticastListenerRegistrationResponse() 307 SuccessOrExit(message->SetPayloadMarker()); in SendMulticastListenerRegistrationResponse() 309 SuccessOrExit(Tlv::Append<ThreadStatusTlv>(*message, aStatus)); in SendMulticastListenerRegistrationResponse() 317 SuccessOrExit(error = message->Append(addressesTlv)); in SendMulticastListenerRegistrationResponse() 321 SuccessOrExit(error = message->Append(aFailedAddresses[i])); in SendMulticastListenerRegistrationResponse() 325 SuccessOrExit(error = Get<Tmf::Agent>().SendMessage(*message, aMessageInfo)); in SendMulticastListenerRegistrationResponse() 346 SuccessOrExit(error = message->InitAsNonConfirmablePost(UriPath::kBackboneMlr)); in SendBackboneMulticastListenerRegistration() 347 SuccessOrExit(error = message->SetPayloadMarker()); in SendBackboneMulticastListenerRegistration() 351 SuccessOrExit(error = message->Append(addressesTlv)); in SendBackboneMulticastListenerRegistration() 352 SuccessOrExit(error = message->AppendBytes(aAddresses, sizeof(Ip6::Address) * aAddressNum)); in SendBackboneMulticastListenerRegistration() [all …]
|