Home
last modified time | relevance | path

Searched refs:MacAddressType (Results 1 – 7 of 7) sorted by relevance

/openthread-3.5.0/tests/scripts/thread-cert/
Dcommon.py113 class MacAddressType(IntEnum): class
121 if _type == MacAddressType.SHORT:
123 elif _type == MacAddressType.LONG:
145 if self._type == MacAddressType.SHORT:
147 elif self._type == MacAddressType.LONG:
157 return cls(eui64, MacAddressType.LONG)
168 return cls(mac_address, MacAddressType.SHORT)
174 …cAddress(mac_address=b'{}', type={})".format(hexlify(self.mac_address), MacAddressType(self._type))
Dtest_common.py121 self.assertEqual(common.MacAddressType.LONG, mac_address.type)
132 self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
143 self.assertEqual(common.MacAddressType.SHORT, mac_address.type)
Dmac802154.py37 from common import MacAddress, MacAddressType, MessageInfo
344 if src_address.type == MacAddressType.SHORT:
379 return MacAddress(data.read(2), MacAddressType.SHORT, big_endian=False)
382 return MacAddress(data.read(8), MacAddressType.LONG, big_endian=False)
Dtest_mac802154.py33 from common import MacAddress, MacAddressType
164 …2001, MacAddress(bytearray([0x16, 0x6e, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x07]), MacAddressType.LONG))
Dmessage.py324 if self.mac_header.dest_address.type == common.MacAddressType.SHORT:
329 elif self.mac_header.dest_address.type == common.MacAddressType.LONG:
346 return self.mac_header.dest_address.type == common.MacAddressType.LONG
Dcommand.py619 assert (command_msg.mac_header.src_address.type == common.MacAddressType.LONG)
Dtest_lowpan.py3264 v = int(originator_address.type == common.MacAddressType.SHORT)
3265 f = int(final_destination_address.type == common.MacAddressType.SHORT)