/openthread-2.7.6/tests/unit/ |
D | test_child.cpp | 53 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 55 VerifyOrQuit(aChild.HasIp6Address(aAddressList[index])); in VerifyChildIp6Addresses() 64 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 66 if (address == aAddressList[index]) in VerifyChildIp6Addresses() 69 addressObserved[index] = true; in VerifyChildIp6Addresses() 77 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local 81 …VerifyOrQuit(addressObserved[index], "Child::IterateIp6Addresses() missed an entry from the expect… in VerifyChildIp6Addresses() 83 if (sInstance->Get<Mle::MleRouter>().IsMeshLocalAddress(aAddressList[index])) in VerifyChildIp6Addresses() 86 …VerifyOrQuit(address == aAddressList[index], "GetMeshLocalIp6Address() did not return expected add… in VerifyChildIp6Addresses() 125 for (uint8_t index = 0; index < aAddressListLength; index++) in VerifyChildIp6Addresses() local [all …]
|
D | test_flash.cpp | 94 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 96 uint16_t length = index; in TestFlash() 101 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 103 uint16_t length = index; in TestFlash() 105 SuccessOrQuit(flash.Get(0, index, readBuffer, &length)); in TestFlash() 106 VerifyOrQuit(length == index, "Get() did not return expected length"); in TestFlash() 110 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 120 for (uint16_t index = 0; index < 16; index++) in TestFlash() local 122 uint16_t length = index; in TestFlash() 124 if ((index % 4) == 0) in TestFlash() [all …]
|
D | test_array.cpp | 51 uint8_t index; in TestArray() local 95 for (index = 0; index < len; index++) in TestArray() 97 VerifyOrQuit(array[index] == seed + index + 1); in TestArray() 98 VerifyOrQuit(array.At(index) != nullptr); in TestArray() 99 VerifyOrQuit(*array.At(index) == seed + index + 1); in TestArray() 101 VerifyOrQuit(array.Contains(seed + index + 1)); in TestArray() 102 VerifyOrQuit(array.Find(seed + index + 1) == &array[index]); in TestArray() 108 index = 0; in TestArray() 112 VerifyOrQuit(value == array[index]); in TestArray() 113 index++; in TestArray() [all …]
|
D | test_dns.cpp | 209 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 214 printf("Label[%d] = \"%s\"\n", index, label); in TestDnsName() 216 …VerifyOrQuit(strcmp(label, test.mLabels[index]) == 0, "Name::ReadLabel() did not get expected labe… in TestDnsName() 246 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 250 SuccessOrQuit(Dns::Name::CompareLabel(*message, offset, test.mLabels[index])); in TestDnsName() 349 for (uint8_t index = 0; test.mLabels[index] != nullptr; index++) in TestDnsName() local 351 SuccessOrQuit(Dns::Name::AppendLabel(test.mLabels[index], *message)); in TestDnsName() 390 …static const uint8_t kIsiRelativeIndex = 2; // Index in kEncodedName to the start of "ISI.ARPA" po… in TestDnsCompressedName() 432 for (uint8_t index = 0; index < kHeaderOffset + kGuardBlockSize; index++) in TestDnsCompressedName() local 434 SuccessOrQuit(message->Append(index)); in TestDnsCompressedName() [all …]
|
/openthread-2.7.6/src/core/mac/ |
D | mac_frame.cpp | 92 uint8_t index = FindPayloadIndex(); in ValidatePsdu() local 94 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in ValidatePsdu() 95 VerifyOrExit((index + GetFooterLength()) <= mLength, error = kErrorParse); in ValidatePsdu() 127 uint8_t index; in FindDstPanIdIndex() local 129 VerifyOrExit(IsDstPanIdPresent(), index = kInvalidIndex); in FindDstPanIdIndex() 131 index = kFcfSize + kDsnSize; in FindDstPanIdIndex() 134 return index; in FindDstPanIdIndex() 172 uint8_t index = FindDstPanIdIndex(); in GetDstPanId() local 174 VerifyOrExit(index != kInvalidIndex, error = kErrorParse); in GetDstPanId() 175 aPanId = ReadUint16(&mPsdu[index]); in GetDstPanId() [all …]
|
/openthread-2.7.6/tests/toranj/ |
D | test-039-address-cache-table-snoop.py | 158 for index in range(NUM_QUERY_ADDRS): 159 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY) 160 verify(cache_table[index].retry_delay == 2 * INITIAL_RETRY_DELAY) 183 for index in range(NUM_QUERY_ADDRS): 184 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_RETRY_QUERY) 185 verify(cache_table[index].timeout == 0) 202 for index in range(NUM_QUERY_ADDRS): 203 verify(cache_table[index].state == wpan.ADDRESS_CACHE_ENTRY_STATE_QUERY) 204 verify(cache_table[index].can_evict() == True) 227 for index in range(NUM_ADDRESSES): [all …]
|
D | test-012-multi-hop-traffic.py | 69 for index in range(NUM_ROUTERS): 93 for index in range(0, NUM_ROUTERS): 94 routers[index].allowlist_node(sed_children[index]) 95 sed_children[index].allowlist_node(routers[index]) 105 # While list routers at [index-1] and [index] 107 for index in range(1, NUM_ROUTERS): 108 routers[index - 1].allowlist_node(routers[index]) 109 routers[index].allowlist_node(routers[index - 1]) 115 for index in range(1, NUM_ROUTERS): 116 routers[index].join_node(routers[index - 1], wpan.JOIN_TYPE_ROUTER) [all …]
|
/openthread-2.7.6/tests/scripts/thread-cert/ |
D | test_history_tracker.py | 175 for index in range(num_msgs): 176 self.assertEqual(leader_tx[index]['type'], 'ICMP6(EchoReqst)') 177 self.assertEqual(leader_tx[index]['sec'], 'yes') 178 self.assertEqual(leader_tx[index]['prio'], 'norm') 179 self.assertEqual(leader_tx[index]['tx-success'], 'yes') 180 self.assertEqual(leader_tx[index]['radio'], '15.4') 181 self.assertEqual(int(leader_tx[index]['to'], 16), child_rloc16) 182 self.assertEqual(leader_tx[index]['src'][1:-3], leader_mleid) 183 self.assertEqual(leader_tx[index]['dst'][1:-3], child_mleid) 185 self.assertEqual(child_rx[index]['type'], 'ICMP6(EchoReqst)') [all …]
|
/openthread-2.7.6/tests/scripts/thread-cert/pktverify/ |
D | packet_filter.py | 48 self._saved_index = pkts.index 54 self._pkts.index = self._saved_index 71 index=None, argument 80 self._index = index if index is not None else self._start_index 102 def index(self) -> Tuple[int, int]: member in PacketFilter 104 :return: the current index (which is a tuple) 108 @index.setter 109 def index(self, index: Tuple[int, int]): member in PacketFilter 111 Set the current index 112 :param index: the index tuple to set [all …]
|
D | verify_result.py | 55 self._seek_indexes[name] = pkts.index 59 Returns a recorded packet index. 62 :return: The packet index. 77 Returns the recorded seek index. 80 :return: The seek index.
|
/openthread-2.7.6/src/ncp/ |
D | changed_props_set.cpp | 115 for (uint8_t index = 0; index < numEntries; index++, entry++) in Add() local 119 if (!IsEntryFiltered(index)) in Add() 121 SetBit(mChangedSet, index); in Add() 137 for (uint8_t index = 0; index < numEntries; index++, entry++) in EnablePropertyFilter() local 143 SetBit(mFilterSet, index); in EnablePropertyFilter() 148 ClearBit(mChangedSet, index); in EnablePropertyFilter() 152 ClearBit(mFilterSet, index); in EnablePropertyFilter() 179 for (uint8_t index = 0; index < numEntries; index++, entry++) in IsPropertyFiltered() local 183 isFiltered = IsEntryFiltered(index); in IsPropertyFiltered()
|
D | changed_props_set.hpp | 126 * This method returns a pointer to the entry associated with a given index. 128 * @param[in] aIndex The index to an entry. 130 …* @returns A pointer to the entry associated with @p aIndex, or nullptr if the index is beyond end… 139 …* This method indicates if the entry associated with an index is in the set (i.e., it has been cha… 142 * @param[in] aIndex The index to an entry. 150 * This method removes an entry associated with an index in the set. 154 * @param[in] aIndex Index of entry to be removed. 172 * This method determines whether filtering is enabled for an entry associated with an index. 174 * @param[in] aIndex Index of entry to be checked.
|
/openthread-2.7.6/src/core/backbone_router/ |
D | multicast_listeners_table.cpp | 183 uint16_t index = aIndex; in SiftHeapElemDown() local 192 uint16_t child = 2 * index + 1; in SiftHeapElemDown() 194 if (child >= mNumValidListeners || child <= index) // child <= index after int overflow in SiftHeapElemDown() 209 mListeners[index] = mListeners[child]; in SiftHeapElemDown() 211 index = child; in SiftHeapElemDown() 214 if (index > aIndex) in SiftHeapElemDown() 216 mListeners[index] = saveElem; in SiftHeapElemDown() 219 return index > aIndex; in SiftHeapElemDown() 224 uint16_t index = aIndex; in SiftHeapElemUp() local 233 uint16_t parent = (index - 1) / 2; in SiftHeapElemUp() [all …]
|
/openthread-2.7.6/src/core/thread/ |
D | neighbor_table.cpp | 184 int16_t index; in GetNextNeighborInfo() local 186 // Non-negative iterator value gives the Child index into child table in GetNextNeighborInfo() 190 for (index = aIterator;; index++) in GetNextNeighborInfo() 192 Child *child = Get<ChildTable>().GetChildAtIndex(static_cast<uint16_t>(index)); in GetNextNeighborInfo() 203 index++; in GetNextNeighborInfo() 204 aIterator = index; in GetNextNeighborInfo() 212 // Negative iterator value gives the current index into mRouters array in GetNextNeighborInfo() 214 for (index = -aIterator; index <= Mle::kMaxRouterId; index++) in GetNextNeighborInfo() 216 Router *router = Get<RouterTable>().GetRouter(static_cast<uint8_t>(index)); in GetNextNeighborInfo() 222 index++; in GetNextNeighborInfo() [all …]
|
D | router_table.cpp | 122 // build index map in UpdateAllocation() 136 for (int index = Mle::kMaxRouters - 2; index >= 0; index--) in UpdateAllocation() local 138 uint8_t routerId = mRouters[index].GetRouterId(); in UpdateAllocation() 148 if (newIndex > index) in UpdateAllocation() 150 mRouters[newIndex] = mRouters[index]; in UpdateAllocation() 155 for (uint8_t index = 1; index < Mle::kMaxRouters; index++) in UpdateAllocation() local 157 uint8_t routerId = mRouters[index].GetRouterId(); in UpdateAllocation() 167 if (newIndex < index) in UpdateAllocation() 169 mRouters[newIndex] = mRouters[index]; in UpdateAllocation() 176 uint8_t index = indexMap[routerId]; in UpdateAllocation() local [all …]
|
D | mle_tlvs.hpp | 322 * This method returns the Route Cost value for a given Router index. 324 * @param[in] aRouterIndex The Router index. 326 * @returns The Route Cost value for a given Router index. 332 * This method sets the Route Cost value for a given Router index. 334 * @param[in] aRouterIndex The Router index. 344 * This method returns the Link Quality In value for a given Router index. 346 * @param[in] aRouterIndex The Router index. 348 * @returns The Link Quality In value for a given Router index. 357 * This method sets the Link Quality In value for a given Router index. 359 * @param[in] aRouterIndex The Router index. [all …]
|
D | topology.cpp | 248 // Non-zero value specifies the index into address array starting in GetAddress() 250 // index). in GetAddress() 355 uint16_t index; in RemoveIp6Address() local 370 for (index = 0; index < kNumIp6Addresses; index++) in RemoveIp6Address() 372 VerifyOrExit(!mIp6Address[index].IsUnspecified()); in RemoveIp6Address() 374 if (mIp6Address[index] == aAddress) in RemoveIp6Address() 383 for (; index < kNumIp6Addresses - 1; index++) in RemoveIp6Address() 385 mIp6Address[index] = mIp6Address[index + 1]; in RemoveIp6Address()
|
D | child_table.hpp | 118 * This method returns the child table index for a given `Child` instance. 122 * @returns The index corresponding to @p aChild. 128 …* This method returns a pointer to a `Child` entry at a given index, or `nullptr` if the index is … 129 …* i.e., index is larger or equal to maximum number of children allowed (@sa GetMaxChildrenAllowed(… 131 * @param[in] aChildIndex A child index. 133 …returns A pointer to the `Child` corresponding to the given index, or `nullptr` if the index is ou… 261 * This method retains diagnostic information for an attached child by the internal table index. 263 * @param[in] aChildIndex The table index.
|
/openthread-2.7.6/src/core/common/ |
D | bit_vector.hpp | 66 * This method indicates whether a given index is included in the mask. 68 * @param[in] aIndex The index. 70 * @retval TRUE If the given index is set. 71 * @retval FALSE If the given index is clear. 81 * This method sets the mask of a given index. 83 * @param[in] aIndex The index. 104 * @retval TRUE If any index is set.
|
D | pool.hpp | 152 * This method returns the associated index of a given entry from the pool. 158 * @returns The associated index of @p aEntry. 164 * This method retrieves a pool entry at a given index. 168 * @param[in] aIndex An index. 170 * @returns A reference to entry at index @p aIndex. 176 * This method retrieves a pool entry at a given index. 180 * @param[in] aIndex An index. 182 * @returns A reference to entry at index @p aIndex.
|
D | array.hpp | 51 …* @tparam SizeType The type to be used for array size, length, and index. If not specified, a d… 66 * This type represents the length or index in array. 134 * This method overloads the `[]` operator to get the element at a given index. 136 …* This method does not perform index bounds checking. Behavior is undefined if @p aIndex is not va… 138 * @param[in] aIndex The index to get. 146 * This method overloads the `[]` operator to get the element at a given index. 148 …* This method does not perform index bounds checking. Behavior is undefined if @p aIndex is not va… 150 * @param[in] aIndex The index to get. 158 * This method gets a pointer to the element at a given index. 162 * @param[in] aIndex The index to get. [all …]
|
/openthread-2.7.6/src/core/utils/ |
D | flash.cpp | 121 int index = 0; // This must be initalized to 0. See [Note] in Delete(). in Get() local 136 index = 0; in Get() 139 if (index == aIndex) in Get() 157 index++; in Get() 261 int index = 0; // This must be initalized to 0. See [Note] below. in Delete() local 275 index = 0; in Delete() 278 if ((aIndex == index) || (aIndex == -1)) in Delete() 285 …/* [Note] If the operation gets interrupted here and aIndex is 0, the next record (index == 1) wil… in Delete() 287 …* settings area initialize the index to 0, without expecting any record to be effectively marked a… in Delete() 289 if ((index == 1) && (aIndex == 0)) in Delete() [all …]
|
/openthread-2.7.6/examples/platforms/cc2538/ |
D | entropy.c | 59 for (uint16_t index = 0; index < aOutputLength; index++) in generateRandom() local 61 aOutput[index] = 0; in generateRandom() 65 aOutput[index] <<= 1; in generateRandom() 66 aOutput[index] |= (HWREG(RFCORE_XREG_RFRND) & RFCORE_XREG_RFRND_IRND); in generateRandom()
|
/openthread-2.7.6/src/core/net/ |
D | dns_types.cpp | 175 uint16_t index = 0; in AppendMultipleLabels() local 183 ch = index < aLength ? aLabels[index] : static_cast<char>(kNullChar); in AppendMultipleLabels() 187 uint8_t labelLength = static_cast<uint8_t>(index - labelStartIndex); in AppendMultipleLabels() 195 // see a dot at index 0, and index 1 is null char). in AppendMultipleLabels() 198 …((ch == kNullChar) || ((index == 0) && (aLabels[1] == kNullChar))) ? kErrorNone : kErrorInvalidArg… in AppendMultipleLabels() 202 VerifyOrExit(index + 1 < kMaxEncodedLength, error = kErrorInvalidArgs); in AppendMultipleLabels() 205 labelStartIndex = index + 1; in AppendMultipleLabels() 208 index++; in AppendMultipleLabels() 891 uint8_t index; in GetNextEntry() local 917 for (index = 0; index < length; index++) in GetNextEntry() [all …]
|
/openthread-2.7.6/src/cli/ |
D | cli_srp_client.cpp | 200 for (uint8_t index = 0; index < hostInfo->mNumAddresses; index++) in ProcessHost() local 202 mInterpreter.OutputIp6Address(hostInfo->mAddresses[index]); in ProcessHost() 425 for (uint16_t index = 0; index + 1 < arrayLength; index++) in ProcessServiceAdd() local 428 subTypeLabels[index] = label; in ProcessServiceAdd() 496 for (uint8_t index = 0; index < aHostInfo.mNumAddresses; index++) in OutputHostInfo() local 498 if (index > 0) in OutputHostInfo() 503 mInterpreter.OutputIp6Address(aHostInfo.mAddresses[index]); in OutputHostInfo() 524 for (uint16_t index = 0; aService.mSubTypeLabels[index] != nullptr; index++) in OutputService() local 526 mInterpreter.OutputFormat(",%s", aService.mSubTypeLabels[index]); in OutputService()
|