def _get_destination_from_packet(self, packet): try: ethernet_header = packet["Ether"] return ethernet_header.dst except: dot11_header = packet["Dot11"] return dot11_header.addr1