Home
last modified time | relevance | path

Searched refs:hops_left (Results 1 – 2 of 2) sorted by relevance

/external/openthread/tests/scripts/thread-cert/
Dlowpan.py840 def __init__(self, hops_left, originator_address, final_destination_address): argument
841 self._hops_left = hops_left
846 def hops_left(self): member in LowpanMeshHeader
873 hops_left = data_byte & 0x0F
875 hops_left = ord(data.read(1))
880 return LowpanMeshHeader(hops_left, originator_address, final_destination_address)
Dtest_lowpan.py3220 hops_left = any_hops_left()
3222 mesh_header = lowpan.LowpanMeshHeader(hops_left, any_mac_address(), any_mac_address())
3225 actual_hops_left = mesh_header.hops_left
3228 self.assertEqual(hops_left, actual_hops_left)
3259 hops_left = any_hops_left()
3269 if hops_left >= 0x0f:
3270 mesh_header_data = bytearray([mesh_header_first_byte | 0x0f, hops_left])
3272 mesh_header_data = bytearray([mesh_header_first_byte | hops_left])
3282 self.assertEqual(hops_left, mesh_header.hops_left)