Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 100) sorted by relevance

1234

/openthread-latest/tests/unit/
Dtest_ip_address.cpp49 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 …]
Dtest_multicast_listeners_table.cpp100 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()
Dtest_netif.cpp96 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()
Dtest_child.cpp60 for (const Ip6::Address &address : aChild.GetIp6Addresses()) in VerifyChildIp6Addresses() local
66 if (address == aAddressList[index]) in VerifyChildIp6Addresses()
79 Ip6::Address address; in VerifyChildIp6Addresses() local
83 SuccessOrQuit(aChild.GetMeshLocalIp6Address(address)); in VerifyChildIp6Addresses()
84 …VerifyOrQuit(address == aAddressList[index], "GetMeshLocalIp6Address() did not return expected add… in VerifyChildIp6Addresses()
95 Ip6::Address address; in VerifyChildIp6Addresses() local
97 VerifyOrQuit(aChild.GetMeshLocalIp6Address(address) == kErrorNotFound, in VerifyChildIp6Addresses()
/openthread-latest/examples/platforms/simulation/
Dflash.c106 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-latest/src/cli/
DREADME_COAP.md50 - [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 …]
DREADME_UDP.md68 Assigns a name (i.e. IPv6 address and port) to the example socket.
74 - ip: the unicast IPv6 address or the unspecified IPv6 address (`::`).
86 …ve datagrams sent to a multicast IPv6 address, the unspecified IPv6 address must be used. Using a …
101 - ip: the peer's IP address.
109 The address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferre…
115 Connecting to synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1
160 - ip: the destination address.
169 The address can be an IPv4 address, which will be synthesized to an IPv6 address using the preferre…
175 Sending to synthesized IPv6 address: fdde:ad00:beef:2:0:0:ac11:1
183 - ip: the IPv6 destination address.
DREADME_SRP_CLIENT.md142 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
190address 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 …]
Dcli_link_metrics.cpp65 otIp6Address address; in Process() local
77 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process()
135 SuccessOrExit(error = otLinkMetricsQuery(GetInstancePtr(), &address, isSingle ? 0 : seriesId, in Process()
158 otIp6Address address; in Process() local
169 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process()
247 … GetInstancePtr(), &address, seriesId, seriesFlags, clear ? nullptr : &linkMetrics, in Process()
329 … error = otLinkMetricsConfigEnhAckProbing(GetInstancePtr(), &address, enhAckFlags, pLinkMetrics, in Process()
365 otIp6Address address; in Process() local
369 SuccessOrExit(error = aArgs[0].ParseAsIp6Address(address)); in Process()
373 error = otLinkMetricsSendLinkProbe(GetInstancePtr(), &address, seriesId, length); in Process()
DREADME_TCP.md111 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 (`::`).
Dcli_commissioner.cpp67 otIp6Address address; in Process() local
72 SuccessOrExit(error = aArgs[3].ParseAsIp6Address(address)); in Process()
74 error = otCommissionerAnnounceBegin(GetInstancePtr(), mask, count, period, &address); in Process()
108 otIp6Address address; in Process() local
114 SuccessOrExit(error = aArgs[4].ParseAsIp6Address(address)); in Process()
116 error = otCommissionerEnergyScan(GetInstancePtr(), mask, count, period, scanDuration, &address, in Process()
463 otIp6Address address; in Process() local
467 SuccessOrExit(error = aArgs[2].ParseAsIp6Address(address)); in Process()
469 …error = otCommissionerPanIdQuery(GetInstancePtr(), panId, mask, &address, &Commissioner::HandlePan… in Process()
DREADME_HISTORY.md72 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-latest/tests/scripts/thread-cert/
Dsniffer_transport.py116 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)
Dudp_send_host.py48 address = ipaddress.ip_address(destination_ipv6)
49 if address.is_multicast:
Dmle.py116 def __init__(self, address): argument
117 self._address = address
120 def address(self): member in SourceAddress
126 return self.address == other.address
135 address = struct.unpack(">H", data.read(2))[0]
136 return SourceAddress(address)
398 def __init__(self, address): argument
399 self._address = address
402 def address(self): member in Address16
408 return self.address == other.address
[all …]
/openthread-latest/tools/tcat_ble_client/ble/
Dudp_stream.py40 def __init__(self, address, node_id): argument
45 self.address = (address, self.BASE_PORT + node_id)
49 return self.socket.sendto(data, self.address)
/openthread-latest/src/core/thread/
Dsrc_match_controller.cpp159 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()
Danycast_locator.cpp95 const Ip6::Address *address = nullptr; in HandleResponse() local
109 address = &meshLocalAddress; in HandleResponse()
112 mCallback.InvokeAndClearIfSet(aError, address, rloc16); in HandleResponse()
/openthread-latest/tests/toranj/ncp/
Dtest-021-address-cache-table.py162 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-latest/src/core/net/
Dnetif.cpp522 for (UnicastAddress &address : mUnicastAddresses) in ApplyNewMeshLocalPrefix()
524 if (address.mMeshLocal) in ApplyNewMeshLocalPrefix()
526 SignalUnicastAddressChange(kAddressRemoved, address); in ApplyNewMeshLocalPrefix()
527 address.mSrpRegistered = false; in ApplyNewMeshLocalPrefix()
528 address.GetAddress().SetPrefix(Get<Mle::Mle>().GetMeshLocalPrefix()); in ApplyNewMeshLocalPrefix()
529 SignalUnicastAddressChange(kAddressAdded, address); in ApplyNewMeshLocalPrefix()
533 for (MulticastAddress &address : mMulticastAddresses) in ApplyNewMeshLocalPrefix()
535 if (Get<Mle::Mle>().IsMulticastAddressMeshLocalPrefixBased(address)) in ApplyNewMeshLocalPrefix()
537 SignalMulticastAddressChange(kAddressRemoved, address, kOriginThread); in ApplyNewMeshLocalPrefix()
538 address.GetAddress().SetMulticastNetworkPrefix(Get<Mle::Mle>().GetMeshLocalPrefix()); in ApplyNewMeshLocalPrefix()
[all …]
/openthread-latest/tools/harness-simulation/posix/sniffer_sim/
Dsniffer_transport.py142 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-latest/src/posix/platform/
Dbacktrace.cpp80 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-latest/tests/toranj/
Dstart.sh180 run cli/test-013-address-cache-parent-switch.py
181 run cli/test-014-address-resolver.py
194 run cli/test-027-slaac-address.py
201 run cli/test-401-srp-server-address-cache-snoop.py
241 run ncp/test-014-ip6-address-add.py
247 run ncp/test-021-address-cache-table.py
248 run ncp/test-022-multicast-ip6-address.py
252 run ncp/test-026-slaac-address-wpantund.py
264 run ncp/test-038-clear-address-cache-for-sed.py
265 run ncp/test-039-address-cache-table-snoop.py
/openthread-latest/examples/platforms/utils/
Dmac_frame.cpp117 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-latest/src/core/api/
Dlink_raw_api.cpp143 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()

1234