/openthread-3.6.0/tests/unit/ |
D | test_ip_address.cpp | 49 AddressType address; in checkAddressFromString() local 51 address.Clear(); in checkAddressFromString() 53 error = address.FromString(aTestVector->mString); in checkAddressFromString() 56 (error == kErrorNone) ? address.ToString().AsCString() : "(parse error)"); in checkAddressFromString() 62 VerifyOrQuit(0 == memcmp(address.GetBytes(), aTestVector->mAddr, sizeof(AddressType)), in checkAddressFromString() 393 Ip6::Address address; in TestIp6AddressSetPrefix() local 403 memcpy(address.mFields.m8, prefix, sizeof(address)); in TestIp6AddressSetPrefix() 404 printf("Prefix is %s\n", address.ToString().AsCString()); in TestIp6AddressSetPrefix() 411 address = allZeroAddress; in TestIp6AddressSetPrefix() 412 address.SetPrefix(ip6Prefix); in TestIp6AddressSetPrefix() [all …]
|
D | test_multicast_listeners_table.cpp | 100 Ip6::Address address; in TestMulticastListenersTable() local 102 address = static_cast<const Ip6::Address &>(MA401); in TestMulticastListenersTable() 103 address.mFields.m16[7] = BigEndian::HostSwap16(i); in TestMulticastListenersTable() 105 SuccessOrQuit(table.Add(address, TimerMilli::GetNow() + i)); in TestMulticastListenersTable() 131 Ip6::Address address; in TestMulticastListenersTable() local 142 address = static_cast<const Ip6::Address &>(MA401); in TestMulticastListenersTable() 144 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable() 145 …IgnoreError(table.Add(address, TimerMilli::GetNow() + Random::NonCrypto::GetUint32InRange(1, 100))… in TestMulticastListenersTable() 147 address.mFields.m16[7] = Random::NonCrypto::GetUint16InRange(1, 1000); in TestMulticastListenersTable() 150 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) == kErrorRejected, in TestNetifMulticastAddresses() 174 IgnoreError(address.FromString(kRealmLocalAllMpl)); in TestNetifMulticastAddresses() 175 VerifyOrQuit(netif.UnsubscribeExternalMulticast(address) == kErrorRejected, in TestNetifMulticastAddresses()
|
/openthread-3.6.0/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-3.6.0/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 | 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 IP address. 107 The address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferre… 113 Connecting to synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1 158 - ip: the destination address. 167 The address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferre… 173 Sending to synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1 181 - ip: the IPv6 destination address.
|
D | README_SRP_CLIENT.md | 142 When auto host address mode is enabled. 169 ### host address 171 Usage : `srp client host address [auto | <address> ...]` 173 Indicate auto address mode is enabled. 176 > srp client host address 181 Get the list of host addresses (when auto host address is not enabled). 184 > srp client host address 190 …address mode. When enabled client will automatically use all preferred Thread netif unicast addres… 193 > srp client host address auto 197 …be set while client is running to update the host addresses), also disabled auto host address mode. [all …]
|
D | cli_link_metrics.cpp | 56 otIp6Address address; in Process() local 62 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process() 120 SuccessOrExit(error = otLinkMetricsQuery(GetInstancePtr(), &address, isSingle ? 0 : seriesId, in Process() 135 otIp6Address address; in Process() local 139 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process() 215 …error = otLinkMetricsConfigForwardTrackingSeries(GetInstancePtr(), &address, seriesId, seriesFlags, in Process() 289 … error = otLinkMetricsConfigEnhAckProbing(GetInstancePtr(), &address, enhAckFlags, pLinkMetrics, in Process() 319 otIp6Address address; in Process() local 323 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process() 327 error = otLinkMetricsSendLinkProbe(GetInstancePtr(), &address, seriesId, length); in Process()
|
D | README_TCP.md | 111 Associates a name (i.e. IPv6 address and port) to the example TCP endpoint. 113 - ip: the IPv6 address or the unspecified IPv6 address (`::`). 127 - ip: the peer's IP address. 137 The address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferre… 143 Connecting to synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1 194 …TCP listener to listen for incoming connections on the specified name (i.e. IPv6 address and port). 198 - ip: the IPv6 address or the unspecified IPv6 address (`::`).
|
D | cli_commissioner.cpp | 49 otIp6Address address; in Process() local 54 SuccessOrExit(error = aArgs[3].ParseAsIp6Address(address)); in Process() 56 error = otCommissionerAnnounceBegin(GetInstancePtr(), mask, count, period, &address); in Process() 69 otIp6Address address; in Process() local 75 SuccessOrExit(error = aArgs[4].ParseAsIp6Address(address)); in Process() 77 error = otCommissionerEnergyScan(GetInstancePtr(), mask, count, period, scanDuration, &address, in Process() 309 otIp6Address address; in Process() local 313 SuccessOrExit(error = aArgs[2].ParseAsIp6Address(address)); in Process() 315 …error = otCommissionerPanIdQuery(GetInstancePtr(), panId, mask, &address, &Commissioner::HandlePan… in Process()
|
D | README_HISTORY.md | 72 Print the unicast IPv6 address history. Each entry provides: 75 - Address: Unicast address along with its prefix length (in bits). 78 - Flags: Preferred, Valid, and RLOC (whether the address is RLOC). 80 Print the unicast IPv6 address history as table. 98 Print the unicast IPv6 address history as a list (the last 5 entries). 102 00:00:20.327 -> event:Removed address:2001:dead:beef:cafe:c4cb:caba:8d55:e30b prefixlen:64 origin:s… 103 00:00:59.983 -> event:Added address:2001:dead:beef:cafe:c4cb:caba:8d55:e30b prefixlen:64 origin:sla… 104 00:01:22.535 -> event:Added address:fd00:0:0:0:0:0:0:1 prefixlen:64 origin:manual scope:14 preferre… 105 00:02:33.221 -> event:Added address:fdde:ad00:beef:0:0:ff:fe00:fc00 prefixlen:64 origin:thread scop… 106 00:02:33.221 -> event:Added address:fdde:ad00:beef:0:0:ff:fe00:5400 prefixlen:64 origin:thread scop… [all …]
|
/openthread-3.6.0/src/core/thread/ |
D | mlr_manager.cpp | 154 …for (const Ip6::Address &address : aChild.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTh… in UpdateProxiedSubscriptions() local 156 bool isMlrRegistered = aOldMlrRegisteredAddresses.Contains(address); in UpdateProxiedSubscriptions() 160 isMlrRegistered = isMlrRegistered || IsAddressMlrRegisteredByNetif(address); in UpdateProxiedSubscriptions() 163 … isMlrRegistered = isMlrRegistered || IsAddressMlrRegisteredByAnyChildExcept(address, &aChild); in UpdateProxiedSubscriptions() 165 … aChild.SetAddressMlrState(address, isMlrRegistered ? kMlrStateRegistered : kMlrStateToRegister); in UpdateProxiedSubscriptions() 256 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SendMlr() local 263 if (child.GetAddressMlrState(address) == kMlrStateToRegister) in SendMlr() 265 addresses.AddUnique(address); in SendMlr() 266 child.SetAddressMlrState(address, kMlrStateRegistering); in SendMlr() 519 …for (const Ip6::Address &address : child.IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerTha… in SetMulticastAddressMlrState() local [all …]
|
D | src_match_controller.cpp | 159 Mac::ExtAddress address; in AddAddress() local 161 address.Set(aChild.GetExtAddress().m8, Mac::ExtAddress::kReverseByteOrder); in AddAddress() 162 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 | child.cpp | 90 const Ip6::Address *address; in Update() local 99 address = GetAddress(); in Update() 101 VerifyOrExit((address != nullptr) && !address->IsUnspecified(), mIndex = kMaxIndex); in Update() 103 VerifyOrExit(!address->MatchesFilter(mFilter)); in Update() 280 …for (const Ip6::Address &address : IterateIp6Addresses(Ip6::Address::kTypeMulticastLargerThanRealm… in HasMlrRegisteredAddress() local 282 if (GetAddressMlrState(address) == kMlrStateRegistered && address == aAddress) in HasMlrRegisteredAddress()
|
D | anycast_locator.cpp | 95 const Ip6::Address *address = nullptr; in HandleResponse() local 109 address = &meshLocalAddress; in HandleResponse() 117 callbackCopy.Invoke(aError, address, rloc16); in HandleResponse()
|
/openthread-3.6.0/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:
|
/openthread-3.6.0/src/posix/platform/ |
D | backtrace.cpp | 80 unsigned int address = 0; in demangleSymbol() local 83 …Symbol, "%256[^(]%*[^_]%256[^)+]%*[^0x]%x%*[^0x]%x", program, mangledName, &offset, &address) == 4) in demangleSymbol() 92 …anf(aSymbol, "%256[^(](%256[^)+]%*[^0x]%x%*[^0x]%x", program, mangledName, &offset, &address) == 4) in demangleSymbol() 100 otLogCritPlat("#%2d: %s %s+0x%x [0x%x]\n", aIndex, program, functionName, offset, address); in demangleSymbol()
|
/openthread-3.6.0/tools/harness-simulation/posix/sniffer_sim/ |
D | sniffer_transport.py | 142 address = ('127.0.0.1', self._nodeid_to_port(nodeid)) 144 return self._socket.sendto(data, address) 148 data, address = self._socket.recvfrom(bufsize) 150 nodeid = self._port_to_nodeid(address[1])
|
/openthread-3.6.0/src/core/net/ |
D | netif.cpp | 517 for (UnicastAddress &address : mUnicastAddresses) in ApplyNewMeshLocalPrefix() 519 if (address.mMeshLocal) in ApplyNewMeshLocalPrefix() 521 SignalUnicastAddressChange(kAddressRemoved, address); in ApplyNewMeshLocalPrefix() 522 address.mSrpRegistered = false; in ApplyNewMeshLocalPrefix() 523 address.GetAddress().SetPrefix(Get<Mle::Mle>().GetMeshLocalPrefix()); in ApplyNewMeshLocalPrefix() 524 SignalUnicastAddressChange(kAddressAdded, address); in ApplyNewMeshLocalPrefix() 528 for (MulticastAddress &address : mMulticastAddresses) in ApplyNewMeshLocalPrefix() 530 if (Get<Mle::Mle>().IsMulticastAddressMeshLocalPrefixBased(address)) in ApplyNewMeshLocalPrefix() 532 SignalMulticastAddressChange(kAddressRemoved, address, kOriginThread); in ApplyNewMeshLocalPrefix() 533 address.GetAddress().SetMulticastNetworkPrefix(Get<Mle::Mle>().GetMeshLocalPrefix()); in ApplyNewMeshLocalPrefix() [all …]
|
/openthread-3.6.0/tests/toranj/ncp/ |
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:
|
/openthread-3.6.0/tests/toranj/ |
D | start.sh | 180 run cli/test-013-address-cache-parent-switch.py 181 run cli/test-014-address-resolver.py 228 run ncp/test-014-ip6-address-add.py 234 run ncp/test-021-address-cache-table.py 235 run ncp/test-022-multicast-ip6-address.py 239 run ncp/test-026-slaac-address-wpantund.py 243 run ncp/test-030-slaac-address-ncp.py 251 run ncp/test-038-clear-address-cache-for-sed.py 252 run ncp/test-039-address-cache-table-snoop.py
|
/openthread-3.6.0/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-3.6.0/src/core/api/ |
D | link_raw_api.cpp | 143 Mac::ExtAddress address; in otLinkRawSrcMatchAddExtEntry() local 151 address.Set(aExtAddress->m8, Mac::ExtAddress::kReverseByteOrder); in otLinkRawSrcMatchAddExtEntry() 152 error = instance.Get<Radio>().AddSrcMatchExtEntry(address); in otLinkRawSrcMatchAddExtEntry() 172 Mac::ExtAddress address; in otLinkRawSrcMatchClearExtEntry() local 180 address.Set(aExtAddress->m8, Mac::ExtAddress::kReverseByteOrder); in otLinkRawSrcMatchClearExtEntry() 181 error = instance.Get<Radio>().ClearSrcMatchExtEntry(address); in otLinkRawSrcMatchClearExtEntry()
|