Home
last modified time | relevance | path

Searched full:rloc16 (Results 1 – 25 of 174) sorted by relevance

1234567

/aosp_15_r20/external/openthread/tests/toranj/cli/
H A 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 …]
H A Dtest-016-child-mode-change.py81 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:
/aosp_15_r20/external/openthread/src/cli/
H A DREADME.md108 - [rloc16](#rloc16)
762 | ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt|Suprvsn| Extended MA…
771 Print diagnostic information for an attached Thread Child. The `id` may be a Child ID or an RLOC16.
1165 - RLOC16, extended MAC address
2145 …closest destination of an anycast address (i.e., find the destination's mesh local EID and RLOC16).
2219 - RLOC16
2233 - RLOC16
2243 id:02 rloc16:0x0800 ext-addr:8aa57d2c603fe16c ver:4 - me - leader
2245 id:46 rloc16:0xb800 ext-addr:fe109d277e0175cc ver:4
2247 id:33 rloc16:0x8400 ext-addr:d2e511a146b9e54d ver:4
[all …]
H A DREADME_HISTORY.md31 | 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 …]
H A Dcli_history.cpp302 * | 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 …]
H A DREADME_NETDATA.md337 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
388 - Border Agent RLOC16 (in hex) if present in Dataset or `-` otherwise
412 Print Network Data entries from the Leader associated with `0xa00` RLOC16.
H A Dcli_network_data.cpp736 * @cparam netdata show [@ca{-x}|@ca{rloc16}]
738 …* * The optional `rloc16` argument gets all prefix/route/service entries associated with a given…
757 * * RLOC16 of device which added the on-mesh prefix
765 * * RLOC16 of device which added the route prefix
773 * * RLOC16 of devices which added the service entry
783 * * Border Agent RLOC16 (in hex) if present in Dataset or `-` otherwise
797 uint16_t rloc16 = kAnyRloc16; in Process() local
834 SuccessOrExit(error = aArgs[i].ParseAsUint16(rloc16)); in Process()
840 VerifyOrExit(rloc16 == kAnyRloc16, error = OT_ERROR_INVALID_ARGS); in Process()
849 OutputNetworkData(local, rloc16); in Process()
/aosp_15_r20/external/openthread/src/core/thread/
H A Dmle_types.hpp85 …t8_t kRouterIdOffset = 10; ///< Bit offset of router ID in RLOC16
86 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 …]
H A Daddress_resolver.hpp137 * 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 …]
H A Drouter_table.hpp168 * 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 …]
H A Dnetwork_data_notifier.cpp139 for (uint16_t rloc16 : rlocs) in RemoveStaleChildEntries() local
141 if (Mle::IsChildRloc16(rloc16) && Get<Mle::Mle>().HasMatchingRouterIdWith(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()
/aosp_15_r20/external/openthread/tools/otci/otci/
H A Dotci.py39 from .types import ChildId, Rloc16, Ip6Addr, ThreadState, PartitionId, DeviceMode, RouterId, Securi…
519 def get_rloc16(self) -> Rloc16:
520 """Get the Thread RLOC16 value."""
521 return Rloc16(self.__parse_int(self.execute_command('rloc16'), 16))
677 # | ID | RLOC16 | Next Hop | Path Cost | LQ In | LQ Out | Age | Extended MAC |
701 'rloc16': Rloc16(col('RLOC16'), 16),
730 'rloc16': Rloc16(col('Rloc'), 16),
732 'next_hop': int(col('Next Hop'), 16) >> 10, # convert RLOC16 to Router ID
748 …# | ID | RLOC16 | Timeout | Age | LQ In | C_VN |R|D|N|Ver|CSL|QMsgCnt| Extended MAC …
781 'rloc16': Rloc16(col('RLOC16'), 16),
[all …]
/aosp_15_r20/external/openthread/tests/scripts/thread-cert/
H A 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))
212 self.assertTrue(isinstance(rloc16_obj, network_layer.Rloc16))
[all …]
H A Dnetwork_layer.py41 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)
H A DCert_5_1_05_RouterAddressTimeout.py146 # 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 …]
H A DCert_5_1_07_MaxChildCount.py254 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).\
H A 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)
H A 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 …ise RuntimeError("Could not create MAC address from RLOC16. Invalid data type: {}".format(type(rlo…
/aosp_15_r20/external/openthread/tests/toranj/ncp/
H A 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 …]
H A Dtest-025-network-data-timeout.py47 …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))
H A Dtest-021-address-cache-table.py40 # 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 …]
H A Dtest-040-network-data-stable-full.py64 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))
/aosp_15_r20/external/ot-br-posix/src/web/web-service/frontend/res/js/
H A Dapp.js453 '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 …]
/aosp_15_r20/external/openthread/include/openthread/
H A Dmesh_diag.h100 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 …]
/aosp_15_r20/external/openthread/tests/unit/
H A Dtest_network_data.cpp53 …printf(", length:%d, rloc16:%04x, preference:%d, nat64:%d, stable:%d, nexthop:%d", aConfig.mPrefix… in PrintExternalRouteConfig()
66 …printf(", length:%d, rloc16:%04x, preference:%d, stable:%d, def-route:%d", aConfig.mPrefix.mLength… in PrintOnMeshPrefixConfig()
192 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()
[all …]

1234567