| /external/openthread/tests/toranj/cli/ |
| D | test-009-router-table.py | 117 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 …]
|
| D | test-016-child-mode-change.py | 81 if int(entry['RLOC16'], 16) == child1_rloc: 85 elif int(entry['RLOC16'], 16) == child2_rloc: 104 if int(entry['RLOC16'], 16) == child1_rloc: 108 elif int(entry['RLOC16'], 16) == child2_rloc: 135 if int(entry['RLOC16'], 16) == child1_rloc: 139 elif int(entry['RLOC16'], 16) == child2_rloc: 164 if int(entry['RLOC16'], 16) == child1_rloc: 168 elif int(entry['RLOC16'], 16) == child2_rloc: 193 if int(entry['RLOC16'], 16) == child1_rloc: 197 elif int(entry['RLOC16'], 16) == child2_rloc:
|
| D | test-023-mesh-diag.py | 138 verify(len([line for line in childtable if line.startswith('rloc16')]) == 2) 141 verify(len([line for line in childtable if line.startswith('rloc16')]) == 3) 144 verify(len([line for line in childtable if line.startswith('rloc16')]) == 0) 147 verify(len([line for line in childrenip6addrs if line.startswith('child-rloc16')]) == 1) 151 verify(len([line for line in childrenip6addrs if line.startswith('child-rloc16')]) == 2) 154 verify(len([line for line in neightable if line.startswith('rloc16')]) == 2) 157 verify(len([line for line in neightable if line.startswith('rloc16')]) == 1)
|
| /external/openthread/tests/scripts/thread-cert/ |
| D | network_layer.py | 41 RLOC16 = 2 variable in TlvType 112 class Rloc16(object): class 114 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)
|
| D | test_network_layer.py | 178 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)) 212 self.assertTrue(isinstance(rloc16_obj, network_layer.Rloc16)) [all …]
|
| D | test_common.py | 126 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)
|
| D | Cert_5_1_05_RouterAddressTimeout.py | 146 # The RLOC16 TLV in the Address Solicit Response message MUST 155 # - RLOC16 TLV 201 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\ 240 # The RLOC16 TLV in the Address Solicit Response message MUST 247 # - RLOC16 TLV 293 p.thread_address.tlv.rloc16 == 294 _pkt_as3.thread_address.tlv.rloc16 [all …]
|
| D | Cert_5_1_07_MaxChildCount.py | 254 rloc16 = pv.vars['MED%d_RLOC16' % i] 256 p = _pkts.filter('wpan.dst16 == {rloc16}', rloc16=rloc16).\ 259 _pkts.filter('wpan.dst16 == {rloc16}', 260 rloc16=leader_rloc16).\ 267 rloc16 = pv.vars['SED%d_RLOC16' % i] 269 p = _pkts.filter('wpan.dst16 == {rloc16}', rloc16=rloc16).\ 272 _pkts.filter('wpan.dst16 == {rloc16}', 273 rloc16=leader_rloc16).\
|
| D | common.py | 160 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 …ise RuntimeError("Could not create MAC address from RLOC16. Invalid data type: {}".format(type(rlo…
|
| D | Cert_5_1_06_RemoveRouterId.py | 84 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\
|
| /external/openthread/tests/toranj/ncp/ |
| D | test-020-router-table.py | 128 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 …]
|
| D | test-025-network-data-timeout.py | 47 …hat all the unique and common prefixes are present on all nodes are associated with correct RLOC16. 60 rloc16, argument 73 `prefix` is associated with the given `rloc16` (as an integer). 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 96 given `rloc16`. 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))
|
| D | test-021-address-cache-table.py | 40 # source RLOC16 on a received frame differs from an existing entry in the 130 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) [all …]
|
| D | test-040-network-data-stable-full.py | 64 rloc16, argument 77 `prefix` is associated with the given `rloc16` (as an integer). 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 100 given `rloc16`. 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))
|
| /external/openthread/tools/otci/otci/ |
| D | otci.py | 39 from .types import ChildId, Rloc16, Ip6Addr, ThreadState, PartitionId, DeviceMode, RouterId, Securi… 500 def get_rloc16(self) -> Rloc16: 501 """Get the Thread RLOC16 value.""" 502 return Rloc16(self.__parse_int(self.execute_command('rloc16'), 16)) 658 # | ID | RLOC16 | Next Hop | Path Cost | LQ In | LQ Out | Age | Extended MAC | 682 'rloc16': Rloc16(col('RLOC16'), 16), 711 'rloc16': Rloc16(col('Rloc'), 16), 713 'next_hop': int(col('Next Hop'), 16) >> 10, # convert RLOC16 to Router ID 729 …# | ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt| Extended MAC … 753 'rloc16': Rloc16(col('RLOC16'), 16), [all …]
|
| /external/openthread/src/cli/ |
| D | README.md | 108 - [rloc16](#rloc16) 724 | ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt|Suprvsn| Extended MA… 733 Print diagnostic information for an attached Thread Child. The `id` may be a Child ID or an RLOC16. 1127 - RLOC16, extended MAC address 2054 …closest destination of an anycast address (i.e., find the destination's mesh local EID and RLOC16). 2128 - RLOC16 2142 - RLOC16 2152 id:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - me - leader 2154 id:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4 2156 id:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4 [all …]
|
| D | README_HISTORY.md | 31 | Age | Role | Mode | RLOC16 | Partition ID | 163 - RLOC16 171 | Age | Type | Event | Extended Address | RLOC16 | Mode | Ave RSS | 190 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 [all …]
|
| D | cli_history.cpp | 302 * | Age | Type | Event | Extended Address | RLOC16 | Mode | Ave RSS | 317 * 00:00:34.753 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8404 mode:- rss:-20 318 * 00:01:43.888 -> type:Child event:Removed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20 319 * 00:04:32.701 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20 320 * 00:04:56.756 -> type:Router event:Added extaddr:865c7ca38a5fa960 rloc16:0x9400 mode:rdn rss:-20 321 * 00:04:57.107 -> type:Child event:Removed extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20 322 * 00:05:28.284 -> type:Child event:Changed extaddr:ae5105292f0b9169 rloc16:0x8401 mode:rn rss:-20 323 * 00:06:46.284 -> type:Child event:Added extaddr:4ec99efc874a1841 rloc16:0x8403 mode:r rss:-20 324 * 00:06:49.580 -> type:Child event:Added extaddr:865c7ca38a5fa960 rloc16:0x8402 mode:rdn rss:-20 325 * 00:06:55.035 -> type:Child event:Added extaddr:ae5105292f0b9169 rloc16:0x8401 mode:- rss:-20 [all …]
|
| D | README_NETDATA.md | 337 Usage: `netdata show [local] [-x] [\<rloc16\>]` 341 If the optional `rloc16` input is specified, prints the entries associated with the given RLOC16 on… 357 - RLOC16 of device which added the on-mesh prefix 367 - RLOC16 of device which added the route prefix 376 - RLOC16 of devices which added the service entry 387 - Border Agent RLOC16 (in hex) if present in Dataset or `-` otherwise 411 Print Network Data entries from the Leader associated with `0xa00` RLOC16.
|
| /external/openthread/src/core/thread/ |
| D | address_resolver.hpp | 137 * Removes the EID-to-RLOC cache entries corresponding to an RLOC16. 139 * @param[in] aRloc16 The RLOC16 address. 161 * Replaces all EID-to-RLOC cache entries corresponding to an old RLOC16 with a new RLOC16. 163 * @param[in] aOldRloc16 The old RLOC16. 164 * @param[in] aNewRloc16 The new RLOC16. 176 * @param[in] aRloc16 The RLOC16 corresponding to @p aEid. 183 * Returns the RLOC16 for a given EID, initiates an Address Query if the mapping is not known. 186 * @param[out] aRloc16 The RLOC16 corresponding to @p aEid. 188 * @retval kErrorNone Successfully provided the RLOC16. 200 * Looks up the RLOC16 for a given EID in the address cache. [all …]
|
| D | router_table.hpp | 168 * Returns the minimum mesh path cost to the given RLOC16 170 * @param[in] aDestRloc16 The RLOC16 of destination 186 * Determines the next hop towards an RLOC16 destination. 188 * @param[in] aDestRloc16 The RLOC16 of the destination. 190 * @returns A RLOC16 of the next hop if a route is known, `Mle::kInvalidRloc16` otherwise. 196 * Determines the next hop and the path cost towards an RLOC16 destination. 198 * @param[in] aDestRloc16 The RLOC16 of the destination. 199 …* @param[out] aNextHopRloc16 A reference to return the RLOC16 of next hop if known, or `Mle::kIn… 226 * Finds the router for a given RLOC16. 228 * @param[in] aRloc16 The RLOC16 to search for. [all …]
|
| D | mle_types.hpp | 84 …t8_t kRouterIdOffset = 10; ///< Bit offset of router ID in RLOC16 85 constexpr uint16_t kInvalidRloc16 = Mac::kShortAddrInvalid; ///< Invalid RLOC16. 594 * Derives the Child ID from a given RLOC16. 596 * @param[in] aRloc16 The RLOC16 value. 598 * @returns The Child ID portion of an RLOC16. 604 * Derives the Router ID portion from a given RLOC16. 606 * @param[in] aRloc16 The RLOC16 value. 608 * @returns The Router ID portion of an RLOC16. 625 * Returns whether the two RLOC16 have the same Router ID. 627 * @param[in] aRloc16A The first RLOC16 value. [all …]
|
| D | network_data_notifier.cpp | 139 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()
|
| /external/ot-br-posix/src/web/web-service/frontend/res/js/ |
| D | app.js | 453 'Rloc16': { 'title': false, 'content': true }, property 475 $scope.basicInfo.Rloc16 = $scope.intToHexString($scope.basicInfo.Rloc16,4); 514 … diagOfNode['RouteId'] = '0x' + $scope.intToHexString(diagOfNode['Rloc16'] >> 10,2); 516 diagOfNode['Rloc16'] = '0x' + $scope.intToHexString(diagOfNode['Rloc16'],4); 529 rloc = parseInt(diagOfNode['Rloc16'],16).toString(16); 540 if (diagOfNode['Rloc16'] === $scope.basicInfo.rloc16) { 577 rlocOfParent = parseInt(diagOfNode['Rloc16'],16).toString(16); 578 … rlocOfChild = (parseInt(diagOfNode['Rloc16'],16) + childInfo['ChildId']).toString(16); 582 child['Rloc16'] = '0x' + rlocOfChild; 758 .text(item.Rloc16 ); [all …]
|
| /external/openthread/include/openthread/ |
| D | mesh_diag.h | 100 uint16_t mRloc16; ///< RLOC16. 150 uint16_t mRloc16; ///< RLOC16. 249 uint16_t mRloc16; ///< RLOC16. 288 * @param[in] aRloc16 The RLOC16 of router to query. 294 * @retval OT_ERROR_INVALID_ARGS The @p aRloc16 is not a valid router RLOC16. 314 …* @param[in] aChildRloc16 The RLOC16 of the child. `0xfffe` is used on `OT_ERROR_RESPONSE_TIM… 329 * @param[in] aRloc16 The RLOC16 of parent to query. 335 * @retval OT_ERROR_INVALID_ARGS The @p aRloc16 is not a valid RLOC16. 358 uint16_t mRloc16; ///< RLOC16. 391 * @param[in] aRloc16 The RLOC16 of router to query. [all …]
|