/openthread-3.4.0/tests/toranj/cli/ |
D | test-016-child-mode-change.py | 80 for entry in child_table: 81 if int(entry['RLOC16'], 16) == child1_rloc: 82 verify(entry['R'] == '1') 83 verify(entry['D'] == '0') 84 verify(entry['N'] == '1') 85 elif int(entry['RLOC16'], 16) == child2_rloc: 86 verify(entry['R'] == '0') 87 verify(entry['D'] == '0') 88 verify(entry['N'] == '0') 103 for entry in child_table: [all …]
|
D | test-009-router-table.py | 116 for entry in table: 117 rloc16 = int(entry['RLOC16'], 0) 118 link = int(entry['Link']) 119 nexthop = int(entry['Next Hop']) 120 cost = int(entry['Path Cost']) 151 for entry in table: 152 rloc16 = int(entry['RLOC16'], 0) 153 link = int(entry['Link']) 154 nexthop = int(entry['Next Hop']) 155 cost = int(entry['Path Cost']) [all …]
|
D | test-014-address-resolver.py | 110 for entry in table: 111 …verify(int(entry['RLOC16'], 0) == r1_rloc16 or int(entry['Link']) == 1 or int(entry['Next Hop']) !… 164 for entry in cache_table: 165 fields = entry.strip().split(' ') 180 for entry in cache_table: 181 fields = entry.strip().split(' ') 206 for entry in cache_table: 207 fields = entry.strip().split(' ') 226 for entry in cache_table: 227 fields = entry.strip().split(' ') [all …]
|
D | test-013-address-cache-parent-switch.py | 116 for entry in table: 117 …verify(int(entry['RLOC16'], 0) == r1_rloc16 or int(entry['Link']) == 1 or int(entry['Next Hop']) !… 149 for entry in cache_table: 150 fields = entry.strip().split(' ') 199 for entry in cache_table: 200 fields = entry.strip().split(' ') 218 for entry in cache_table: 219 fields = entry.strip().split(' ')
|
/openthread-3.4.0/src/core/mac/ |
D | mac_filter.cpp | 50 for (FilterEntry &entry : mFilterEntries) in Filter() 52 entry.mFiltered = false; in Filter() 53 entry.mRssIn = kFixedRssDisabled; in Filter() 61 for (const FilterEntry &entry : mFilterEntries) in FindEntry() local 63 if (entry.IsInUse() && (aExtAddress == entry.mExtAddress)) in FindEntry() 65 ExitNow(rval = &entry); in FindEntry() 77 for (FilterEntry &entry : mFilterEntries) in FindAvailableEntry() 79 if (!entry.IsInUse()) in FindAvailableEntry() 81 ExitNow(rval = &entry); in FindAvailableEntry() 92 FilterEntry *entry = FindEntry(aExtAddress); in AddAddress() local [all …]
|
/openthread-3.4.0/examples/platforms/utils/ |
D | soft_source_match_table.c | 63 int16_t entry = -1; in utilsSoftSrcMatchShortFindEntry() local 70 entry = i; in utilsSoftSrcMatchShortFindEntry() 75 return entry; in utilsSoftSrcMatchShortFindEntry() 80 int16_t entry = -1; in findSrcMatchShortAvailEntry() local 86 entry = i; in findSrcMatchShortAvailEntry() 91 return entry; in findSrcMatchShortAvailEntry() 94 static inline void addToSrcMatchShortIndirect(uint16_t entry, uint16_t aShortAddress) in addToSrcMatchShortIndirect() argument 98 srcMatchShortEntry[entry].checksum = checksum; in addToSrcMatchShortIndirect() 99 srcMatchShortEntry[entry].allocated = true; in addToSrcMatchShortIndirect() 102 static inline void removeFromSrcMatchShortIndirect(uint16_t entry) in removeFromSrcMatchShortIndirect() argument [all …]
|
/openthread-3.4.0/src/core/utils/ |
D | history_tracker.cpp | 70 NetworkInfo *entry = mNetInfoHistory.AddNewEntry(); in RecordNetworkInfo() local 73 VerifyOrExit(entry != nullptr); in RecordNetworkInfo() 75 entry->mRole = MapEnum(Get<Mle::Mle>().GetRole()); in RecordNetworkInfo() 76 entry->mRloc16 = Get<Mle::Mle>().GetRloc16(); in RecordNetworkInfo() 77 entry->mPartitionId = Get<Mle::Mle>().GetLeaderData().GetPartitionId(); in RecordNetworkInfo() 79 mode.Get(entry->mMode); in RecordNetworkInfo() 87 MessageInfo *entry = nullptr; in RecordMessage() local 117 entry = mRxHistory.AddNewEntry(); in RecordMessage() 121 entry = mTxHistory.AddNewEntry(); in RecordMessage() 125 VerifyOrExit(entry != nullptr); in RecordMessage() [all …]
|
D | srp_client_buffers.cpp | 54 ServiceEntry *entry = mServicePool.Allocate(); in AllocateService() local 56 VerifyOrExit(entry != nullptr); in AllocateService() 58 entry->Clear(); in AllocateService() 59 entry->mService.mName = entry->mServiceName; in AllocateService() 60 entry->mService.mInstanceName = entry->mInstanceName; in AllocateService() 61 entry->mService.mSubTypeLabels = entry->mSubTypeLabels; in AllocateService() 62 entry->mService.mTxtEntries = &entry->mTxtEntry; in AllocateService() 63 entry->mService.mNumTxtEntries = 1; in AllocateService() 64 entry->mTxtEntry.mValue = entry->mTxtBuffer; in AllocateService() 67 return entry; in AllocateService()
|
/openthread-3.4.0/tests/toranj/ncp/ |
D | test-020-router-table.py | 127 for entry in router_table: 128 if entry.rloc16 == r1_rloc: 130 elif entry.rloc16 == r2_rloc: 132 verify(entry.is_link_established()) 133 verify(entry.ext_address == r2_ext_addr) 134 elif entry.rloc16 == r3_rloc: 136 verify(entry.is_link_established()) 137 verify(entry.ext_address == r3_ext_addr) 138 elif entry.rloc16 == r4_rloc: 140 verify(not entry.is_link_established()) [all …]
|
D | test-021-address-cache-table.py | 129 for entry in router_table: 130 if entry.rloc16 == r3_rloc: 131 verify(entry.next_hop != INVALID_ROUTER_ID) 161 for entry in addr_cache_table: 162 if entry.address == c2_address: 164 verify(entry.rloc16 == r2_rloc) 165 elif entry.address == c3_address: 167 verify(entry.rloc16 == c3_rloc) 232 for entry in addr_cache_table: 233 if entry.address == c3_address: [all …]
|
D | test-016-neighbor-table.py | 119 for entry in neighbor_table: 120 if entry.ext_address == ext_addr: 125 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16)) 126 verify(entry.is_rx_on_when_idle() is False) 127 verify(entry.is_ftd() is False) 128 verify(entry.is_child()) 133 for entry in neighbor_table: 134 if entry.ext_address == ext_addr: 139 verify(int(entry.rloc16, 16) == int(router.get(wpan.WPAN_THREAD_RLOC16), 16)) 140 verify(entry.is_rx_on_when_idle()) [all …]
|
D | test-011-child-table.py | 80 for entry in child_table: 81 if entry.ext_address == ext_addr: 87 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16)) 88 verify(int(entry.timeout, 0) == 120) 89 verify(entry.is_rx_on_when_idle() is False) 90 verify(entry.is_ftd() is False)
|
/openthread-3.4.0/src/core/thread/ |
D | address_resolver.cpp | 75 CacheEntry *entry; in Clear() local 77 while ((entry = list->Pop()) != nullptr) in Clear() 81 Get<MeshForwarder>().HandleResolved(entry->GetTarget(), kErrorDrop); in Clear() 84 mCacheEntryPool.Free(*entry); in Clear() 93 const CacheEntry *entry = aIterator.GetEntry(); in GetNextCacheEntry() local 95 while (entry == nullptr) in GetNextCacheEntry() 118 entry = list->GetHead(); in GetNextCacheEntry() 123 aIterator.SetEntry(entry->GetNext()); in GetNextCacheEntry() 127 aInfo.mTarget = entry->GetTarget(); in GetNextCacheEntry() 128 aInfo.mRloc16 = entry->GetRloc16(); in GetNextCacheEntry() [all …]
|
D | network_data_publisher.cpp | 71 for (PrefixEntry &entry : mPrefixEntries) in Publisher() 73 entry.Init(aInstance); in Publisher() 83 PrefixEntry *entry; in PublishOnMeshPrefix() local 88 entry = FindOrAllocatePrefixEntry(aConfig.GetPrefix(), aRequester); in PublishOnMeshPrefix() 89 VerifyOrExit(entry != nullptr, error = kErrorNoBufs); in PublishOnMeshPrefix() 91 entry->Publish(aConfig, aRequester); in PublishOnMeshPrefix() 107 PrefixEntry *entry; in ReplacePublishedExternalRoute() local 112 entry = FindOrAllocatePrefixEntry(aPrefix, aRequester); in ReplacePublishedExternalRoute() 113 VerifyOrExit(entry != nullptr, error = kErrorNoBufs); in ReplacePublishedExternalRoute() 115 entry->Publish(aConfig, aRequester); in ReplacePublishedExternalRoute() [all …]
|
/openthread-3.4.0/src/core/common/ |
D | linked_list.hpp | 193 Type *entry = mHead; in Pop() local 200 return entry; in Pop() 216 Type *entry; in PopAfter() local 220 entry = Pop(); in PopAfter() 224 entry = aPrevEntry->GetNext(); in PopAfter() 226 if (entry != nullptr) in PopAfter() 228 aPrevEntry->SetNext(entry->GetNext()); in PopAfter() 232 return entry; in PopAfter() 343 Type *entry = FindMatching(aIndicator, prev); in RemoveMatching() local 345 if (entry != nullptr) in RemoveMatching() [all …]
|
D | pool.hpp | 75 for (Type &entry : mPool) in Pool() 77 mFreeList.Push(entry); in Pool() 93 for (Type &entry : mPool) in Pool() 95 entry.Init(aInstance); in Pool() 96 mFreeList.Push(entry); in Pool() 128 for (Type &entry : mPool) in FreeAll() 130 mFreeList.Push(entry); in FreeAll()
|
D | binary_search.cpp | 46 const void *entry; in Find() local 64 entry = reinterpret_cast<const uint8_t *>(aTable) + aEntrySize * middle; in Find() 66 compare = aComparator(aKey, entry); in Find() 82 entry = nullptr; in Find() 85 return entry; in Find()
|
/openthread-3.4.0/src/core/radio/ |
D | trel_interface.cpp | 188 Peer *entry; in HandleDiscoveredPeerInfo() local 201 entry = mPeerTable.FindMatching(extAddress); in HandleDiscoveredPeerInfo() 202 VerifyOrExit(entry != nullptr); in HandleDiscoveredPeerInfo() 203 RemovePeerEntry(*entry); in HandleDiscoveredPeerInfo() 213 entry = mPeerTable.FindMatching(aInfo.GetSockAddr()); in HandleDiscoveredPeerInfo() 215 if ((entry != nullptr) && !entry->Matches(extAddress)) in HandleDiscoveredPeerInfo() 217 RemovePeerEntry(*entry); in HandleDiscoveredPeerInfo() 218 entry = nullptr; in HandleDiscoveredPeerInfo() 221 if (entry == nullptr) in HandleDiscoveredPeerInfo() 223 entry = mPeerTable.FindMatching(extAddress); in HandleDiscoveredPeerInfo() [all …]
|
/openthread-3.4.0/src/core/net/ |
D | netif.cpp | 279 for (const MulticastAddress *entry = aStart; entry != aEnd; entry = entry->GetNext()) in SignalMulticastAddressChange() local 282 Get<Utils::HistoryTracker>().RecordAddressEvent(aAddressEvent, *entry, kOriginThread); in SignalMulticastAddressChange() 287 AddressInfo addressInfo(*entry); in SignalMulticastAddressChange() 350 ExternalMulticastAddress *entry; in SubscribeExternalMulticast() local 364 entry = mExtMulticastAddressPool.Allocate(); in SubscribeExternalMulticast() 365 VerifyOrExit(entry != nullptr, error = kErrorNoBufs); in SubscribeExternalMulticast() 367 entry->mAddress = aAddress; in SubscribeExternalMulticast() 369 entry->mMlrState = kMlrStateToRegister; in SubscribeExternalMulticast() 371 mMulticastAddresses.Push(*entry); in SubscribeExternalMulticast() 374 Get<Utils::HistoryTracker>().RecordAddressEvent(kAddressAdded, *entry, kOriginManual); in SubscribeExternalMulticast() [all …]
|
/openthread-3.4.0/tests/unit/ |
D | test_array.cpp | 81 uint16_t *entry = array.PushBack(); in TestArray() local 83 VerifyOrQuit(entry != nullptr); in TestArray() 84 *entry = seed + len; in TestArray() 119 for (uint16_t &entry : array) in TestArray() 122 entry++; in TestArray() 124 VerifyOrQuit(entry == array[index]); in TestArray() 125 VerifyOrQuit(array.IndexOf(entry) == index); in TestArray() 138 uint16_t *entry = array.PopBack(); in TestArray() local 140 VerifyOrQuit(entry != nullptr); in TestArray() 141 VerifyOrQuit(*entry == seed + len); in TestArray() [all …]
|
D | test_heap_array.cpp | 140 for (const EntryType &entry : aArray) in VerifyArray() local 144 VerifyEntry(entry, aArray, values[index]); in VerifyArray() 146 VerifyOrQuit(aArray.Contains(entry)); in VerifyArray() 147 VerifyOrQuit(aArray.Find(entry) == &entry); in VerifyArray() 148 VerifyOrQuit(aArray.IndexOf(entry) == index); in VerifyArray() 152 VerifyOrQuit(aArray.Front() == &entry); in VerifyArray() 157 VerifyOrQuit(aArray.Back() == &entry); in VerifyArray() 185 uint16_t *entry; in TestHeapArrayOfUint16() local 213 entry = array.PushBack(); in TestHeapArrayOfUint16() 214 VerifyOrQuit(entry != nullptr); in TestHeapArrayOfUint16() [all …]
|
D | test_binary_search.cpp | 76 const Entry *entry; in TestBinarySearch() local 81 entry = BinarySearch::Find(name, kTable); in TestBinarySearch() 82 VerifyOrQuit(entry == &tableEntry, "BinarySearch::Find() failed"); in TestBinarySearch() 86 entry = BinarySearch::Find(name, kTable); in TestBinarySearch() 87 VerifyOrQuit(entry == nullptr, "BinarySearch::Find() failed with non-matching name"); in TestBinarySearch()
|
/openthread-3.4.0/src/core/meshcop/ |
D | meshcop_tlvs.cpp | 250 const ChannelMaskEntryBase *entry = nullptr; in GetFirstEntry() local 254 entry = reinterpret_cast<const ChannelMaskEntryBase *>(GetValue()); in GetFirstEntry() 255 VerifyOrExit(GetLength() >= entry->GetEntrySize(), entry = nullptr); in GetFirstEntry() 258 return entry; in GetFirstEntry() 266 ChannelMaskEntry *entry; in SetChannelMask() local 268 entry = static_cast<ChannelMaskEntry *>(GetFirstEntry()); in SetChannelMask() 273 OT_ASSERT(entry != nullptr); in SetChannelMask() 274 entry->Init(); in SetChannelMask() 275 entry->SetChannelPage(OT_RADIO_CHANNEL_PAGE_2); in SetChannelMask() 276 entry->SetMask(aChannelMask & OT_RADIO_915MHZ_OQPSK_CHANNEL_MASK); in SetChannelMask() [all …]
|
/openthread-3.4.0/src/ncp/ |
D | changed_props_set.cpp | 107 const Entry *entry; in Add() local 109 entry = GetSupportedEntries(numEntries); in Add() 111 for (uint8_t index = 0; index < numEntries; index++, entry++) in Add() 113 if ((entry->mPropKey == aPropKey) && (entry->mStatus == aStatus)) in Add() 128 const Entry *entry; in EnablePropertyFilter() local 131 entry = GetSupportedEntries(numEntries); in EnablePropertyFilter() 133 for (uint8_t index = 0; index < numEntries; index++, entry++) in EnablePropertyFilter() 135 if (entry->mFilterable && (entry->mPropKey == aPropKey)) in EnablePropertyFilter() 171 const Entry *entry; in IsPropertyFiltered() local 173 entry = GetSupportedEntries(numEntries); in IsPropertyFiltered() [all …]
|
/openthread-3.4.0/src/core/border_router/ |
D | routing_manager.cpp | 1168 Entry *entry; in ProcessDefaultRoute() local 1172 entry = aRouter.mEntries.FindMatching(Entry::Matcher(prefix, Entry::kTypeRoute)); in ProcessDefaultRoute() 1174 if (entry == nullptr) in ProcessDefaultRoute() 1178 entry = AllocateEntry(); in ProcessDefaultRoute() 1180 if (entry == nullptr) in ProcessDefaultRoute() 1186 entry->SetFrom(aRaHeader); in ProcessDefaultRoute() 1187 aRouter.mEntries.Push(*entry); in ProcessDefaultRoute() 1191 entry->SetFrom(aRaHeader); in ProcessDefaultRoute() 1194 mEntryTimer.FireAtIfEarlier(entry->GetExpireTime()); in ProcessDefaultRoute() 1206 Entry *entry; in ProcessPrefixInfoOption() local [all …]
|