/openthread-2.7.6/examples/platforms/simulation/ |
D | flash.c | 106 uint32_t address; in otPlatFlashErase() local 111 address = aSwapIndex ? SWAP_SIZE : 0; in otPlatFlashErase() 114 rval = pwrite(sFlashFd, buffer, sizeof(buffer), (off_t)address); in otPlatFlashErase() 122 uint32_t address; in otPlatFlashRead() local 127 address = aSwapIndex ? SWAP_SIZE : 0; in otPlatFlashRead() 129 rval = pread(sFlashFd, aData, aSize, (off_t)(address + aOffset)); in otPlatFlashRead() 137 uint32_t address; in otPlatFlashWrite() local 143 address = aSwapIndex ? SWAP_SIZE : 0; in otPlatFlashWrite() 144 address += aOffset; in otPlatFlashWrite() 148 rval = pread(sFlashFd, &byte, sizeof(byte), (off_t)(address + offset)); in otPlatFlashWrite() [all …]
|
/openthread-2.7.6/tests/unit/ |
D | test_ip_address.cpp | 50 AddressType address; in checkAddressFromString() local 52 address.Clear(); in checkAddressFromString() 54 error = address.FromString(aTestVector->mString); in checkAddressFromString() 57 (error == ot::kErrorNone) ? address.ToString().AsCString() : "(parse error)"); in checkAddressFromString() 63 VerifyOrQuit(0 == memcmp(address.GetBytes(), aTestVector->mAddr, sizeof(AddressType)), in checkAddressFromString() 251 ot::Ip6::Address address; in TestIp6AddressSetPrefix() local 260 memcpy(address.mFields.m8, prefix, sizeof(address)); in TestIp6AddressSetPrefix() 261 printf("Prefix is %s\n", address.ToString().AsCString()); in TestIp6AddressSetPrefix() 265 address = allZeroAddress; in TestIp6AddressSetPrefix() 266 address.SetPrefix(prefix, prefixLength); in TestIp6AddressSetPrefix() [all …]
|
D | test_multicast_listeners_table.cpp | 110 Ip6::Address address; in TestMulticastListenersTable() local 112 address = static_cast<const Ip6::Address &>(MA401); in TestMulticastListenersTable() 113 address.mFields.m16[7] = HostSwap16(i); in TestMulticastListenersTable() 115 SuccessOrQuit(table.Add(address, TimerMilli::GetNow() + i)); in TestMulticastListenersTable() 141 Ip6::Address address; in TestMulticastListenersTable() local 152 address = static_cast<const Ip6::Address &>(MA401); in TestMulticastListenersTable() 154 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable() 155 …IgnoreError(table.Add(address, TimerMilli::GetNow() + Random::NonCrypto::GetUint32InRange(1, 100))… in TestMulticastListenersTable() 157 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable() 160 table.Remove(address); in TestMulticastListenersTable()
|
D | test_child.cpp | 60 for (const Ip6::Address &address : aChild.IterateIp6Addresses()) in VerifyChildIp6Addresses() local 66 if (address == aAddressList[index]) in VerifyChildIp6Addresses() 79 Ip6::Address address; in VerifyChildIp6Addresses() local 85 SuccessOrQuit(aChild.GetMeshLocalIp6Address(address)); in VerifyChildIp6Addresses() 86 …VerifyOrQuit(address == aAddressList[index], "GetMeshLocalIp6Address() did not return expected add… in VerifyChildIp6Addresses() 93 Ip6::Address address; in VerifyChildIp6Addresses() local 95 VerifyOrQuit(aChild.GetMeshLocalIp6Address(address) == kErrorNotFound, in VerifyChildIp6Addresses() 105 for (const Ip6::Address &address : aChild.IterateIp6Addresses(filter)) in VerifyChildIp6Addresses() local 112 VerifyOrQuit(address.IsMulticast(), "Address::TypeFilter failed"); in VerifyChildIp6Addresses() 116 VerifyOrQuit(!address.IsMulticast(), "Address::TypeFilter failed"); in VerifyChildIp6Addresses() [all …]
|
D | test_netif.cpp | 96 Ip6::Address address; in TestNetifMulticastAddresses() local 150 IgnoreError(address.FromString(kTestAddress2)); in TestNetifMulticastAddresses() 151 SuccessOrQuit(netif.SubscribeExternalMulticast(address)); in TestNetifMulticastAddresses() 166 IgnoreError(address.FromString(kTestAddress3)); in TestNetifMulticastAddresses() 167 SuccessOrQuit(netif.SubscribeExternalMulticast(address)); in TestNetifMulticastAddresses() 170 IgnoreError(address.FromString(kTestAddress1)); // same as netifAddress (internal) in TestNetifMulticastAddresses() 171 VerifyOrQuit(netif.UnsubscribeExternalMulticast(address) == kErrorInvalidArgs, in TestNetifMulticastAddresses() 174 IgnoreError(address.FromString(kRealmLocalAllMpl)); in TestNetifMulticastAddresses() 175 VerifyOrQuit(netif.UnsubscribeExternalMulticast(address) == kErrorInvalidArgs, in TestNetifMulticastAddresses()
|
D | test_platform.cpp | 560 uint32_t address; in otPlatFlashErase() local 564 address = aSwapIndex ? FLASH_SWAP_SIZE : 0; in otPlatFlashErase() 566 memset(g_flash + address, 0xff, FLASH_SWAP_SIZE); in otPlatFlashErase() 573 uint32_t address; in otPlatFlashRead() local 579 address = aSwapIndex ? FLASH_SWAP_SIZE : 0; in otPlatFlashRead() 581 memcpy(aData, g_flash + address + aOffset, aSize); in otPlatFlashRead() 588 uint32_t address; in otPlatFlashWrite() local 594 address = aSwapIndex ? FLASH_SWAP_SIZE : 0; in otPlatFlashWrite() 598 g_flash[address + aOffset + index] &= ((uint8_t *)aData)[index]; in otPlatFlashWrite()
|
D | test_child_table.cpp | 127 Mac::Address address; in VerifyChildTableContent() local 142 address.SetShort(aChildList[listIndex].mRloc16); in VerifyChildTableContent() 143 child = aTable.FindChild(address, filter); in VerifyChildTableContent() 147 … address.SetExtended(static_cast<const Mac::ExtAddress &>(aChildList[listIndex].mExtAddress)); in VerifyChildTableContent() 148 child = aTable.FindChild(address, filter); in VerifyChildTableContent()
|
/openthread-2.7.6/src/cli/ |
D | README_COAP.md | 50 - [delete](#delete-address-uri-path-type-payload) 51 - [get](#get-address-uri-path-type) 52 - [observe](#observe-address-uri-path-type) 54 - [post](#post-address-uri-path-type-payload) 55 - [put](#put-address-uri-path-type-payload) 93 ### delete \<address\> \<uri-path\> \[type\] \[payload\] 95 - address: IPv6 address of the CoAP server. 105 ### get \<address\> \<uri-path\> \[type\] 107 - address: IPv6 address of the CoAP server. 121 ### observe \<address\> \<uri-path\> \[type\] [all …]
|
D | cli_commissioner.cpp | 63 otIp6Address address; in ProcessAnnounce() local 68 SuccessOrExit(error = aArgs[3].ParseAsIp6Address(address)); in ProcessAnnounce() 70 error = otCommissionerAnnounceBegin(mInterpreter.mInstance, mask, count, period, &address); in ProcessAnnounce() 83 otIp6Address address; in ProcessEnergy() local 89 SuccessOrExit(error = aArgs[4].ParseAsIp6Address(address)); in ProcessEnergy() 91 …ror = otCommissionerEnergyScan(mInterpreter.mInstance, mask, count, period, scanDuration, &address, in ProcessEnergy() 281 otIp6Address address; in ProcessPanId() local 285 SuccessOrExit(error = aArgs[2].ParseAsIp6Address(address)); in ProcessPanId() 287 …error = otCommissionerPanIdQuery(mInterpreter.mInstance, panId, mask, &address, &Commissioner::Han… in ProcessPanId()
|
D | README_UDP.md | 68 Assigns a name (i.e. IPv6 address and port) to the example socket. 74 - ip: the IPv6 address or the unspecified IPv6 address (`::`). 99 - ip: the peer's IPv6 address. 148 - ip: the IPv6 destination address. 161 - ip: the IPv6 destination address.
|
D | README_TCP.md | 96 Associates a name (i.e. IPv6 address and port) to the example TCP endpoint. 98 - ip: the IPv6 address or the unspecified IPv6 address (`::`). 112 - ip: the peer's IPv6 address. 163 …TCP listener to listen for incoming connections on the specified name (i.e. IPv6 address and port). 167 - ip: the IPv6 address or the unspecified IPv6 address (`::`).
|
D | README_SRP_CLIENT.md | 159 ### host address 161 Usage : `srp client host address [<address> ...]` 166 > srp client host address 175 > srp client host address fd00::cafe 271 Print the server socket address (IPv6 address and port number). 279 ### server address 281 Print the server IPv6 address. 284 > srp client server address 383 Start the SRP client with a given server IPv6 address and port number.
|
/openthread-2.7.6/tests/scripts/thread-cert/ |
D | sniffer_transport.py | 116 def _address_to_nodeid(self, address): argument 117 _, port = address 149 address = self._nodeid_to_address(nodeid) 151 return self._socket.sendto(data, address) 154 data, address = self._socket.recvfrom(bufsize) 156 nodeid = self._address_to_nodeid(address)
|
D | udp_send_host.py | 48 address = ipaddress.ip_address(destination_ipv6) 49 if address.is_multicast:
|
D | mle.py | 115 def __init__(self, address): argument 116 self._address = address 119 def address(self): member in SourceAddress 125 return self.address == other.address 134 address = struct.unpack(">H", data.read(2))[0] 135 return SourceAddress(address) 397 def __init__(self, address): argument 398 self._address = address 401 def address(self): member in Address16 407 return self.address == other.address [all …]
|
D | test_mle.py | 390 address = any_address() 392 source_address = mle.SourceAddress(address) 395 actual_address = source_address.address 398 self.assertEqual(address, actual_address) 405 address = any_address() 409 data = struct.pack(">H", address) 416 self.assertEqual(address, actual_source_address.address) 808 address = any_address() 810 address16 = mle.Address16(address) 813 actual_address = address16.address [all …]
|
/openthread-2.7.6/src/core/thread/ |
D | src_match_controller.cpp | 158 Mac::ExtAddress address; in AddAddress() local 160 address.Set(aChild.GetExtAddress().m8, Mac::ExtAddress::kReverseByteOrder); in AddAddress() 161 error = Get<Radio>().AddSrcMatchExtEntry(address); in AddAddress() 190 Mac::ExtAddress address; in ClearEntry() local 192 address.Set(aChild.GetExtAddress().m8, Mac::ExtAddress::kReverseByteOrder); in ClearEntry() 193 error = Get<Radio>().ClearSrcMatchExtEntry(address); in ClearEntry()
|
D | mlr_manager.cpp | 157 …for (const Ip6::Address &address : aChild.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTh… in UpdateProxiedSubscriptions() local 164 if (aOldMlrRegisteredAddresses[i] == address) in UpdateProxiedSubscriptions() 173 isMlrRegistered = isMlrRegistered || IsAddressMlrRegisteredByNetif(address); in UpdateProxiedSubscriptions() 176 … isMlrRegistered = isMlrRegistered || IsAddressMlrRegisteredByAnyChildExcept(address, &aChild); in UpdateProxiedSubscriptions() 178 … aChild.SetAddressMlrState(address, isMlrRegistered ? kMlrStateRegistered : kMlrStateToRegister); in UpdateProxiedSubscriptions() 270 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SendMulticastListenerRegistration() local 277 if (child.GetAddressMlrState(address) == kMlrStateToRegister) in SendMulticastListenerRegistration() 279 AppendToUniqueAddressList(addresses, addressesNum, address); in SendMulticastListenerRegistration() 280 child.SetAddressMlrState(address, kMlrStateRegistering); in SendMulticastListenerRegistration() 556 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SetMulticastAddressMlrState() local [all …]
|
D | topology.cpp | 257 const Ip6::Address *address; in Update() local 266 address = GetAddress(); in Update() 268 VerifyOrExit((address != nullptr) && !address->IsUnspecified(), mIndex = kMaxIndex); in Update() 270 VerifyOrExit(!address->MatchesFilter(mFilter)); in Update() 452 …for (const Ip6::Address &address : IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerThanRealm… in HasMlrRegisteredAddress() local 454 if (GetAddressMlrState(address) == kMlrStateRegistered && address == aAddress) in HasMlrRegisteredAddress()
|
/openthread-2.7.6/tests/toranj/ |
D | start.sh | 49 sudo ip address flush trel 143 run test-014-ip6-address-add.py 150 run test-021-address-cache-table.py 151 run test-022-multicast-ip6-address.py 155 run test-026-slaac-address-wpantund.py 159 run test-030-slaac-address-ncp.py 167 run test-038-clear-address-cache-for-sed.py 168 run test-039-address-cache-table-snoop.py
|
D | test-021-address-cache-table.py | 162 if entry.address == c2_address: 165 elif entry.address == c3_address: 233 if entry.address == c3_address: 252 if entry.address == c2_address: 255 elif entry.address == c3_address: 315 if entry.address == c2_address: 318 elif entry.address == c3_address: 383 if entry.address == c2_address: 386 elif entry.address == c3_address:
|
D | test-039-address-cache-table-snoop.py | 228 verify(cache_table[index].address == PREFIX + "2:" + str(NUM_ADDRESSES - index - 1)) 254 verify(cache_table[index].address == PREFIX + "2:" + str(NUM_ADDRESSES - index - 1)) 277 verify(cache_table[index].address == PREFIX + "3:" + str(NUM_ADDRESSES - index - 1)) 296 verify(cache_table[index].address == PREFIX + "c3:" + str(NUM_ADDRESSES - index - 1)) 315 verify(cache_table[index].address == PREFIX + "2:" + str(NUM_ADDRESSES - index - 1)) 374 verify(cache_table[index].address == PREFIX + "c2:" + str(NUM_ADDRESSES - index - 1))
|
/openthread-2.7.6/examples/platforms/cc2538/ |
D | flash.c | 48 uint32_t address = (uint32_t)(&_FLASH_settings_pageA[0]) + aOffset; in flashPhysAddr() local 52 address += FLASH_SWAP_SIZE; in flashPhysAddr() 55 return address; in flashPhysAddr()
|
/openthread-2.7.6/examples/platforms/utils/ |
D | mac_frame.cpp | 117 Mac::Address address; in otMacFrameGetSrcAddr() local 119 error = static_cast<const Mac::Frame *>(aFrame)->GetSrcAddr(address); in otMacFrameGetSrcAddr() 122 GetOtMacAddress(address, aMacAddress); in otMacFrameGetSrcAddr() 131 Mac::Address address; in otMacFrameGetDstAddr() local 133 error = static_cast<const Mac::Frame *>(aFrame)->GetDstAddr(address); in otMacFrameGetDstAddr() 136 GetOtMacAddress(address, aMacAddress); in otMacFrameGetDstAddr()
|
/openthread-2.7.6/src/core/api/ |
D | link_raw_api.cpp | 158 Mac::ExtAddress address; in otLinkRawSrcMatchAddExtEntry() local 164 address.Set(aExtAddress->m8, Mac::ExtAddress::kReverseByteOrder); in otLinkRawSrcMatchAddExtEntry() 165 error = instance.Get<Radio>().AddSrcMatchExtEntry(address); in otLinkRawSrcMatchAddExtEntry() 185 Mac::ExtAddress address; in otLinkRawSrcMatchClearExtEntry() local 191 address.Set(aExtAddress->m8, Mac::ExtAddress::kReverseByteOrder); in otLinkRawSrcMatchClearExtEntry() 192 error = instance.Get<Radio>().ClearSrcMatchExtEntry(address); in otLinkRawSrcMatchClearExtEntry()
|