Home
last modified time | relevance | path

Searched refs:GetType (Results 1 – 25 of 75) sorted by relevance

123

/openthread-3.4.0/tests/unit/
Dtest_mac_frame.cpp60 VerifyOrExit(aFirst.GetType() == aSecond.GetType()); in CompareAddresses()
62 switch (aFirst.GetType()) in CompareAddresses()
132 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeNone); in TestMacAddress()
135 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeShort); in TestMacAddress()
141 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeExtended); in TestMacAddress()
147 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeExtended); in TestMacAddress()
154 VerifyOrQuit(addr.GetType() == Mac::Address::kTypeNone); in TestMacAddress()
322 VerifyOrQuit(frame.GetType() == Mac::Frame::kTypeData); in TestMacHeader()
537 VerifyOrQuit(frame.GetType() == Mac::Frame::kTypeAck); in TestMacFrameApi()
577 VerifyOrQuit(frame.GetType() == Mac::Frame::kTypeMacCmd); in TestMacFrameApi()
[all …]
/openthread-3.4.0/examples/platforms/utils/
Dmac_frame.cpp48 switch (dst.GetType()) in otMacFrameDoesAddrMatch()
71 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeAck; in otMacFrameIsAck()
76 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeData; in otMacFrameIsData()
81 return static_cast<const Mac::Frame *>(aFrame)->GetType() == Mac::Frame::kTypeMacCmd; in otMacFrameIsCommand()
96 switch (aInAddress.GetType()) in GetOtMacAddress()
/openthread-3.4.0/src/core/meshcop/
Ddataset_manager.hpp225 Dataset::Type GetType(void) const { return mLocal.GetType(); } in GetType() function in ot::MeshCoP::DatasetManager
342 bool IsActiveDataset(void) const { return GetType() == Dataset::kActive; } in IsActiveDataset()
343 bool IsPendingDataset(void) const { return GetType() == Dataset::kPending; } in IsPendingDataset()
Ddataset_manager_ftd.cpp71 return dataset.AppendMleDatasetTlv(GetType(), aMessage); in AppendMleDatasetTlv()
107 if (GetType() == Dataset::kPending) in HandleSet()
159 if (GetType() == Dataset::kPending && (!hasNetworkKey || !doesAffectNetworkKey)) in HandleSet()
181 …VerifyOrExit(!isUpdateFromCommissioner || GetType() == Dataset::kPending || !doesAffectConnectivit… in HandleSet()
190 if (GetType() == Dataset::kPending || !doesAffectConnectivity) in HandleSet()
200 switch (datasetTlv.GetType()) in HandleSet()
Ddataset_manager.cpp79 mTimestampValid = (dataset.GetTimestamp(GetType(), mTimestamp) == kErrorNone); in Restore()
121 if (aDataset.GetTimestamp(GetType(), mTimestamp) == kErrorNone) in Save()
216 Get<Notifier>().Signal(mLocal.GetType() == Dataset::kActive ? kEventActiveDatasetChanged in SignalDatasetChange()
280 LogInfo("Sent %s set to leader", Dataset::TypeToString(GetType())); in SendSet()
360 if (tlv.GetType() == Tlv::kGet) in HandleGet()
412 …if (cur->GetType() != Tlv::kNetworkKey || Get<KeyManager>().GetSecurityPolicy().mObtainNetworkKeyE… in SendGetResponse()
438 …LogInfo("sent %s dataset get response to %s", (GetType() == Dataset::kActive ? "active" : "pending… in SendGetResponse()
483 if (cur->GetType() == Tlv::kCommissionerSessionId) in SendSetRequest()
Ddataset.cpp190 switch (cur->GetType()) in ConvertTo()
428 Error Dataset::SetTlv(const Tlv &aTlv) { return SetTlv(aTlv.GetType(), aTlv.GetValue(), aTlv.GetLen… in SetTlv()
475 if (((aType == kActive) && (cur->GetType() == Tlv::kActiveTimestamp)) || in AppendMleDatasetTlv()
476 ((aType == kPending) && (cur->GetType() == Tlv::kPendingTimestamp))) in AppendMleDatasetTlv()
480 else if (cur->GetType() == Tlv::kDelayTimer) in AppendMleDatasetTlv()
530 switch (cur->GetType()) in ApplyConfiguration()
Ddataset_local.hpp65 Dataset::Type GetType(void) const { return mType; } in GetType() function in ot::MeshCoP::DatasetLocal
Ddataset_local.cpp202 dataset.Set(GetType(), aDataset); in Save()
321 dataset.Set(GetType(), aDataset); in EmplaceSecurelyStoredKeys()
/openthread-3.4.0/src/core/thread/
Dnetwork_data_tlvs.cpp48 if (tlv->GetType() == aType) in Find()
69 if ((tlv->GetType() == aType) && (tlv->IsStable() == aStable)) in Find()
Dnetwork_data_local.cpp159 switch (cur->GetType()) in UpdateRloc()
237 switch (cur->GetType()) in UpdateRloc()
255 switch (cur->GetType()) in UpdateRloc()
Dthread_tlvs.hpp88 Type GetType(void) const { return static_cast<Type>(ot::Tlv::GetType()); } in GetType() function in ot::ThreadTlv
Dnetwork_data.cpp167 switch (cur->GetType()) in Iterate()
195 if (cur->GetType() == NetworkDataTlv::kTypePrefix) in Iterate()
199 switch (subCur->GetType()) in Iterate()
291 if (subCur->GetType() == NetworkDataTlv::kTypeServer) in Iterate()
411 switch (cur->GetType()) in RemoveTemporaryData()
466 switch (cur->GetType()) in RemoveTemporaryDataIn()
529 switch (cur->GetType()) in RemoveTemporaryDataIn()
Dnetwork_data_leader_ftd.cpp202 type = cur->GetType(); in HandleTmf()
244 if (cur->GetType() == MeshCoP::Tlv::kCommissionerSessionId) in HandleTmf()
248 else if (cur->GetType() == MeshCoP::Tlv::kBorderAgentLocator) in HandleTmf()
324 if (cur->GetType() == type) in SendCommissioningGetResponse()
394 switch (cur->GetType()) in Validate()
455 switch (subCur->GetType()) in ValidatePrefix()
532 switch (subCur->GetType()) in ValidateService()
693 switch (cur->GetType()) in RegisterNetworkData()
734 switch (subCur->GetType()) in AddPrefix()
998 switch (cur->GetType()) in RemoveRloc()
[all …]
Dindirect_sender.cpp104 if ((aMessage.GetType() != Message::kTypeSupervision) && (aChild.GetIndirectMessageCount() > 1)) in AddMessageForSleepyChild()
218 (!aSupervisionTypeOnly || (message.GetType() == Message::kTypeSupervision))) in FindIndirectMessage()
341 switch (message->GetType()) in PrepareFrameForChild()
521 if (message->GetType() == Message::kTypeIp6) in HandleSentFrameToChild()
Dnetwork_data_publisher.hpp413 Type GetType(void) const { return mType; } in GetType() function in ot::NetworkData::Publisher::DnsSrpServiceEntry::Info
433 Type GetType(void) const { return mInfo.GetType(); } in GetType() function in ot::NetworkData::Publisher::DnsSrpServiceEntry
Dnetwork_data_publisher.cpp547 … if ((GetType() == kTypeUnicastMeshLocalEid) && aEvents.Contains(kEventThreadMeshLocalAddrChanged)) in HandleNotifierEvents()
573 switch (GetType()) in Add()
605 switch (GetType()) in Remove()
654 switch (GetType()) in Process()
735 if (GetType() == kTypeUnicast) in CountUnicastEntries()
756 … if ((GetType() == kTypeUnicastMeshLocalEid) && IsPreferred(serverSubTlv->GetServer16())) in CountUnicastEntries()
Dmesh_forwarder.cpp253 if (aMessage.GetType() == Message::kTypeIp6) in UpdateEcnOrDrop()
286 else if (aMessage.GetType() == Message::kType6lowpan) in UpdateEcnOrDrop()
422 switch (message.GetType()) in IsDirectTxQueueOverMaxFrameThreshold()
541 switch (curMessage->GetType()) in PrepareNextDirectTransmission()
727 switch (mSendMessage->GetType()) in HandleFrameRequest()
1224 if (mSendMessage->GetType() == Message::kTypeIp6) in UpdateSendMessage()
1303 switch (aFrame.GetType()) in HandleReceivedFrame()
1488 if (message.GetType() == Message::kTypeIp6) in ClearReassemblyList()
1523 if (message.GetType() == Message::kTypeIp6) in UpdateReassemblyList()
1600 if (aMessage.GetType() == Message::kTypeIp6) in HandleDatagram()
[all …]
/openthread-3.4.0/src/core/utils/
Dotns.cpp167 …EmitStatus("coap=send,%d,%d,%d,%s,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.Ge… in EmitCoapSend()
183 …EmitStatus("coap=recv,%d,%d,%d,%s,%s,%d", aMessage.GetMessageId(), aMessage.GetType(), aMessage.Ge… in EmitCoapReceive()
199 …EmitStatus("coap=send_error,%d,%d,%d,%s,%s,%d,%s", aMessage.GetMessageId(), aMessage.GetType(), aM… in EmitCoapSendFailure()
/openthread-3.4.0/src/core/radio/
Dtrel_packet.hpp109 Type GetType(void) const { return static_cast<Type>(mControl & kTypeMask); } in GetType() function in ot::Trel::Header
117 uint16_t GetLength(void) const { return GetSize(GetType()); } in GetLength()
Dtrel_packet.cpp79 Type type = GetType(); in ToString()
/openthread-3.4.0/src/core/net/
Ddns_dso.cpp672 if (header.GetType() == Dns::Header::kTypeQuery) in HandleReceive()
688 …VerifyOrExit(IsServer() && (header.GetType() == Dns::Header::kTypeQuery) && (header.GetMessageId()… in HandleReceive()
701 VerifyOrExit(header.GetType() == Dns::Header::kTypeResponse); in HandleReceive()
735 switch (header.GetType()) in HandleReceive()
783 aPrimaryTlvType = tlv.GetType(); in ReadPrimaryTlv()
907 if (aHeader.GetType() == Dns::Header::kTypeResponse) in ProcessKeepAliveMessage()
937 VerifyOrExit((keepAliveTlv.GetType() == KeepAliveTlv::kType) && keepAliveTlv.IsValid()); in ProcessKeepAliveMessage()
946 … VerifyOrExit((tlv.GetType() != KeepAliveTlv::kType) && (tlv.GetType() != RetryDelayTlv::kType)); in ProcessKeepAliveMessage()
951 if (aHeader.GetType() == Dns::Header::kTypeQuery) in ProcessKeepAliveMessage()
Ddnssd_server.cpp151 VerifyOrExit(requestHeader.GetType() == Header::kTypeQuery); in HandleUdpReceive()
302 qtype = question.GetType(); in AddQuestions()
311 switch (question.GetType()) in AddQuestions()
346 switch (aQuestion.GetType()) in AppendQuestion()
722 question.GetClass(), question.GetType(), response); in ResolveBySrp()
743 name, question.GetClass(), question.GetType(), response); in ResolveBySrp()
760 uint16_t qtype = aQuestion.GetType(); in ResolveQuestionBySrp()
1203 switch (question.GetType()) in GetQueryTypeAndName()
1221 switch (question.GetType()) in GetQueryTypeAndName()
1246 if (error == kErrorNone && aQuestionType == question.GetType()) in HasQuestion()
/openthread-3.4.0/src/core/coap/
Dcoap_message.hpp272 …uint8_t GetType(void) const { return (GetHelpData().mHeader.mVersionTypeToken & kTypeMask) >> kTyp… in GetType() function in ot::Coap::Message
723 bool IsConfirmable(void) const { return (GetType() == kTypeConfirmable); } in IsConfirmable()
732 bool IsNonConfirmable(void) const { return (GetType() == kTypeNonConfirmable); } in IsNonConfirmable()
741 bool IsAck(void) const { return (GetType() == kTypeAck); } in IsAck()
750 bool IsReset(void) const { return (GetType() == kTypeReset); } in IsReset()
/openthread-3.4.0/src/core/common/
Dappender.hpp95 Type GetType(void) const { return mType; } in GetType() function in ot::Appender
Dtlvs.cpp120 mType = tlv.GetType(); in ParseFrom()
128 mType = extTlv.GetType(); in ParseFrom()
144 mType = tlv.GetType(); in ParseFrom()

123