Home
last modified time | relevance | path

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

123

/openthread-3.7.0/tests/toranj/cli/
Dtest-009-router-table.py117 rloc16 = int(entry['RLOC16'], 0)
121 if rloc16 == r1_rloc16:
123 elif rloc16 == r2_rloc16:
126 elif rloc16 == r3_rloc16:
129 elif rloc16 == r4_rloc16:
133 elif rloc16 == r5_rloc16:
137 elif rloc16 == r6_rloc16:
152 rloc16 = int(entry['RLOC16'], 0)
156 if rloc16 == r1_rloc16:
159 elif rloc16 == r2_rloc16:
[all …]
/openthread-3.7.0/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).\
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)))
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)
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) \
/openthread-3.7.0/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-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-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-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))
/openthread-3.7.0/src/core/thread/
Dnetwork_data_notifier.cpp139 for (uint16_t rloc16 : rlocs) in RemoveStaleChildEntries() local
141 …if (!Mle::IsActiveRouter(rloc16) && Mle::RouterIdMatch(Get<Mle::MleRouter>().GetRloc16(), rloc16) … in RemoveStaleChildEntries()
142 Get<ChildTable>().FindChild(rloc16, Child::kInStateValid) == nullptr) in RemoveStaleChildEntries()
144 error = SendServerDataNotification(rloc16); in RemoveStaleChildEntries()
298 uint16_t rloc16 = Get<Mle::Mle>().GetRloc16(); in IsEligibleForRouterRoleUpgradeAsBorderRouter() local
312 VerifyOrExit(Get<Local>().ContainsBorderRouterWithRloc(rloc16) && in IsEligibleForRouterRoleUpgradeAsBorderRouter()
313 Get<Leader>().ContainsBorderRouterWithRloc(rloc16)); in IsEligibleForRouterRoleUpgradeAsBorderRouter()
Danycast_locator.cpp94 uint16_t rloc16 = Mac::kShortAddrInvalid; in HandleResponse() local
103 SuccessOrExit(Tlv::Find<ThreadRloc16Tlv>(*aMessage, rloc16)); in HandleResponse()
106 …Get<AddressResolver>().UpdateSnoopedCacheEntry(meshLocalAddress, rloc16, Get<Mac::Mac>().GetShortA… in HandleResponse()
112 mCallback.InvokeAndClearIfSet(aError, address, rloc16); in HandleResponse()
Dnetwork_data_local.cpp162 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateRloc() local
169 As<HasRouteTlv>(cur)->GetEntry(0)->SetRloc(rloc16); in UpdateRloc()
173 As<BorderRouterTlv>(cur)->GetEntry(0)->SetRloc(rloc16); in UpdateRloc()
247 uint16_t rloc16 = Get<Mle::MleRouter>().GetRloc16(); in UpdateRloc() local
254 As<ServerTlv>(cur)->SetServer16(rloc16); in UpdateRloc()
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()
/openthread-3.7.0/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()
/openthread-3.7.0/tests/unit/
Dtest_network_data.cpp192 for (uint16_t rloc16 : kRlocs) in TestNetworkDataIterator() local
194 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
197 for (uint16_t rloc16 : kNonExistingRlocs) in TestNetworkDataIterator() local
199 VerifyOrQuit(!netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
317 for (uint16_t rloc16 : kRlocsAnyRole) in TestNetworkDataIterator() local
319 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
322 for (uint16_t rloc16 : kNonExistingRlocs) in TestNetworkDataIterator() local
324 VerifyOrQuit(!netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
491 for (uint16_t rloc16 : kBrRlocsAnyRole) in TestNetworkDataIterator() local
493 VerifyOrQuit(netData.ContainsBorderRouterWithRloc(rloc16)); in TestNetworkDataIterator()
[all …]
/openthread-3.7.0/src/cli/
DREADME_HISTORY.md190 00:00:34.753 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8404 mode:- rss:-20
191 00:01:43.888 -> type:Child event:Removed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
192 00:04:32.701 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
193 00:04:56.756 -> type:Router event:Added extaddr:865c7ca38a5fa960 rloc16:0x9400 mode:rdn rss:-20
194 00:04:57.107 -> type:Child event:Removed extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20
195 00:05:28.284 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:rn rss:-20
196 00:06:46.284 -> type:Child event:Added extaddr:4ec99efc874a1841 rloc16:0x8403 mode:r rss:-20
197 00:06:49.580 -> type:Child event:Added extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20
198 00:06:55.035 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20
232 00:00:59.467 -> role:router mode:rdn rloc16:0x6000 partition-id:151029327
[all …]
/openthread-3.7.0/tools/otci/otci/
Dotci.py1245 rloc16, ip = line.split(': ')
1246 rloc16 = Rloc16(rloc16, 16)
1247 ipaddrs.setdefault(rloc16, []).append(Ip6Addr(ip.strip()))
1338 rloc16 = Rloc16(col('RLOC16'), 16)
1340 table[rloc16] = {
1342 'rloc16': rloc16,
1542 prefix, flags, prf, rloc16 = line.split()[:4]
1543 prefixes.append((Ip6Prefix(prefix), flags, prf, Rloc16(rloc16, 16)))
1619 stable, rloc16 = True, line[4]
1621 stable, rloc16 = False, line[3]
[all …]
/openthread-3.7.0/tests/scripts/thread-cert/border_router/
Dtest_external_route.py155 rloc16 = int(items[-1], 16)
156 if rloc16 != exclude_rloc16:

123