Home
last modified time | relevance | path

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

/openthread-3.7.0/src/core/thread/
Dneighbor.cpp68 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 …]
Dradio_selector.cpp85 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 …]
Dlink_metrics.cpp363 …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 …]
Dradio_selector.hpp132 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);
Dlink_metrics.hpp255 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);
Dneighbor_table.cpp267 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()
Dmesh_forwarder.cpp1145 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 …]
Dmle_router.cpp585 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 …]
Drouter_table.hpp285 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;
Dchild_table.hpp316 bool Contains(const Neighbor &aNeighbor) const in Contains()
318 const Child *child = static_cast<const Child *>(&aNeighbor); in Contains()
Dmesh_forwarder.hpp375 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;
Dmle_router.hpp364 void RemoveNeighbor(Neighbor &aNeighbor);
441 Error SendLinkRequest(Neighbor *aNeighbor);
667 Neighbor *aNeighbor,
Dneighbor.hpp183 bool Matches(const Neighbor &aNeighbor) const;
211 void SetFrom(const Neighbor &aNeighbor);
Dneighbor_table.hpp238 void Signal(Event aEvent, const Neighbor &aNeighbor);
Drouter_table.cpp719 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()
Dmle.cpp1091 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 …]
Dmle.hpp1040 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/
Dtrel_link.cpp300 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 …]
Dtrel_link.hpp174 void ReportDeferredAckStatus(Neighbor &aNeighbor, Error aError);
175 void HandleTimer(Neighbor &aNeighbor);
/openthread-3.7.0/src/core/utils/
Dotns.cpp110 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()
Dotns.hpp129 static void EmitNeighborChange(NeighborTable::Event aEvent, const Neighbor &aNeighbor);
/openthread-3.7.0/src/core/mac/
Dmac.cpp1519 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 …]
Dmac_filter.cpp254 Error Filter::ApplyToRxFrame(RxFrame &aRxFrame, const ExtAddress &aExtAddress, Neighbor *aNeighbor)… in ApplyToRxFrame()
265 if (aNeighbor != nullptr) in ApplyToRxFrame()
269 aNeighbor->GetLinkInfo().ClearAverageRss(); in ApplyToRxFrame()
Dmac.hpp797 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);
Dmac_filter.hpp244 …Error ApplyToRxFrame(RxFrame &aRxFrame, const ExtAddress &aExtAddress, Neighbor *aNeighbor = nullp…