/openthread-3.7.0/src/core/thread/ |
D | neighbor.cpp | 68 bool Neighbor::AddressMatcher::Matches(const Neighbor &aNeighbor) const in Matches() 72 VerifyOrExit(aNeighbor.MatchesFilter(mStateFilter)); in Matches() 76 VerifyOrExit(mShortAddress == aNeighbor.GetRloc16()); in Matches() 81 VerifyOrExit(*mExtAddress == aNeighbor.GetExtAddress()); in Matches() 90 void Neighbor::Info::SetFrom(const Neighbor &aNeighbor) in SetFrom() argument 94 mExtAddress = aNeighbor.GetExtAddress(); in SetFrom() 95 mAge = Time::MsecToSec(TimerMilli::GetNow() - aNeighbor.GetLastHeard()); in SetFrom() 96 mRloc16 = aNeighbor.GetRloc16(); in SetFrom() 97 mLinkFrameCounter = aNeighbor.GetLinkFrameCounters().GetMaximum(); in SetFrom() 98 mMleFrameCounter = aNeighbor.GetMleFrameCounter(); in SetFrom() [all …]
|
D | radio_selector.cpp | 85 LogLevel RadioSelector::UpdatePreference(Neighbor &aNeighbor, Mac::RadioType aRadioType, int16_t aD… in UpdatePreference() argument 87 uint8_t old = aNeighbor.GetRadioPreference(aRadioType); in UpdatePreference() 102 aNeighbor.SetRadioPreference(aRadioType, static_cast<uint8_t>(preference)); in UpdatePreference() 112 void RadioSelector::UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplica… in UpdateOnReceive() argument 116 if (aNeighbor.GetSupportedRadioTypes().Contains(aRadioType)) in UpdateOnReceive() 118 logLevel = UpdatePreference(aNeighbor, aRadioType, in UpdateOnReceive() 121 Log(logLevel, aIsDuplicate ? "UpdateOnDupRx" : "UpdateOnRx", aRadioType, aNeighbor); in UpdateOnReceive() 125 aNeighbor.AddSupportedRadioType(aRadioType); in UpdateOnReceive() 126 aNeighbor.SetRadioPreference(aRadioType, kInitPreference); in UpdateOnReceive() 128 Log(logLevel, "NewRadio(OnRx)", aRadioType, aNeighbor); in UpdateOnReceive() [all …]
|
D | link_metrics.cpp | 363 …id Initiator::ProcessEnhAckIeData(const uint8_t *aData, uint8_t aLength, const Neighbor &aNeighbor) in ProcessEnhAckIeData() argument 370 values.SetMetrics(aNeighbor.GetEnhAckProbingMetrics()); in ProcessEnhAckIeData() 385 … mEnhAckProbingIeReportCallback.Invoke(aNeighbor.GetRloc16(), &aNeighbor.GetExtAddress(), &values); in ProcessEnhAckIeData() 391 Error Initiator::FindNeighbor(const Ip6::Address &aDestination, Neighbor *&aNeighbor) in FindNeighbor() argument 396 aNeighbor = nullptr; in FindNeighbor() 401 aNeighbor = Get<NeighborTable>().FindNeighbor(macAddress); in FindNeighbor() 402 VerifyOrExit(aNeighbor != nullptr); in FindNeighbor() 404 VerifyOrExit(aNeighbor->GetVersion() >= kThreadVersion1p2, error = kErrorNotCapable); in FindNeighbor() 419 Error Subject::AppendReport(Message &aMessage, const Message &aRequestMessage, Neighbor &aNeighbor) in AppendReport() argument 483 SeriesInfo *seriesInfo = aNeighbor.GetForwardTrackingSeriesInfo(queryId); in AppendReport() [all …]
|
D | radio_selector.hpp | 132 void UpdateOnReceive(Neighbor &aNeighbor, Mac::RadioType aRadioType, bool aIsDuplicate); 157 void UpdateOnDeferredAck(Neighbor &aNeighbor, Error aTxError, bool &aAllowNeighborRemove); 202 …LogLevel UpdatePreference(Neighbor &aNeighbor, Mac::RadioType aRadioType, int16_t aDifferenc… 203 Mac::RadioType Select(Mac::RadioTypes aRadioOptions, const Neighbor &aNeighbor); 204 … Log(LogLevel aLogLevel, const char *aActionText, Mac::RadioType aType, const Neighbor &aNeighbor);
|
D | link_metrics.hpp | 255 void ProcessEnhAckIeData(const uint8_t *aData, uint8_t aLength, const Neighbor &aNeighbor); 260 Error FindNeighbor(const Ip6::Address &aDestination, Neighbor *&aNeighbor); 302 Error AppendReport(Message &aMessage, const Message &aRequestMessage, Neighbor &aNeighbor); 315 Error HandleManagementRequest(const Message &aMessage, Neighbor &aNeighbor, Status &aStatus); 354 Neighbor &aNeighbor); 355 … Status ConfigureEnhAckProbing(uint8_t aEnhAckFlags, const Metrics &aMetrics, Neighbor &aNeighbor);
|
D | neighbor_table.cpp | 267 void NeighborTable::Signal(Event aEvent, const Neighbor &aNeighbor) in Signal() argument 283 OT_ASSERT(Get<ChildTable>().Contains(aNeighbor)); in Signal() 284 … static_cast<Child::Info &>(info.mInfo.mChild).SetFrom(static_cast<const Child &>(aNeighbor)); in Signal() 290 static_cast<Neighbor::Info &>(info.mInfo.mRouter).SetFrom(aNeighbor); in Signal() 305 Get<Utils::Otns>().EmitNeighborChange(aEvent, aNeighbor); in Signal() 317 Get<DuaManager>().HandleChildDuaAddressEvent(static_cast<const Child &>(aNeighbor), in Signal()
|
D | mesh_forwarder.cpp | 1145 void MeshForwarder::UpdateNeighborLinkFailures(Neighbor &aNeighbor, in UpdateNeighborLinkFailures() argument 1154 aNeighbor.ResetLinkFailures(); in UpdateNeighborLinkFailures() 1158 aNeighbor.IncrementLinkFailures(); in UpdateNeighborLinkFailures() 1160 if (aAllowNeighborRemove && (Mle::IsActiveRouter(aNeighbor.GetRloc16())) && in UpdateNeighborLinkFailures() 1161 (aNeighbor.GetLinkFailures() >= aFailLimit)) in UpdateNeighborLinkFailures() 1164 Get<Mle::MleRouter>().RemoveRouterLink(static_cast<Router &>(aNeighbor)); in UpdateNeighborLinkFailures() 1173 void MeshForwarder::HandleDeferredAck(Neighbor &aNeighbor, Error aError) in HandleDeferredAck() argument 1182 aNeighbor.GetExtAddress().ToString().AsCString(), aNeighbor.GetRloc16()); in HandleDeferredAck() 1188 Get<RadioSelector>().UpdateOnDeferredAck(aNeighbor, aError, allowNeighborRemove); in HandleDeferredAck() 1190 UpdateNeighborLinkFailures(aNeighbor, aError, allowNeighborRemove, kFailedRouterTransmissions); in HandleDeferredAck() [all …]
|
D | mle_router.cpp | 585 Error MleRouter::SendLinkRequest(Neighbor *aNeighbor) in SendLinkRequest() argument 615 if (aNeighbor == nullptr || !aNeighbor->IsStateValid()) in SendLinkRequest() 636 if (aNeighbor == nullptr) in SendLinkRequest() 646 if (!aNeighbor->IsStateValid()) in SendLinkRequest() 648 aNeighbor->GenerateChallenge(); in SendLinkRequest() 649 SuccessOrExit(error = message->AppendChallengeTlv(aNeighbor->GetChallenge())); in SendLinkRequest() 659 destination.SetToLinkLocalAddress(aNeighbor->GetExtAddress()); in SendLinkRequest() 772 Neighbor *aNeighbor, in SendLinkAccept() argument 783 …command = (aNeighbor == nullptr || aNeighbor->IsStateValid()) ? kCommandLinkAccept : kCommandLinkA… in SendLinkAccept() 795 if (aNeighbor != nullptr && IsActiveRouter(aNeighbor->GetRloc16())) in SendLinkAccept() [all …]
|
D | router_table.hpp | 285 bool Contains(const Neighbor &aNeighbor) const in Contains() 287 return mRouters.IsInArrayBuffer(&static_cast<const Router &>(aNeighbor)); in Contains() 400 void FillRouteTlv(Mle::RouteTlv &aRouteTlv, const Neighbor *aNeighbor = nullptr) const;
|
D | child_table.hpp | 316 bool Contains(const Neighbor &aNeighbor) const in Contains() 318 const Child *child = static_cast<const Child *>(&aNeighbor); in Contains()
|
D | mesh_forwarder.hpp | 375 void HandleDeferredAck(Neighbor &aNeighbor, Error aError); 564 …void UpdateNeighborLinkFailures(Neighbor &aNeighbor, Error aError, bool aAllowNeighborRemove, uint… 566 void UpdateSendMessage(Error aFrameTxError, Mac::Address &aMacDest, Neighbor *aNeighbor); 582 Mac::Frame::Version CalcFrameVersion(const Neighbor *aNeighbor, bool aIePresent) const;
|
D | mle_router.hpp | 364 void RemoveNeighbor(Neighbor &aNeighbor); 441 Error SendLinkRequest(Neighbor *aNeighbor); 667 Neighbor *aNeighbor,
|
D | neighbor.hpp | 183 bool Matches(const Neighbor &aNeighbor) const; 211 void SetFrom(const Neighbor &aNeighbor);
|
D | neighbor_table.hpp | 238 void Signal(Event aEvent, const Neighbor &aNeighbor);
|
D | router_table.cpp | 719 void RouterTable::FillRouteTlv(Mle::RouteTlv &aRouteTlv, const Neighbor *aNeighbor) const in FillRouteTlv() 727 if ((aNeighbor != nullptr) && Mle::IsActiveRouter(aNeighbor->GetRloc16())) in FillRouteTlv() 744 … (routerId == aNeighbor->GetRouterId()) || (routerId == Get<Mle::Mle>().GetLeaderId())) in FillRouteTlv()
|
D | mle.cpp | 1091 void Mle::InitNeighbor(Neighbor &aNeighbor, const RxInfo &aRxInfo) in InitNeighbor() argument 1093 aRxInfo.mMessageInfo.GetPeerAddr().GetIid().ConvertToExtAddress(aNeighbor.GetExtAddress()); in InitNeighbor() 1094 aNeighbor.GetLinkInfo().Clear(); in InitNeighbor() 1095 aNeighbor.GetLinkInfo().AddRss(aRxInfo.mMessage.GetAverageRss()); in InitNeighbor() 1096 aNeighbor.ResetLinkFailures(); in InitNeighbor() 1097 aNeighbor.SetLastHeard(TimerMilli::GetNow()); in InitNeighbor() 2755 void Mle::ReestablishLinkWithNeighbor(Neighbor &aNeighbor) in ReestablishLinkWithNeighbor() argument 2757 VerifyOrExit(IsAttached() && aNeighbor.IsStateValid()); in ReestablishLinkWithNeighbor() 2759 if (IsChild() && (&aNeighbor == &mParent)) in ReestablishLinkWithNeighbor() 2768 if (IsActiveRouter(aNeighbor.GetRloc16())) in ReestablishLinkWithNeighbor() [all …]
|
D | mle.hpp | 1040 Error AppendRouteTlv(Neighbor *aNeighbor = nullptr); 1248 void InitNeighbor(Neighbor &aNeighbor, const RxInfo &aRxInfo); 1254 void ReestablishLinkWithNeighbor(Neighbor &aNeighbor);
|
/openthread-3.7.0/src/core/radio/ |
D | trel_link.cpp | 300 void Link::HandleTimer(Neighbor &aNeighbor) in HandleTimer() argument 302 VerifyOrExit(!aNeighbor.IsStateInvalid()); in HandleTimer() 306 while (aNeighbor.mTrelPreviousPendingAcks > 0) in HandleTimer() 308 aNeighbor.mTrelPreviousPendingAcks--; in HandleTimer() 310 ReportDeferredAckStatus(aNeighbor, kErrorNoAck); in HandleTimer() 311 VerifyOrExit(!aNeighbor.IsStateInvalid()); in HandleTimer() 314 aNeighbor.mTrelPreviousPendingAcks = aNeighbor.mTrelCurrentPendingAcks; in HandleTimer() 315 aNeighbor.mTrelCurrentPendingAcks = 0; in HandleTimer() 442 void Link::ReportDeferredAckStatus(Neighbor &aNeighbor, Error aError) in ReportDeferredAckStatus() argument 444 … LogDebg("ReportDeferredAckStatus(): %s for %s", aNeighbor.GetExtAddress().ToString().AsCString(), in ReportDeferredAckStatus() [all …]
|
D | trel_link.hpp | 174 void ReportDeferredAckStatus(Neighbor &aNeighbor, Error aError); 175 void HandleTimer(Neighbor &aNeighbor);
|
/openthread-3.7.0/src/core/utils/ |
D | otns.cpp | 110 void Otns::EmitNeighborChange(NeighborTable::Event aEvent, const Neighbor &aNeighbor) in EmitNeighborChange() argument 115 EmitStatus("router_added=%s", aNeighbor.GetExtAddress().ToString().AsCString()); in EmitNeighborChange() 118 EmitStatus("router_removed=%s", aNeighbor.GetExtAddress().ToString().AsCString()); in EmitNeighborChange() 121 EmitStatus("child_added=%s", aNeighbor.GetExtAddress().ToString().AsCString()); in EmitNeighborChange() 124 EmitStatus("child_removed=%s", aNeighbor.GetExtAddress().ToString().AsCString()); in EmitNeighborChange()
|
D | otns.hpp | 129 static void EmitNeighborChange(NeighborTable::Event aEvent, const Neighbor &aNeighbor);
|
/openthread-3.7.0/src/core/mac/ |
D | mac.cpp | 1519 Error Mac::ProcessReceiveSecurity(RxFrame &aFrame, const Address &aSrcAddr, Neighbor *aNeighbor) in ProcessReceiveSecurity() argument 1549 VerifyOrExit(aNeighbor != nullptr); in ProcessReceiveSecurity() 1579 if (aNeighbor->IsStateValid()) in ProcessReceiveSecurity() 1581 VerifyOrExit(keySequence >= aNeighbor->GetKeySequence()); in ProcessReceiveSecurity() 1583 if (keySequence == aNeighbor->GetKeySequence()) in ProcessReceiveSecurity() 1588 neighborFrameCounter = aNeighbor->GetLinkFrameCounters().Get(aFrame.GetRadioType()); in ProcessReceiveSecurity() 1590 neighborFrameCounter = aNeighbor->GetLinkFrameCounters().Get(); in ProcessReceiveSecurity() 1615 if ((keyIdMode == Frame::kKeyIdMode1) && aNeighbor->IsStateValid()) in ProcessReceiveSecurity() 1617 if (aNeighbor->GetKeySequence() != keySequence) in ProcessReceiveSecurity() 1619 aNeighbor->SetKeySequence(keySequence); in ProcessReceiveSecurity() [all …]
|
D | mac_filter.cpp | 254 Error Filter::ApplyToRxFrame(RxFrame &aRxFrame, const ExtAddress &aExtAddress, Neighbor *aNeighbor)… in ApplyToRxFrame() 265 if (aNeighbor != nullptr) in ApplyToRxFrame() 269 aNeighbor->GetLinkInfo().ClearAverageRss(); in ApplyToRxFrame()
|
D | mac.hpp | 797 Error ProcessReceiveSecurity(RxFrame &aFrame, const Address &aSrcAddr, Neighbor *aNeighbor); 816 void UpdateNeighborLinkInfo(Neighbor &aNeighbor, const RxFrame &aRxFrame); 840 void ProcessEnhAckProbing(const RxFrame &aFrame, const Neighbor &aNeighbor);
|
D | mac_filter.hpp | 244 …Error ApplyToRxFrame(RxFrame &aRxFrame, const ExtAddress &aExtAddress, Neighbor *aNeighbor = nullp…
|