Home
last modified time | relevance | path

Searched refs:aRouter (Results 1 – 12 of 12) sorted by relevance

/openthread-3.6.0/src/core/thread/
Drouter.cpp45 void Router::Info::SetFrom(const Router &aRouter) in SetFrom() argument
48 mRloc16 = aRouter.GetRloc16(); in SetFrom()
50 mExtAddress = aRouter.GetExtAddress(); in SetFrom()
52 mNextHop = aRouter.GetNextHop(); in SetFrom()
53 mLinkEstablished = aRouter.IsStateValid(); in SetFrom()
54 mPathCost = aRouter.GetCost(); in SetFrom()
55 mLinkQualityIn = aRouter.GetLinkQualityIn(); in SetFrom()
56 mLinkQualityOut = aRouter.GetLinkQualityOut(); in SetFrom()
57 …mAge = static_cast<uint8_t>(Time::MsecToSec(TimerMilli::GetNow() - aRouter.GetLastHear… in SetFrom()
58 mVersion = ClampToUint8(aRouter.GetVersion()); in SetFrom()
Dnetwork_diagnostic_tlvs.cpp77 void RouterNeighborTlv::InitFrom(const Router &aRouter) in InitFrom() argument
85 mRloc16 = BigEndian::HostSwap16(aRouter.GetRloc16()); in InitFrom()
86 mExtAddress = aRouter.GetExtAddress(); in InitFrom()
87 mVersion = BigEndian::HostSwap16(aRouter.GetVersion()); in InitFrom()
88 mConnectionTime = BigEndian::HostSwap32(aRouter.GetConnectionTime()); in InitFrom()
89 mLinkMargin = aRouter.GetLinkInfo().GetLinkMargin(); in InitFrom()
90 mAverageRssi = aRouter.GetLinkInfo().GetAverageRss(); in InitFrom()
91 mLastRssi = aRouter.GetLinkInfo().GetLastRss(); in InitFrom()
92 mFrameErrorRate = BigEndian::HostSwap16(aRouter.GetLinkInfo().GetFrameErrorRate()); in InitFrom()
93 mMessageErrorRate = BigEndian::HostSwap16(aRouter.GetLinkInfo().GetMessageErrorRate()); in InitFrom()
Drouter_table.cpp109 void RouterTable::RemoveRouter(Router &aRouter) in RemoveRouter() argument
114 if (aRouter.IsStateValid()) in RemoveRouter()
116 Get<NeighborTable>().Signal(NeighborTable::kRouterRemoved, aRouter); in RemoveRouter()
119 mRouterIdMap.Release(aRouter.GetRouterId()); in RemoveRouter()
120 mRouters.Remove(aRouter); in RemoveRouter()
126 if (IsAllocated(aRouter.GetRouterId())) in RemoveRouter()
128 mRouterIdMap.SetIndex(aRouter.GetRouterId(), mRouters.IndexOf((aRouter))); in RemoveRouter()
230 void RouterTable::RemoveRouterLink(Router &aRouter) in RemoveRouterLink() argument
232 if (aRouter.GetLinkQualityOut() != kLinkQuality0) in RemoveRouterLink()
234 aRouter.SetLinkQualityOut(kLinkQuality0); in RemoveRouterLink()
[all …]
Drouter_table.hpp113 void RemoveRouterLink(Router &aRouter);
155 uint8_t GetLinkCost(const Router &aRouter) const;
253 …Router *FindNextHopOf(const Router &aRouter) { return AsNonConst(AsConst(this)->FindNextHopOf(aRou… in FindNextHopOf() argument
263 const Router *FindNextHopOf(const Router &aRouter) const;
454 void RemoveRouter(Router &aRouter);
Drouter.hpp65 void SetFrom(const Router &aRouter);
Dmle_router.hpp372 void RemoveRouterLink(Router &aRouter);
665 const Router *aRouter,
Dmle_router.cpp3178 void MleRouter::RemoveRouterLink(Router &aRouter) in RemoveRouterLink() argument
3183 if (&aRouter == &mParent) in RemoveRouterLink()
3191 mRouterTable.RemoveRouterLink(aRouter); in RemoveRouterLink()
3632 const Router *aRouter, in SendAddressSolicitResponse() argument
3641 if (aRouter != nullptr) in SendAddressSolicitResponse()
3645 SuccessOrExit(Tlv::Append<ThreadRloc16Tlv>(*message, aRouter->GetRloc16())); in SendAddressSolicitResponse()
3663 if ((aResponseStatus == ThreadStatusTlv::kSuccess) && (aRouter != nullptr)) in SendAddressSolicitResponse()
3670 VerifyOrExit(oldRloc16 != aRouter->GetRloc16()); in SendAddressSolicitResponse()
Dnetwork_diagnostic_tlvs.hpp931 void InitFrom(const Router &aRouter);
/openthread-3.6.0/src/core/border_router/
Drouting_manager.hpp822 void SetRouter(const Router *aRouter) { mPtr1 = aRouter; } in SetRouter() argument
827 …id ProcessRaHeader(const Ip6::Nd::RouterAdvertMessage::Header &aRaHeader, Router &aRouter);
828 … void ProcessPrefixInfoOption(const Ip6::Nd::PrefixInfoOption &aPio, Router &aRouter);
829 void ProcessRouteInfoOption(const Ip6::Nd::RouteInfoOption &aRio, Router &aRouter);
830 …id ProcessRaFlagsExtOption(const Ip6::Nd::RaFlagsExtOption &aFlagsOption, Router &aRouter);
841 void UpdateRouterOnRx(Router &aRouter);
842 void SendNeighborSolicitToRouter(const Router &aRouter);
846 void FreeRouter(Router &aRouter) { aRouter.Free(); } in FreeRouter() argument
851 void FreeRouter(Router &aRouter) { mRouterPool.Free(aRouter); } in FreeRouter() argument
Drouting_manager.cpp1121 … Router &aRouter) in ProcessRaHeader() argument
1126 aRouter.mManagedAddressConfigFlag = aRaHeader.IsManagedAddressConfigFlagSet(); in ProcessRaHeader()
1127 aRouter.mOtherConfigFlag = aRaHeader.IsOtherConfigFlagSet(); in ProcessRaHeader()
1128 …LogInfo("- RA Header - flags - M:%u O:%u", aRouter.mManagedAddressConfigFlag, aRouter.mOtherConfig… in ProcessRaHeader()
1131 entry = aRouter.mEntries.FindMatching(Entry::Matcher(prefix, Entry::kTypeRoute)); in ProcessRaHeader()
1148 aRouter.mEntries.Push(*entry); in ProcessRaHeader()
1164 … Router &aRouter) in ProcessPrefixInfoOption() argument
1176 entry = aRouter.mEntries.FindMatching(Entry::Matcher(prefix, Entry::kTypeOnLink)); in ProcessPrefixInfoOption()
1191 aRouter.mEntries.Push(*entry); in ProcessPrefixInfoOption()
1210 … Router &aRouter) in ProcessRouteInfoOption() argument
[all …]
/openthread-3.6.0/src/core/meshcop/
Djoiner.cpp362 Error Joiner::Connect(JoinerRouter &aRouter) in Connect() argument
365 Ip6::SockAddr sockAddr(aRouter.mJoinerUdpPort); in Connect()
367 …nfo("Joiner connecting to %s, pan:0x%04x, chan:%d", aRouter.mExtAddr.ToString().AsCString(), aRout… in Connect()
368 aRouter.mChannel); in Connect()
370 Get<Mac::Mac>().SetPanId(aRouter.mPanId); in Connect()
371 SuccessOrExit(error = Get<Mac::Mac>().SetPanChannel(aRouter.mChannel)); in Connect()
374 sockAddr.GetAddress().SetToLinkLocalAddress(aRouter.mExtAddr); in Connect()
Djoiner.hpp219 Error Connect(JoinerRouter &aRouter);