File: //lib/python3/dist-packages/twisted/pair/__pycache__/ethernet.cpython-310.pyc
o
�b� � @ sp d Z ddlZddlmZmZ ddlmZ ddlmZ G dd� de�Z G dd � d �Z
ee �G d
d� dej��ZdS )z1Support for working directly with ethernet frames� N)� Interface�implementer)�protocol)�rawc @ s e Zd ZdZdd� Zdd� ZdS )�IEthernetProtocolz6An interface for protocols that handle Ethernet framesc C � dS )z"Add an IRawPacketProtocol protocolN� )�num�protor r �7/usr/lib/python3/dist-packages/twisted/pair/ethernet.py�addProto � zIEthernetProtocol.addProtoc C r )z#An Ethernet frame has been receivedNr )�data�partialr r r �datagramReceived r
z"IEthernetProtocol.datagramReceivedN)�__name__�
__module__�__qualname__�__doc__r r r r r r r s r c @ s e Zd Zdd� ZdS )�EthernetHeaderc C s$ t �d|d d� �\| _| _| _d S )Nz!6s6sH� )�struct�unpack�dest�sourcer
)�selfr r r r �__init__ s �zEthernetHeader.__init__N)r r r r r r r r r s r c @ s&