Home
last modified time | relevance | path

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

12

/openthread-latest/src/core/thread/
Dsrc_match_controller.cpp51 void SourceMatchController::IncrementMessageCount(Child &aChild) in IncrementMessageCount() argument
53 if (aChild.GetIndirectMessageCount() == 0) in IncrementMessageCount()
55 AddEntry(aChild); in IncrementMessageCount()
58 aChild.IncrementIndirectMessageCount(); in IncrementMessageCount()
61 void SourceMatchController::DecrementMessageCount(Child &aChild) in DecrementMessageCount() argument
63 if (aChild.GetIndirectMessageCount() == 0) in DecrementMessageCount()
65 …LogWarn("DecrementMessageCount(child 0x%04x) called when already at zero count.", aChild.GetRloc16… in DecrementMessageCount()
69 aChild.DecrementIndirectMessageCount(); in DecrementMessageCount()
71 if (aChild.GetIndirectMessageCount() == 0) in DecrementMessageCount()
73 ClearEntry(aChild); in DecrementMessageCount()
[all …]
Dindirect_sender.cpp93 void IndirectSender::AddMessageForSleepyChild(Message &aMessage, Child &aChild) in AddMessageForSleepyChild() argument
97 OT_ASSERT(!aChild.IsRxOnWhenIdle()); in AddMessageForSleepyChild()
99 childIndex = Get<ChildTable>().GetChildIndex(aChild); in AddMessageForSleepyChild()
103 mSourceMatchController.IncrementMessageCount(aChild); in AddMessageForSleepyChild()
105 if ((aMessage.GetType() != Message::kTypeSupervision) && (aChild.GetIndirectMessageCount() > 1)) in AddMessageForSleepyChild()
107 … Message *supervisionMessage = FindQueuedMessageForSleepyChild(aChild, AcceptSupervisionMessage); in AddMessageForSleepyChild()
111 IgnoreError(RemoveMessageFromSleepyChild(*supervisionMessage, aChild)); in AddMessageForSleepyChild()
116 RequestMessageUpdate(aChild); in AddMessageForSleepyChild()
122 Error IndirectSender::RemoveMessageFromSleepyChild(Message &aMessage, Child &aChild) in RemoveMessageFromSleepyChild() argument
125 uint16_t childIndex = Get<ChildTable>().GetChildIndex(aChild); in RemoveMessageFromSleepyChild()
[all …]
Dchild.cpp45 void Child::Info::SetFrom(const Child &aChild) in SetFrom() argument
48 mExtAddress = aChild.GetExtAddress(); in SetFrom()
49 mTimeout = aChild.GetTimeout(); in SetFrom()
50 mRloc16 = aChild.GetRloc16(); in SetFrom()
51 mChildId = Mle::ChildIdFromRloc16(aChild.GetRloc16()); in SetFrom()
52 mNetworkDataVersion = aChild.GetNetworkDataVersion(); in SetFrom()
53 mAge = Time::MsecToSec(TimerMilli::GetNow() - aChild.GetLastHeard()); in SetFrom()
54 mLinkQualityIn = aChild.GetLinkQualityIn(); in SetFrom()
55 mAverageRssi = aChild.GetLinkInfo().GetAverageRss(); in SetFrom()
56 mLastRssi = aChild.GetLinkInfo().GetLastRss(); in SetFrom()
[all …]
Dindirect_sender.hpp176 void AddMessageForSleepyChild(Message &aMessage, Child &aChild);
187 Error RemoveMessageFromSleepyChild(Message &aMessage, Child &aChild);
194 void ClearAllMessagesForSleepyChild(Child &aChild);
207 Message *FindQueuedMessageForSleepyChild(const Child &aChild, MessageChecker aChecker) in FindQueuedMessageForSleepyChild() argument
209 return AsNonConst(AsConst(this)->FindQueuedMessageForSleepyChild(aChild, aChecker)); in FindQueuedMessageForSleepyChild()
223 …const Message *FindQueuedMessageForSleepyChild(const Child &aChild, MessageChecker aChecker) const;
237 bool HasQueuedMessageForSleepyChild(const Child &aChild, MessageChecker aChecker) const in HasQueuedMessageForSleepyChild() argument
239 return (FindQueuedMessageForSleepyChild(aChild, aChecker) != nullptr); in HasQueuedMessageForSleepyChild()
248 void SetChildUseShortAddress(Child &aChild, bool aUseShortAddress);
256 void HandleChildModeChange(Child &aChild, Mle::DeviceMode aOldMode);
[all …]
Dnetwork_diagnostic_tlvs.cpp43 void ChildTlv::InitFrom(const Child &aChild) in InitFrom() argument
50 mFlags |= aChild.IsRxOnWhenIdle() ? kFlagsRxOnWhenIdle : 0; in InitFrom()
51 mFlags |= aChild.IsFullThreadDevice() ? kFlagsFtd : 0; in InitFrom()
52 mFlags |= (aChild.GetNetworkDataType() == NetworkData::kFullSet) ? kFlagsFullNetdta : 0; in InitFrom()
55 mRloc16 = BigEndian::HostSwap16(aChild.GetRloc16()); in InitFrom()
56 mExtAddress = aChild.GetExtAddress(); in InitFrom()
57 mVersion = BigEndian::HostSwap16(aChild.GetVersion()); in InitFrom()
58 mTimeout = BigEndian::HostSwap32(aChild.GetTimeout()); in InitFrom()
59 …mAge = BigEndian::HostSwap32(Time::MsecToSec(TimerMilli::GetNow() - aChild.GetLast… in InitFrom()
60 mConnectionTime = BigEndian::HostSwap32(aChild.GetConnectionTime()); in InitFrom()
[all …]
Dsrc_match_controller.hpp92 void IncrementMessageCount(Child &aChild);
99 void DecrementMessageCount(Child &aChild);
106 void ResetMessageCount(Child &aChild);
115 void SetSrcMatchAsShort(Child &aChild, bool aUseShortAddress);
144 void AddEntry(Child &aChild);
155 void ClearEntry(Child &aChild);
166 Error AddAddress(const Child &aChild);
Dchild_supervision.cpp63 void ChildSupervisor::SendMessage(Child &aChild) in SendMessage() argument
68 VerifyOrExit(aChild.GetIndirectMessageCount() == 0); in SendMessage()
78 childIndex = Get<ChildTable>().GetChildIndex(aChild); in SendMessage()
83 LogInfo("Sending supervision message to child 0x%04x", aChild.GetRloc16()); in SendMessage()
89 void ChildSupervisor::UpdateOnSend(Child &aChild) { aChild.ResetSecondsSinceLastSupervision(); } in UpdateOnSend() argument
Dchild_table.cpp268 void ChildTable::RemoveStoredChild(const Child &aChild) in RemoveStoredChild() argument
272 if (iter.GetChildInfo().GetRloc16() == aChild.GetRloc16()) in RemoveStoredChild()
280 Error ChildTable::StoreChild(const Child &aChild) in StoreChild() argument
284 RemoveStoredChild(aChild); in StoreChild()
287 childInfo.SetExtAddress(aChild.GetExtAddress()); in StoreChild()
288 childInfo.SetTimeout(aChild.GetTimeout()); in StoreChild()
289 childInfo.SetRloc16(aChild.GetRloc16()); in StoreChild()
290 childInfo.SetMode(aChild.GetDeviceMode().Get()); in StoreChild()
291 childInfo.SetVersion(aChild.GetVersion()); in StoreChild()
Dmle_router.cpp1862 Error MleRouter::ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild) in ProcessAddressRegistrationTlv() argument
1880 if (aChild.GetDomainUnicastAddress(oldDua) != kErrorNone) in ProcessAddressRegistrationTlv()
1887 if (aChild.HasAnyMlrRegisteredAddress()) in ProcessAddressRegistrationTlv()
1889 OT_ASSERT(aChild.IsStateValid()); in ProcessAddressRegistrationTlv()
1891 for (const Child::Ip6AddrEntry &addrEntry : aChild.GetIp6Addresses()) in ProcessAddressRegistrationTlv()
1898 if (addrEntry.GetMlrState(aChild) == kMlrStateRegistered) in ProcessAddressRegistrationTlv()
1906 aChild.ClearIp6Addresses(); in ProcessAddressRegistrationTlv()
1935 aChild.GetRloc16()); in ProcessAddressRegistrationTlv()
1962 error = aChild.AddIp6Address(address); in ProcessAddressRegistrationTlv()
1968 LogInfo("Child 0x%04x IPv6 address[%u]=%s", aChild.GetRloc16(), storedCount, in ProcessAddressRegistrationTlv()
[all …]
Dchild_table.hpp118 …uint16_t GetChildIndex(const Child &aChild) const { return static_cast<uint16_t>(&aChild - mChildr… in GetChildIndex()
259 void RemoveStoredChild(const Child &aChild);
269 Error StoreChild(const Child &aChild);
Dmle_router.hpp633 Error SendChildIdResponse(Child &aChild);
634 Error SendChildUpdateRequestToChild(Child &aChild);
635 void SendChildUpdateResponseToChild(Child *aChild,
649 Error ProcessAddressRegistrationTlv(RxInfo &aRxInfo, Child &aChild);
652 void SetChildStateToValid(Child &aChild);
664 void SignalDuaAddressEvent(const Child &aChild, const Ip6::Address &aOldDua) const;
Dchild.hpp84 void SetFrom(const Child &aChild);
111 MlrState GetMlrState(const Child &aChild) const;
119 void SetMlrState(MlrState aState, Child &aChild);
Dchild_supervision.hpp119 void UpdateOnSend(Child &aChild);
124 void SendMessage(Child &aChild);
Ddua_manager.hpp179 void HandleChildDuaAddressEvent(const Child &aChild, ChildDuaAddressEvent aEvent);
199 …dressNotification(Ip6::Address &aAddress, ThreadStatusTlv::DuaStatus aStatus, const Child &aChild);
Dmlr_manager.cpp141 void MlrManager::UpdateProxiedSubscriptions(Child &aChild, const MlrAddressArray &aOldMlrRegistered… in UpdateProxiedSubscriptions() argument
143 VerifyOrExit(aChild.IsStateValid()); in UpdateProxiedSubscriptions()
146 for (Child::Ip6AddrEntry &addrEntry : aChild.GetIp6Addresses()) in UpdateProxiedSubscriptions()
162 … isMlrRegistered = isMlrRegistered || IsAddressMlrRegisteredByAnyChildExcept(addrEntry, &aChild); in UpdateProxiedSubscriptions()
164 addrEntry.SetMlrState(isMlrRegistered ? kMlrStateRegistered : kMlrStateToRegister, aChild); in UpdateProxiedSubscriptions()
171 if (aChild.HasAnyMlrToRegisterAddress()) in UpdateProxiedSubscriptions()
Ddua_manager.cpp718 const Child &aChild) in SendAddressNotification() argument
730 messageInfo.SetSockAddrToRlocPeerAddrTo(aChild.GetRloc16()); in SendAddressNotification()
734 …LogInfo("Sent %s for child %04x DUA %s", UriToString<kUriDuaRegistrationNotify>(), aChild.GetRloc1… in SendAddressNotification()
744 …t %s for child %04x DUA %s Error %s", UriToString<kUriDuaRegistrationNotify>(), aChild.GetRloc16(), in SendAddressNotification()
749 void DuaManager::HandleChildDuaAddressEvent(const Child &aChild, ChildDuaAddressEvent aEvent) in HandleChildDuaAddressEvent() argument
751 uint16_t childIndex = Get<ChildTable>().GetChildIndex(aChild); in HandleChildDuaAddressEvent()
Dmlr_manager.hpp110 … void UpdateProxiedSubscriptions(Child &aChild, const MlrAddressArray &aOldMlrRegisteredAddresses);
Dnetwork_diagnostic.cpp734 Error Server::AppendChildIp6AddressListTlv(Coap::Message &aAnswer, const Child &aChild) in AppendChildIp6AddressListTlv() argument
737 uint16_t numIp6Addr = aChild.GetIp6Addresses().GetLength(); in AppendChildIp6AddressListTlv()
741 if (aChild.GetMeshLocalIp6Address(mlEid) == kErrorNone) in AppendChildIp6AddressListTlv()
769 tlvValue.SetRloc16(aChild.GetRloc16()); in AppendChildIp6AddressListTlv()
778 for (const Ip6::Address &address : aChild.GetIp6Addresses()) in AppendChildIp6AddressListTlv()
Dmesh_forwarder_ftd.cpp264 void MeshForwarder::RemoveMessagesForChild(Child &aChild, MessageChecker &aMessageChecker) in RemoveMessagesForChild() argument
273 if (mIndirectSender.RemoveMessageFromSleepyChild(message, aChild) != kErrorNone) in RemoveMessagesForChild()
292 if (&aChild == neighbor) in RemoveMessagesForChild()
Dnetwork_diagnostic.hpp207 Error AppendChildIp6AddressListTlv(Coap::Message &aAnswer, const Child &aChild);
Dmesh_forwarder.hpp235 void RemoveMessagesForChild(Child &aChild, MessageChecker aMessageChecker);
/openthread-latest/src/core/mac/
Ddata_poll_handler.cpp64 void DataPollHandler::RequestFrameChange(FrameChange aChange, Child &aChild) in RequestFrameChange() argument
66 if ((mIndirectTxChild == &aChild) && Get<Mac::Mac>().IsPerformingIndirectTransmit()) in RequestFrameChange()
71 aChild.SetFrameReplacePending(true); in RequestFrameChange()
75 aChild.SetFramePurgePending(true); in RequestFrameChange()
81 ResetTxAttempts(aChild); in RequestFrameChange()
82 Get<IndirectSender>().HandleFrameChangeDone(aChild); in RequestFrameChange()
190 void DataPollHandler::HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild) in HandleSentFrame() argument
192 if (aChild.IsFramePurgePending()) in HandleSentFrame()
194 aChild.SetFramePurgePending(false); in HandleSentFrame()
195 aChild.SetFrameReplacePending(false); in HandleSentFrame()
[all …]
Ddata_poll_handler.hpp182 void RequestFrameChange(FrameChange aChange, Child &aChild);
192 void HandleSentFrame(const Mac::TxFrame &aFrame, Error aError, Child &aChild);
194 void ResetTxAttempts(Child &aChild);
/openthread-latest/tests/unit/
Dtest_child.cpp47 void VerifyChildIp6Addresses(const Child &aChild, uint8_t aAddressListLength, const Ip6::Address aA… in VerifyChildIp6Addresses() argument
55 VerifyOrQuit(aChild.HasIp6Address(aAddressList[index])); in VerifyChildIp6Addresses()
60 for (const Ip6::Address &address : aChild.GetIp6Addresses()) in VerifyChildIp6Addresses()
83 SuccessOrQuit(aChild.GetMeshLocalIp6Address(address)); in VerifyChildIp6Addresses()
97 VerifyOrQuit(aChild.GetMeshLocalIp6Address(address) == kErrorNotFound, in VerifyChildIp6Addresses()
Dtest_child_table.cpp64 static bool ChildMatches(const Child &aChild, const TestChild &aTestChild) in ChildMatches() argument
66 return (aChild.GetState() == aTestChild.mState) && (aChild.GetRloc16() == aTestChild.mRloc16) && in ChildMatches()
67 (aChild.GetExtAddress() == static_cast<const Mac::ExtAddress &>(aTestChild.mExtAddress)); in ChildMatches()

12