/openthread-3.5.0/src/core/thread/ |
D | child_table.cpp | 80 for (Child &child : mChildren) in ChildTable() 82 child.Init(aInstance); in ChildTable() 83 child.Clear(); in ChildTable() 89 for (Child &child : mChildren) in Clear() 91 child.Clear(); in Clear() 97 Child *child = nullptr; in GetChildAtIndex() local 100 child = &mChildren[aChildIndex]; in GetChildAtIndex() 103 return child; in GetChildAtIndex() 108 Child *child = FindChild(Child::AddressMatcher(Child::kInStateInvalid)); in GetNewChild() local 110 VerifyOrExit(child != nullptr); in GetNewChild() [all …]
|
D | csl_tx_scheduler.cpp | 101 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateAnyExceptInvalid)) in Clear() 103 child.ResetCslTxAttempts(); in Clear() 104 child.SetCslSynchronized(false); in Clear() 105 child.SetCslChannel(0); in Clear() 106 child.SetCslTimeout(0); in Clear() 107 child.SetCslPeriod(0); in Clear() 108 child.SetCslPhase(0); in Clear() 109 child.SetCslLastHeard(TimeMilli(0)); in Clear() 128 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateAnyExceptInvalid)) in RescheduleCslTx() 133 if (!child.IsCslSynchronized() || child.GetIndirectMessageCount() == 0) in RescheduleCslTx() [all …]
|
D | child_supervision.cpp | 56 Child *child = nullptr; in GetDestination() local 62 child = Get<ChildTable>().GetChildAtIndex(childIndex); in GetDestination() 65 return child; in GetDestination() 99 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in HandleTimeTick() 101 if (child.IsRxOnWhenIdle() || (child.GetSupervisionInterval() == 0)) in HandleTimeTick() 106 child.IncrementSecondsSinceLastSupervision(); in HandleTimeTick() 108 if (child.GetSecondsSinceLastSupervision() >= child.GetSupervisionInterval()) in HandleTimeTick() 110 SendMessage(child); in HandleTimeTick()
|
D | mle_router.cpp | 453 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValidOrRestoring)) in SetStateRouterOrLeader() 455 if (RouterIdFromRloc16(child.GetRloc16()) != mRouterId) in SetStateRouterOrLeader() 457 RemoveNeighbor(child); in SetStateRouterOrLeader() 1415 Child *child; in HandleParentRequest() local 1473 child = mChildTable.FindChild(extAddr, Child::kInStateAnyExceptInvalid); in HandleParentRequest() 1475 if (child == nullptr) in HandleParentRequest() 1477 VerifyOrExit((child = mChildTable.GetNewChild()) != nullptr, error = kErrorNoBufs); in HandleParentRequest() 1480 InitNeighbor(*child, aRxInfo); in HandleParentRequest() 1481 child->SetState(Neighbor::kStateParentRequest); in HandleParentRequest() 1483 … child->SetTimeSyncEnabled(Tlv::Find<TimeRequestTlv>(aRxInfo.mMessage, nullptr, 0) == kErrorNone); in HandleParentRequest() [all …]
|
D | mlr_manager.cpp | 137 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in IsAddressMlrRegisteredByAnyChildExcept() 139 if (&child != aExceptChild && child.HasMlrRegisteredAddress(aAddress)) in IsAddressMlrRegisteredByAnyChildExcept() 245 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in SendMulticastListenerRegistration() 252 if (!child.HasAnyMlrToRegisterAddress()) in SendMulticastListenerRegistration() 257 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SendMulticastListenerRegistration() 264 if (child.GetAddressMlrState(address) == kMlrStateToRegister) in SendMulticastListenerRegistration() 267 child.SetAddressMlrState(address, kMlrStateRegistering); in SendMulticastListenerRegistration() 530 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValid)) in SetMulticastAddressMlrState() 532 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SetMulticastAddressMlrState() 534 if (child.GetAddressMlrState(address) == aFromState) in SetMulticastAddressMlrState() [all …]
|
D | neighbor_table.cpp | 158 for (Child &child : Get<ChildTable>().Iterate(aFilter)) in FindNeighbor() 160 if (child.HasIp6Address(aIp6Address)) in FindNeighbor() 162 ExitNow(neighbor = &child); in FindNeighbor() 192 Child *child = Get<ChildTable>().GetChildAtIndex(static_cast<uint16_t>(index)); in GetNextNeighborInfo() local 194 if (child == nullptr) in GetNextNeighborInfo() 199 if (child->IsStateValid()) in GetNextNeighborInfo() 201 aNeighInfo.SetFrom(*child); in GetNextNeighborInfo()
|
D | src_match_controller.cpp | 215 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValidOrRestoring)) in AddPendingEntries() 217 if (child.IsIndirectSourceMatchPending()) in AddPendingEntries() 219 SuccessOrExit(error = AddAddress(child)); in AddPendingEntries() 220 child.SetIndirectSourceMatchPending(false); in AddPendingEntries()
|
D | mesh_forwarder_ftd.cpp | 85 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValidOrRestoring)) in SendMessage() 87 if (!child.IsRxOnWhenIdle()) in SendMessage() 89 mIndirectSender.AddMessageForSleepyChild(aMessage, child); in SendMessage() 96 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateValidOrRestoring)) in SendMessage() 98 … if (!child.IsRxOnWhenIdle() && child.HasIp6Address(ip6Header.GetDestination())) in SendMessage() 100 mIndirectSender.AddMessageForSleepyChild(aMessage, child); in SendMessage() 127 Child *child = Get<ChildSupervisor>().GetDestination(aMessage); in SendMessage() local 128 OT_ASSERT((child != nullptr) && !child->IsRxOnWhenIdle()); in SendMessage() 129 mIndirectSender.AddMessageForSleepyChild(aMessage, *child); in SendMessage() 332 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateAnyExceptInvalid)) in RemoveDataResponseMessages() [all …]
|
/openthread-3.5.0/tests/scripts/thread-cert/ |
D | test_child_supervision.py | 70 child = self.nodes[CHILD] 78 child.start() 80 self.assertEqual(child.get_state(), 'child') 81 child.set_pollperiod(500) 83 self.assertEqual(int(child.get_child_supervision_check_failure_counter()), 0) 89 self.assertEqual(table[1]['suprvsn'], int(child.get_child_supervision_interval())) 96 child.set_child_supervision_interval(20) 100 self.assertEqual(int(child.get_child_supervision_interval()), 20) 103 self.assertEqual(table[1]['suprvsn'], int(child.get_child_supervision_interval())) 107 child.set_child_supervision_check_timeout(25) [all …]
|
D | test_mle_msg_key_seq_jump.py | 84 child = self.nodes[CHILD] 88 nodes = [leader, child, reed, router] 100 child.start() 103 self.assertEqual(child.get_state(), 'child') 124 child.set_key_sequence_counter(5) 125 self.assertEqual(child.get_key_sequence_counter(), 5) 127 child.set_mode('r') 130 self.assertEqual(child.get_key_sequence_counter(), 5) 162 child.set_mode('rn') 164 self.assertEqual(child.get_key_sequence_counter(), 10) [all …]
|
D | test_history_tracker.py | 73 child = self.nodes[CHILD] 134 child.start() 136 self.assertEqual(child.get_state(), 'child') 138 child_rloc16 = child.get_addr16() 143 netinfo = child.history_netinfo(2) 154 child.set_mode('rn') 156 netinfo = child.history_netinfo(1) 163 child_mleid = child.get_mleid() 174 child_tx = child.history_tx(num_msgs) 175 child_rx = child.history_rx(num_msgs)
|
/openthread-3.5.0/tests/unit/ |
D | test_child_table.cpp | 74 Child child; in StateMatchesFilter() local 76 child.SetState(aState); in StateMatchesFilter() 89 rval = child.IsStateValidOrRestoring(); in StateMatchesFilter() 97 rval = child.IsStateValidOrAttaching(); in StateMatchesFilter() 101 rval = child.IsStateInvalid(); in StateMatchesFilter() 105 rval = !child.IsStateValidOrRestoring(); in StateMatchesFilter() 127 Child *child; in VerifyChildTableContent() local 135 child = aTable.FindChild(aChildList[listIndex].mRloc16, filter); in VerifyChildTableContent() 136 VerifyOrQuit(child != nullptr, "FindChild(rloc) failed"); in VerifyChildTableContent() 137 …VerifyOrQuit(ChildMatches(*child, aChildList[listIndex]), "FindChild(rloc) returned incorrect chil… in VerifyChildTableContent() [all …]
|
D | test_child.cpp | 191 Child child; in TestChildIp6Address() local 208 child.Init(*sInstance); in TestChildIp6Address() 232 child.Clear(); in TestChildIp6Address() 233 VerifyChildIp6Addresses(child, 0, nullptr); in TestChildIp6Address() 241 SuccessOrQuit(child.AddIp6Address(addresses[index])); in TestChildIp6Address() 242 VerifyChildIp6Addresses(child, 1, &addresses[index]); in TestChildIp6Address() 244 child.ClearIp6Addresses(); in TestChildIp6Address() 245 VerifyChildIp6Addresses(child, 0, nullptr); in TestChildIp6Address() 255 SuccessOrQuit(child.AddIp6Address(addresses[index])); in TestChildIp6Address() 256 VerifyChildIp6Addresses(child, index + 1, addresses); in TestChildIp6Address() [all …]
|
D | test_link_metrics_manager.cpp | 125 Child *child; in TestLinkMetricsManager() local 127 child = childTable->GetNewChild(); in TestLinkMetricsManager() 128 VerifyOrQuit(child != nullptr, "GetNewChild() failed"); in TestLinkMetricsManager() 130 child->SetState(mTestChildList[i].mState); in TestLinkMetricsManager() 131 child->SetExtAddress((AsCoreType(&mTestChildList[i].mExtAddress))); in TestLinkMetricsManager() 132 child->SetVersion(mTestChildList[i].mThreadVersion); in TestLinkMetricsManager()
|
/openthread-3.5.0/tests/toranj/ncp/ |
D | test-029-data-poll-interval.py | 47 child = wpan.Node() variable 60 child.join_node(parent, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 67 child_timeout = int(child.get(wpan.WPAN_THREAD_CHILD_TIMEOUT), 0) * 1000 68 default_poll_interval = int(child.get(wpan.WPAN_POLL_INTERVAL), 0) 77 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0) 79 child.set(wpan.WPAN_POLL_INTERVAL, str(poll_interval)) 80 verify(int(child.get(wpan.WPAN_POLL_INTERVAL), 0) == poll_interval) 83 poll_count_after = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0) 100 child.set(wpan.WPAN_POLL_INTERVAL, '5000') 103 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0) [all …]
|
D | test-032-child-attach-with-multiple-ip-addresses.py | 72 child = wpan.Node() variable 88 parent.allowlist_node(child) 89 child.allowlist_node(parent) 91 child.join_node(parent, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 92 child.set(wpan.WPAN_POLL_INTERVAL, '400') 115 verify_address([child], prefix1) 116 verify_address([child], prefix2) 117 verify_address([child], prefix3) 118 verify_address([child], prefix4) 124 parent.remove(wpan.WPAN_MAC_ALLOWLIST_ENTRIES, child.get(wpan.WPAN_EXT_ADDRESS)[1:-1]) [all …]
|
D | test-019-inform-previous-parent.py | 72 child = wpan.Node() variable 93 parent2.allowlist_node(child) 97 child.join_node(parent2, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 98 child.set(wpan.WPAN_POLL_INTERVAL, '300') 113 parent1.allowlist_node(child) 114 parent2.un_allowlist_node(child) 118 child.set( 134 child_num_state_changes = len(wpan.parse_list(child.get("stat:ncp"))) 138 verify(len(wpan.parse_list(child.get("stat:ncp"))) > child_num_state_changes) 139 verify(child.is_associated())
|
D | test-035-child-timeout-large-data-poll.py | 50 child = wpan.Node() variable 64 child.set(wpan.WPAN_THREAD_CHILD_TIMEOUT, str(TIMEOUT)) 66 child.set(wpan.WPAN_POLL_INTERVAL, str(5 * TIMEOUT * 1000)) 68 child.join_node(parent, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 70 poll_count_before = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0) 74 poll_count_after = int(child.get(wpan.WPAN_NCP_COUNTER_TX_PKT_DATA_POLL), 0)
|
D | test-017-parent-reset-child-recovery.py | 82 for child in sleepy_children: 83 child.join_node(parent, wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 84 child.set(wpan.WPAN_POLL_INTERVAL, '10000') 86 for child in rx_on_children: 87 child.join_node(parent, wpan.JOIN_TYPE_END_DEVICE) 140 for child in all_children: 141 child_num_state_changes.append(len(wpan.parse_list(child.get("stat:ncp"))))
|
D | test-011-child-table.py | 65 for child in children: 66 child.join_node(router, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE) 67 child.set(wpan.WPAN_POLL_INTERVAL, '1000') 78 for child in children: 79 ext_addr = child.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 87 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16))
|
D | test-034-poor-link-parent-child-attach.py | 48 child = wpan.Node() variable 63 parent.add(wpan.WPAN_MAC_FILTER_ENTRIES, child.get(wpan.WPAN_EXT_ADDRESS)[1:-1]) 65 child.set(wpan.WPAN_MAC_FILTER_FIXED_RSSI, '-99') 66 child.add(wpan.WPAN_MAC_FILTER_ENTRIES, parent.get(wpan.WPAN_EXT_ADDRESS)[1:-1]) 69 child.join_node(parent, node_type=wpan.JOIN_TYPE_END_DEVICE)
|
D | test-027-child-mode-change.py | 51 for child in children: 52 ext_addr = child.get(wpan.WPAN_EXT_ADDRESS)[1:-1] 60 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16)) 61 mode = int(child.get(wpan.WPAN_THREAD_DEVICE_MODE), 0)
|
/openthread-3.5.0/src/core/mac/ |
D | data_poll_handler.cpp | 84 for (Child &child : Get<ChildTable>().Iterate(Child::kInStateAnyExceptInvalid)) in Clear() 86 child.SetDataPollPending(false); in Clear() 87 child.SetFrameReplacePending(false); in Clear() 88 child.SetFramePurgePending(false); in Clear() 89 child.ResetIndirectTxAttempts(); in Clear() 132 Child *child; in HandleDataPoll() local 139 child = Get<ChildTable>().FindChild(macSource, Child::kInStateValidOrRestoring); in HandleDataPoll() 140 VerifyOrExit(child != nullptr); in HandleDataPoll() 142 child->SetLastHeard(TimerMilli::GetNow()); in HandleDataPoll() 143 child->ResetLinkFailures(); in HandleDataPoll() [all …]
|
/openthread-3.5.0/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 175 for (uint16_t child = 1; child < mNumValidListeners; ++child) in CheckInvariants() local 177 uint16_t parent = (child - 1) / 2; in CheckInvariants() 179 OT_ASSERT(!(mListeners[child] < mListeners[parent])); in CheckInvariants() 195 uint16_t child = 2 * index + 1; in SiftHeapElemDown() local 197 if (child >= mNumValidListeners || child <= index) // child <= index after int overflow in SiftHeapElemDown() 202 if (child + 1 < mNumValidListeners && mListeners[child + 1] < mListeners[child]) in SiftHeapElemDown() 204 child++; in SiftHeapElemDown() 207 if (!(mListeners[child] < saveElem)) in SiftHeapElemDown() 212 mListeners[index] = mListeners[child]; in SiftHeapElemDown() 214 index = child; in SiftHeapElemDown()
|
/openthread-3.5.0/third_party/mbedtls/repo/library/ |
D | x509_crt.c | 2424 static int x509_crt_check_signature( const mbedtls_x509_crt *child, in x509_crt_check_signature() argument 2432 md_info = mbedtls_md_info_from_type( child->sig_md ); in x509_crt_check_signature() 2436 if( mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ) != 0 ) in x509_crt_check_signature() 2440 psa_algorithm_t hash_alg = mbedtls_psa_translate_md( child->sig_md ); in x509_crt_check_signature() 2445 if( psa_hash_update( &hash_operation, child->tbs.p, child->tbs.len ) in x509_crt_check_signature() 2458 if( ! mbedtls_pk_can_do( &parent->pk, child->sig_pk ) ) in x509_crt_check_signature() 2462 if( rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA ) in x509_crt_check_signature() 2465 child->sig_md, hash, hash_len, in x509_crt_check_signature() 2466 child->sig.p, child->sig.len, &rs_ctx->pk ) ); in x509_crt_check_signature() 2472 return( mbedtls_pk_verify_ext( child->sig_pk, child->sig_opts, &parent->pk, in x509_crt_check_signature() [all …]
|