Home
last modified time | relevance | path

Searched refs:kType (Results 1 – 16 of 16) sorted by relevance

/openthread-latest/src/core/common/
Dtlvs.hpp406 return FindTlv(aMessage, TlvType::kType, sizeof(TlvType), aTlv); in FindTlv()
425 return FindTlv(aMessage, TlvType::kType, sizeof(TlvType), aTlv, aOffset); in FindTlv()
464 return FindTlv(aMessage, TlvType::kType, aValue, aLength); in Find()
489 return FindTlv(aMessage, SimpleTlvType::kType, &aValue, sizeof(aValue)); in Find()
511 return FindUintTlv(aMessage, UintTlvType::kType, aValue); in Find()
536 … return FindStringTlv(aMessage, StringTlvType::kType, StringTlvType::kMaxStringLength, aValue); in Find()
573 return AppendTlv(aMessage, TlvType::kType, aValue, aLength); in Append()
592 return AppendTlv(aMessage, SimpleTlvType::kType, &aValue, sizeof(aValue)); in Append()
610 return AppendUintTlv(aMessage, UintTlvType::kType, aValue); in Append()
633 … return AppendStringTlv(aMessage, StringTlvType::kType, StringTlvType::kMaxStringLength, aValue); in Append()
[all …]
/openthread-latest/src/core/thread/
Dnetwork_data_tlvs.hpp276 return As<TlvType>(Find(aStart, aEnd, TlvType::kType)); in Find()
291 return As<TlvType>(Find(aStart, aEnd, TlvType::kType)); in Find()
340 return As<TlvType>(Find(aStart, aEnd, TlvType::kType, aStable)); in Find()
358 return As<TlvType>(Find(aStart, aEnd, TlvType::kType, aStable)); in Find()
489 static constexpr Type kType = kTypeHasRoute; ///< The TLV Type. member in ot::NetworkData::HasRouteTlv
579 static constexpr Type kType = kTypePrefix; ///< The TLV Type. member in ot::NetworkData::PrefixTlv
732 return As<SubTlvType>(FindSubTlv(SubTlvType::kType)); in FindSubTlv()
744 return As<SubTlvType>(FindSubTlv(SubTlvType::kType)); in FindSubTlv()
758 return As<SubTlvType>(FindSubTlv(static_cast<Type>(SubTlvType::kType), aStable)); in FindSubTlv()
772 return As<SubTlvType>(FindSubTlv(static_cast<Type>(SubTlvType::kType), aStable)); in FindSubTlv()
[all …]
Dnetwork_diagnostic_tlvs.hpp245 …static constexpr uint8_t kType = ot::NetworkDiagnostic::Tlv::kConnectivity; ///< The TLV Type valu… member in ot::NetworkDiagnostic::ConnectivityTlv
253 ot::Tlv::SetType(kType); in Init()
283 static constexpr uint8_t kType = ot::NetworkDiagnostic::Tlv::kRoute; ///< The TLV Type value. member in ot::NetworkDiagnostic::RouteTlv
291 ot::Tlv::SetType(kType); in Init()
302 … static constexpr uint8_t kType = ot::NetworkDiagnostic::Tlv::kLeaderData; ///< The TLV Type value. member in ot::NetworkDiagnostic::LeaderDataTlv
310 ot::Tlv::SetType(kType); in Init()
Dnetwork_data_leader.hpp196 return As<SubTlvType>(FindCommissioningDataSubTlv(SubTlvType::kType)); in FindInCommissioningData()
208 return As<SubTlvType>(FindCommissioningDataSubTlv(SubTlvType::kType)); in FindInCommissioningData()
Dlink_metrics.cpp149 case StatusSubTlv::kType: in HandleReport()
155 case ReportSubTlv::kType: in HandleReport()
317 case StatusSubTlv::kType: in HandleManagementResponse()
Dnetwork_diagnostic.cpp545 case ChildTlv::kType: in PrepareAndSendAnswers()
548 case ChildIp6AddressListTlv::kType: in PrepareAndSendAnswers()
551 case RouterNeighborTlv::kType: in PrepareAndSendAnswers()
/openthread-latest/src/core/utils/
Dmesh_diag.cpp70 tlvs[tlvsLength++] = Address16Tlv::kType; in DiscoverTopology()
71 tlvs[tlvsLength++] = ExtMacAddressTlv::kType; in DiscoverTopology()
72 tlvs[tlvsLength++] = RouteTlv::kType; in DiscoverTopology()
73 tlvs[tlvsLength++] = VersionTlv::kType; in DiscoverTopology()
77 tlvs[tlvsLength++] = Ip6AddressListTlv::kType; in DiscoverTopology()
82 tlvs[tlvsLength++] = ChildTableTlv::kType; in DiscoverTopology()
189 static const uint8_t kTlvTypes[] = {ChildTlv::kType}; in QueryChildTable()
205 static const uint8_t kTlvTypes[] = {ChildIp6AddressListTlv::kType}; in QueryChildrenIp6Addrs()
221 static const uint8_t kTlvTypes[] = {RouterNeighborTlv::kType}; in QueryRouterNeighborTable()
385 … SuccessOrExit(Tlv::FindTlvValueOffsetRange(aMessage, ChildIp6AddressListTlv::kType, offsetRange)); in ProcessChildrenIp6AddrsAnswer()
[all …]
/openthread-latest/src/core/net/
Ddns_dso.hpp854 static constexpr Type kType = kKeepAliveType; member in ot::Dns::Dso::KeepAliveTlv
856 void Init(void) { Tlv::Init(kType, sizeof(*this) - sizeof(Tlv)); } in Init()
875 static constexpr Type kType = kRetryDelayType; member in ot::Dns::Dso::RetryDelayTlv
877 void Init(void) { Tlv::Init(kType, sizeof(*this) - sizeof(Tlv)); } in Init()
892 static constexpr Type kType = kEncryptionPaddingType; member in ot::Dns::Dso::EncryptionPaddingTlv
894 void Init(uint16_t aPaddingLength) { Tlv::Init(kType, aPaddingLength); } in Init()
Ddns_types.hpp1443 return FindRecord(aMessage, aOffset, aNumRecords, aIndex, aName, RecordType::kType, aRecord, in FindRecord()
1482 return ReadRecord(aMessage, aOffset, RecordType::kType, aRecord, sizeof(RecordType)); in ReadRecord()
1495 …static constexpr uint16_t kType = kTypeAny; // This is intended for used by `ReadRecord<RecordType… member in ot::Dns::ResourceRecord
1529 static constexpr uint16_t kType = kTypeA; ///< The A record type. member in ot::Dns::ARecord
1567 static constexpr uint16_t kType = kTypeCname; ///< The CNAME record type. member in ot::Dns::CnameRecord
1615 static constexpr uint16_t kType = kTypePtr; ///< The PTR record type. member in ot::Dns::PtrRecord
1725 static constexpr uint16_t kType = kTypeTxt; ///< The TXT record type. member in ot::Dns::TxtRecord
1779 static constexpr uint16_t kType = kTypeAaaa; ///< The AAAA record type. member in ot::Dns::AaaaRecord
1824 static constexpr uint16_t kType = kTypeSrv; ///< The SRV record type. member in ot::Dns::SrvRecord
1946 static constexpr uint16_t kType = kTypeKey; ///< The KEY record type. member in ot::Dns::KeyRecord
[all …]
Ddns_dso.cpp600 ResetTimeouts(/* aIsKeepAliveMessage*/ (primaryTlvType == KeepAliveTlv::kType)); in SendMessage()
738 ResetTimeouts(/* aIsKeepAliveMessage */ (primaryTlvType == KeepAliveTlv::kType)); in HandleReceive()
794 case KeepAliveTlv::kType: in ProcessRequestOrUnidirectionalMessage()
798 case RetryDelayTlv::kType: in ProcessRequestOrUnidirectionalMessage()
803 case EncryptionPaddingTlv::kType: in ProcessRequestOrUnidirectionalMessage()
864 case KeepAliveTlv::kType: in ProcessResponseMessage()
924 VerifyOrExit((keepAliveTlv.GetType() == KeepAliveTlv::kType) && keepAliveTlv.IsValid()); in ProcessKeepAliveMessage()
933 … VerifyOrExit((tlv.GetType() != KeepAliveTlv::kType) && (tlv.GetType() != RetryDelayTlv::kType)); in ProcessKeepAliveMessage()
Dnd6.hpp178 static constexpr Type kType = kTypePrefixInfo; ///< Prefix Information Option Type. member in ot::Ip6::Nd::PrefixInfoOption
336 static constexpr Type kType = kTypeRouteInfo; ///< Route Information Option Type. member in ot::Ip6::Nd::RouteInfoOption
459 static constexpr Type kType = kTypeRaFlagsExtension; ///< RA Flags Extension Option type. member in ot::Ip6::Nd::RaFlagsExtOption
Dip6_mpl.hpp65 static constexpr uint8_t kType = 0x6d; ///< MPL option type - 01 1 01101 member in ot::Ip6::MplOption
Dip6_mpl.cpp53 SetType(kType); in Init()
Dip6.cpp327 if (option.GetType() == MplOption::kType) in RemoveMplOption()
529 if (option.GetType() == MplOption::kType) in HandleOptions()
/openthread-latest/src/core/meshcop/
Ddataset.hpp263 return ContainsTlv(static_cast<Tlv::Type>(TlvType::kType)); in Contains()
319 const Tlv *tlv = FindTlv(static_cast<Tlv::Type>(SimpleTlvType::kType)); in Read()
338 const Tlv *tlv = FindTlv(static_cast<Tlv::Type>(UintTlvType::kType)); in Read()
383 return WriteTlv(static_cast<Tlv::Type>(SimpleTlvType::kType), &aValue, sizeof(aValue)); in Write()
402 return WriteTlv(static_cast<Tlv::Type>(UintTlvType::kType), &value, sizeof(value)); in Write()
/openthread-latest/tests/unit/
Dtest_dso.cpp93 static constexpr Type kType = 0xf800; member in ot::Dns::TestTlv
97 Tlv::Init(kType, sizeof(*this) - sizeof(Tlv)); in Init()
191 VerifyOrQuit(testTlv.GetType() == TestTlv::kType); in ParseTestMessage()
223 VerifyOrExit(aPrimaryTlvType == TestTlv::kType, error = kErrorNotFound); in ProcessRequestMessage()
236 if (aPrimaryTlvType == TestTlv::kType) in ProcessUnidirectionalMessage()
261 VerifyOrQuit(aResponseTlvType == TestTlv::kType); in ProcessResponseMessage()
262 VerifyOrQuit(aRequestTlvType == TestTlv::kType); in ProcessResponseMessage()