Example #1
0
 def destination(self, mac_address):
     self._raw_destination = Ethernet.pack_mac_address(mac_address)
     Ethernet.assert_destination(self._raw_destination)
     if isinstance(mac_address, str):
         self._destination = mac_address.upper()
     else:
         self._destination = Ethernet.unpack_mac_address(mac_address)
Example #2
0
 def test_assert_dest(self):
     self.assertTrue(Ethernet.assert_destination(b'\x01\x0c\xcd\x01\x01\xFF'))