Searched refs:MacAddressType (Results 1 – 7 of 7) sorted by relevance
/external/openthread/tests/scripts/thread-cert/ |
D | common.py | 113 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))
|
D | test_common.py | 121 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)
|
D | mac802154.py | 37 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)
|
D | test_mac802154.py | 33 from common import MacAddress, MacAddressType 164 …2001, MacAddress(bytearray([0x16, 0x6e, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x07]), MacAddressType.LONG))
|
D | message.py | 324 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
|
D | command.py | 619 assert (command_msg.mac_header.src_address.type == common.MacAddressType.LONG)
|
D | test_lowpan.py | 3264 v = int(originator_address.type == common.MacAddressType.SHORT) 3265 f = int(final_destination_address.type == common.MacAddressType.SHORT)
|