Home
last modified time | relevance | path

Searched refs:aTlv (Results 1 – 13 of 13) sorted by relevance

/openthread-latest/src/core/common/
Dtlvs.hpp400 static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv);
417 …static Error FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv, uint16_…
433 template <typename TlvType> static Error FindTlv(const Message &aMessage, TlvType &aTlv) in FindTlv() argument
435 return FindTlv(aMessage, TlvType::kType, sizeof(TlvType), aTlv); in FindTlv()
453 …template <typename TlvType> static Error FindTlv(const Message &aMessage, TlvType &aTlv, uint16_t … in FindTlv() argument
455 return FindTlv(aMessage, TlvType::kType, sizeof(TlvType), aTlv, aOffset); in FindTlv()
790 template <class TlvType> TlvType *As(Tlv *aTlv) { return static_cast<TlvType *>(aTlv); } in As() argument
802 …mplate <class TlvType> const TlvType *As(const Tlv *aTlv) { return static_cast<const TlvType *>(aT… in As() argument
814 template <class TlvType> TlvType &As(Tlv &aTlv) { return static_cast<TlvType &>(aTlv); } in As() argument
826 …mplate <class TlvType> const TlvType &As(const Tlv &aTlv) { return static_cast<const TlvType &>(aT… in As() argument
Dtlvs.cpp59 Error Tlv::FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv) in FindTlv() argument
63 return FindTlv(aMessage, aType, aMaxSize, aTlv, offset); in FindTlv()
66 Error Tlv::FindTlv(const Message &aMessage, uint8_t aType, uint16_t aMaxSize, Tlv &aTlv, uint16_t &… in FindTlv() argument
74 aMessage.ReadBytes(info.mTlvOffsetRange, &aTlv); in FindTlv()
/openthread-latest/src/core/meshcop/
Ddataset.cpp135 bool Dataset::IsTlvValid(const Tlv &aTlv) in IsTlvValid() argument
140 switch (aTlv.GetType()) in IsTlvValid()
158 VerifyOrExit(aTlv.GetLength() >= sizeof(ChannelTlvValue), isValid = false); in IsTlvValid()
159 isValid = aTlv.ReadValueAs<ChannelTlv>().IsValid(); in IsTlvValid()
162 isValid = As<NetworkNameTlv>(aTlv).IsValid(); in IsTlvValid()
166 isValid = As<SecurityPolicyTlv>(aTlv).IsValid(); in IsTlvValid()
170 isValid = As<ChannelMaskTlv>(aTlv).IsValid(); in IsTlvValid()
179 isValid = (aTlv.GetLength() >= minLength); in IsTlvValid()
384 Error Dataset::WriteTlv(const Tlv &aTlv) { return WriteTlv(aTlv.GetType(), aTlv.GetValue(), aTlv.Ge… in WriteTlv() argument
516 void Dataset::RemoveTlv(Tlv *aTlv) in RemoveTlv() argument
[all …]
Ddataset.hpp258 static bool IsTlvValid(const Tlv &aTlv);
379 Error WriteTlv(const Tlv &aTlv);
705 void RemoveTlv(Tlv *aTlv);
/openthread-latest/src/core/utils/
Dmesh_diag.cpp619 void MeshDiag::RouterNeighborEntry::SetFrom(const RouterNeighborTlv &aTlv) in SetFrom() argument
621 mSupportsErrRate = (aTlv.GetFlags() & RouterNeighborTlv::kFlagsTrackErrRate); in SetFrom()
622 mRloc16 = aTlv.GetRloc16(); in SetFrom()
623 mExtAddress = aTlv.GetExtAddress(); in SetFrom()
624 mVersion = aTlv.GetVersion(); in SetFrom()
625 mConnectionTime = aTlv.GetConnectionTime(); in SetFrom()
626 mLinkMargin = aTlv.GetLinkMargin(); in SetFrom()
627 mAverageRssi = aTlv.GetAverageRssi(); in SetFrom()
628 mLastRssi = aTlv.GetLastRssi(); in SetFrom()
629 mFrameErrorRate = aTlv.GetFrameErrorRate(); in SetFrom()
[all …]
Dmesh_diag.hpp290 void SetFrom(const NetworkDiagnostic::RouterNeighborTlv &aTlv);
/openthread-latest/src/core/thread/
Dnetwork_data_tlvs.hpp74 template <class TlvType> TlvType *As(NetworkDataTlv *aTlv) { return static_cast<TlvType *>(aTlv); } in As() argument
86 …ss TlvType> const TlvType *As(const NetworkDataTlv *aTlv) { return static_cast<const TlvType *>(aT… in As() argument
98 template <class TlvType> TlvType &As(NetworkDataTlv &aTlv) { return static_cast<TlvType &>(aTlv); } in As() argument
110 …ss TlvType> const TlvType &As(const NetworkDataTlv &aTlv) { return static_cast<const TlvType &>(aT… in As() argument
Dnetwork_data.hpp553 void SaveTlvOffset(const NetworkDataTlv *aTlv, const uint8_t *aTlvs) in SaveTlvOffset() argument
555 SetTlvOffset(static_cast<uint8_t>(reinterpret_cast<const uint8_t *>(aTlv) - aTlvs)); in SaveTlvOffset()
763 void RemoveTlv(NetworkDataTlv *aTlv);
Dnetwork_data_leader.hpp512 void Update(const NetworkDataTlv &aTlv) in Update() argument
515 mStableChanged = (mStableChanged || aTlv.IsStable()); in Update()
651 UpdateStatus UpdateTlv(NetworkDataTlv &aTlv, const NetworkDataTlv *aSubTlvs);
Dnetwork_data_leader_ftd.cpp641 Leader::UpdateStatus Leader::UpdateTlv(NetworkDataTlv &aTlv, const NetworkDataTlv *aSubTlvs) in UpdateTlv() argument
648 if (aSubTlvs == aTlv.GetNext()) in UpdateTlv()
650 RemoveTlv(&aTlv); in UpdateTlv()
654 … for (const NetworkDataTlv *subCur = aSubTlvs; subCur < aTlv.GetNext(); subCur = subCur->GetNext()) in UpdateTlv()
658 aTlv.SetStable(); in UpdateTlv()
663 aTlv.ClearStable(); in UpdateTlv()
Dnetwork_data.cpp777 void MutableNetworkData::RemoveTlv(NetworkDataTlv *aTlv) { Remove(aTlv, aTlv->GetSize()); } in RemoveTlv() argument
Dmle_router.cpp3612 void MleRouter::FillConnectivityTlv(ConnectivityTlv &aTlv) in FillConnectivityTlv() argument
3635 aTlv.SetParentPriority(parentPriority); in FillConnectivityTlv()
3637 aTlv.SetLinkQuality1(0); in FillConnectivityTlv()
3638 aTlv.SetLinkQuality2(0); in FillConnectivityTlv()
3639 aTlv.SetLinkQuality3(0); in FillConnectivityTlv()
3643 aTlv.IncrementLinkQuality(mParent.GetLinkQualityIn()); in FillConnectivityTlv()
3658 aTlv.IncrementLinkQuality(router.GetTwoWayLinkQuality()); in FillConnectivityTlv()
3661 aTlv.SetActiveRouters(mRouterTable.GetActiveRouterCount()); in FillConnectivityTlv()
3662 aTlv.SetLeaderCost(Min(mRouterTable.GetPathCostToLeader(), kMaxRouteCost)); in FillConnectivityTlv()
3663 aTlv.SetIdSequence(mRouterTable.GetRouterIdSequence()); in FillConnectivityTlv()
[all …]
Dmle_router.hpp396 void FillConnectivityTlv(ConnectivityTlv &aTlv);