Home
last modified time | relevance | path

Searched refs:rloc16 (Results 1 – 25 of 62) sorted by relevance

123

/external/openthread/tests/toranj/ncp/
Dtest-020-router-table.py128 if entry.rloc16 == r1_rloc:
130 elif entry.rloc16 == r2_rloc:
134 elif entry.rloc16 == r3_rloc:
138 elif entry.rloc16 == r4_rloc:
153 if entry.rloc16 == r1_rloc:
157 elif entry.rloc16 == r2_rloc:
161 elif entry.rloc16 == r3_rloc:
163 elif entry.rloc16 == r4_rloc:
178 if entry.rloc16 == r1_rloc:
182 elif entry.rloc16 == r2_rloc:
[all …]
Dtest-021-address-cache-table.py130 if entry.rloc16 == r3_rloc:
164 verify(entry.rloc16 == r2_rloc)
167 verify(entry.rloc16 == c3_rloc)
235 verify(entry.rloc16 == c3_rloc)
254 verify(entry.rloc16 == r3_rloc)
257 verify(entry.rloc16 == c3_rloc)
317 verify(entry.rloc16 == r2_rloc)
320 verify(entry.rloc16 == c3_rloc)
385 verify(entry.rloc16 == r3_rloc)
388 verify(entry.rloc16 == c3_rloc)
Dtest-025-network-data-timeout.py60 rloc16, argument
78 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
93 def verify_no_prefix(node_list, prefix, rloc16): argument
101 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
102 …se wpan.VerifyError("Did find prefix {} with rloc {} on node {}".format(prefix, hex(rloc16), node))
Dtest-040-network-data-stable-full.py64 rloc16, argument
82 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
97 def verify_no_prefix(node_list, prefix, rloc16): argument
105 if (p.prefix == prefix and p.origin == "ncp" and int(p.rloc16(), 0) == rloc16):
106 …se wpan.VerifyError("Did find prefix {} with rloc {} on node {}".format(prefix, hex(rloc16), node))
Dtest-039-address-cache-table-snoop.py229 verify(cache_table[index].rloc16 == r2_rloc)
255 verify(cache_table[index].rloc16 == r2_rloc)
278 verify(cache_table[index].rloc16 == r3_rloc)
297 verify(cache_table[index].rloc16 == r3_rloc)
316 verify(cache_table[index].rloc16 == r2_rloc)
352 verify(entry.rloc16 == c2_rloc)
375 verify(cache_table[index].rloc16 == c2_rloc)
Dtest-016-neighbor-table.py125 verify(int(entry.rloc16, 16) == int(child.get(wpan.WPAN_THREAD_RLOC16), 16))
139 verify(int(entry.rloc16, 16) == int(router.get(wpan.WPAN_THREAD_RLOC16), 16))
/external/openthread/tests/scripts/thread-cert/
Dtest_common.py126 rloc16 = any_rloc16_int()
129 mac_address = common.MacAddress.from_rloc16(int(rloc16))
133 self.assertEqual(struct.pack(">H", rloc16), mac_address.mac_address)
137 rloc16 = any_rloc16_bytearray()
140 mac_address = common.MacAddress.from_rloc16(rloc16)
144 self.assertEqual(rloc16, mac_address.mac_address)
148 rloc16 = any_rloc16_bytearray()
150 mac_address = common.MacAddress.from_rloc16(rloc16)
156 self.assertEqual(bytearray([0x00, 0x00, 0x00, 0xff, 0xfe, 0x00]) + rloc16, iid)
DCert_5_1_07_MaxChildCount.py254 rloc16 = pv.vars['MED%d_RLOC16' % i]
256 p = _pkts.filter('wpan.dst16 == {rloc16}', rloc16=rloc16).\
260 rloc16=leader_rloc16).\
267 rloc16 = pv.vars['SED%d_RLOC16' % i]
269 p = _pkts.filter('wpan.dst16 == {rloc16}', rloc16=rloc16).\
273 rloc16=leader_rloc16).\
Dtest_network_layer.py178 rloc16 = any_rloc16()
180 rloc16_obj = network_layer.Rloc16(rloc16)
183 actual_rloc16 = rloc16_obj.rloc16
186 self.assertEqual(rloc16, actual_rloc16)
190 rloc16 = any_rloc16()
192 rloc16_obj = network_layer.Rloc16(rloc16)
195 self.assertEqual(rloc16_obj, network_layer.Rloc16(rloc16))
202 rloc16 = any_rloc16()
206 data = bytearray(struct.pack(">H", rloc16))
213 self.assertEqual(rloc16, rloc16_obj.rloc16)
Dcommon.py160 def from_rloc16(cls, rloc16, big_endian=True): argument
161 if isinstance(rloc16, int):
162 mac_address = struct.pack(">H", rloc16)
163 elif isinstance(rloc16, bytearray):
164 mac_address = rloc16[:2]
166 …untimeError("Could not create MAC address from RLOC16. Invalid data type: {}".format(type(rloc16)))
DCert_5_1_05_RouterAddressTimeout.py201 p.thread_address.tlv.rloc16 ==
202 _pkt_as.thread_address.tlv.rloc16
214 p.thread_address.tlv.rloc16 !=
215 _pkt_as2.thread_address.tlv.rloc16 and\
293 p.thread_address.tlv.rloc16 ==
294 _pkt_as3.thread_address.tlv.rloc16
306 p.thread_address.tlv.rloc16 ==
307 _pkt_as3.thread_address.tlv.rloc16 and\
Dnetwork_layer.py114 def __init__(self, rloc16): argument
115 self._rloc16 = rloc16
118 def rloc16(self): member in Rloc16
123 return self.rloc16 == other.rloc16
126 return "Rloc16(rloc16={})".format(hex(self.rloc16))
132 rloc16 = struct.unpack(">H", data.read(2))[0]
134 return Rloc16(rloc16)
DCert_5_1_06_RemoveRouterId.py84 rloc16 = self.nodes[ROUTER1].get_addr16()
90 self.nodes[LEADER].release_router_id(rloc16 >> 10)
167 p.thread_address.tlv.rloc16 ==
168 _pkt_as.thread_address.tlv.rloc16
180 p.thread_address.tlv.rloc16 !=
181 _pkt_as.thread_address.tlv.rloc16 and\
DCert_5_1_03_RouterAddressReallocation.py225 p.thread_address.tlv.rloc16 ==
226 _pkt_as.thread_address.tlv.rloc16).\
234 filter(lambda p: p.thread_address.tlv.rloc16 ==
235 _pkt_as.thread_address.tlv.rloc16 and\
Dv1_2_LowPower_5_3_01_SSEDAttachment.py126 .filter('wpan.dst16 == {rloc16}', rloc16 = ssed_rloc16) \
133 .filter('wpan.dst16 == {rloc16}', rloc16 = leader_rloc16) \
/external/openthread/src/cli/
DREADME_HISTORY.md188 00:00:34.753 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8404 mode:- rss:-20
189 00:01:43.888 -> type:Child event:Removed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
190 00:04:32.701 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
191 00:04:56.756 -> type:Router event:Added extaddr:865c7ca38a5fa960 rloc16:0x9400 mode:rdn rss:-20
192 00:04:57.107 -> type:Child event:Removed extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20
193 00:05:28.284 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:rn rss:-20
194 00:06:46.284 -> type:Child event:Added extaddr:4ec99efc874a1841 rloc16:0x8403 mode:r rss:-20
195 00:06:49.580 -> type:Child event:Added extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20
196 00:06:55.035 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
230 00:00:59.467 -> role:router mode:rdn rloc16:0x6000 partition-id:151029327
[all …]
/external/openthread/tests/unit/
Dtest_network_data.cpp184 for (uint16_t rloc16 : kRlocs) in TestNetworkDataIterator() local
186 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
189 for (uint16_t rloc16 : kNonExistingRlocs) in TestNetworkDataIterator() local
191 VerifyOrQuit(!netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
313 for (uint16_t rloc16 : kRlocsAnyRole) in TestNetworkDataIterator() local
315 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
318 for (uint16_t rloc16 : kNonExistingRlocs) in TestNetworkDataIterator() local
320 VerifyOrQuit(!netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
478 for (uint16_t rloc16 : kRlocsAnyRole) in TestNetworkDataIterator() local
480 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
[all …]
/external/openthread/src/core/thread/
Danycast_locator.cpp103 uint16_t rloc16 = Mac::kShortAddrInvalid; in HandleResponse() local
112 SuccessOrExit(Tlv::Find<ThreadRloc16Tlv>(*aMessage, rloc16)); in HandleResponse()
115 …Get<AddressResolver>().UpdateSnoopedCacheEntry(meshLocalAddress, rloc16, Get<Mac::Mac>().GetShortA… in HandleResponse()
126 callback(mContext, aError, address, rloc16); in HandleResponse()
Dnetwork_data_local.cpp155 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateRloc() local
162 As<HasRouteTlv>(cur)->GetEntry(0)->SetRloc(rloc16); in UpdateRloc()
166 As<BorderRouterTlv>(cur)->GetEntry(0)->SetRloc(rloc16); in UpdateRloc()
234 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateRloc() local
241 As<ServerTlv>(cur)->SetServer16(rloc16); in UpdateRloc()
Drouter_table.cpp282 uint16_t rloc16 = Mle::Mle::Rloc16FromRouterId(aRouterId); in Release() local
290 router = GetNeighbor(rloc16); in Release()
304 if (router->GetNextHop() == rloc16) in Release()
315 Get<NetworkData::Leader>().RemoveBorderRouter(rloc16, NetworkData::Leader::kMatchModeRouterId); in Release()
409 uint16_t rloc16; in GetRouter() local
414 rloc16 = Mle::Mle::Rloc16FromRouterId(aRouterId); in GetRouter()
415 router = FindRouter(Router::AddressMatcher(rloc16, Router::kInStateAny)); in GetRouter()
Dnetwork_data_notifier.cpp190 uint16_t rloc16 = Get<Mle::Mle>().GetRloc16(); in IsEligibleForRouterRoleUpgradeAsBorderRouter() local
204 VerifyOrExit(Get<Local>().ContainsBorderRouterWithRloc(rloc16) && in IsEligibleForRouterRoleUpgradeAsBorderRouter()
205 Get<Leader>().ContainsBorderRouterWithRloc(rloc16)); in IsEligibleForRouterRoleUpgradeAsBorderRouter()
Dchild_table.cpp188 uint16_t rloc16; in GetChildInfoById() local
195 rloc16 = Get<Mac::Mac>().GetShortAddress() | aChildId; in GetChildInfoById()
196 child = FindChild(rloc16, Child::kInStateValidOrRestoring); in GetChildInfoById()
/external/openthread/src/core/net/
Dnd_agent.cpp51 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateService() local
64 … while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
93 while (Get<NetworkData::Leader>().GetNextOnMeshPrefix(iterator, rloc16, config) == kErrorNone) in UpdateService()
/external/openthread/tools/otci/otci/
Dotci.py1237 rloc16, ip = line.split(': ')
1238 rloc16 = Rloc16(rloc16, 16)
1239 ipaddrs.setdefault(rloc16, []).append(Ip6Addr(ip.strip()))
1330 rloc16 = Rloc16(col('RLOC16'), 16)
1332 table[rloc16] = {
1334 'rloc16': rloc16,
1530 prefix, flags, prf, rloc16 = line.split()[:4]
1531 prefixes.append((Ip6Prefix(prefix), flags, prf, Rloc16(rloc16, 16)))
1598 stable, rloc16 = True, line[4]
1600 stable, rloc16 = False, line[3]
[all …]
/external/openthread/tests/scripts/thread-cert/border_router/
Dtest_external_route.py155 rloc16 = int(items[-1], 16)
156 if rloc16 != exclude_rloc16:

123