File: //proc/thread-self/root/lib/python3/dist-packages/twisted/pair/__pycache__/ethernet.cpython-38.pyc
U
W[� � @ sp d Z ddlZddlmZ ddlmZ ddlmZmZ G dd� de�Z G dd � d �Z
ee �G d
d� dej��ZdS )z1Support for working directly with ethernet frames� N)�protocol)�raw)�implementer� Interfacec @ s e Zd ZdZdd� Zdd� ZdS )�IEthernetProtocolz6An interface for protocols that handle Ethernet framesc C s dS )z"Add an IRawPacketProtocol protocolN� r r r �7/usr/lib/python3/dist-packages/twisted/pair/ethernet.py�addProto s zIEthernetProtocol.addProtoc C s dS )z#An Ethernet frame has been receivedNr r r r r �datagramReceived s 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� )�structZunpack�dest�source�proto)�self�datar r r �__init__ s �zEthernetHeader.__init__N)r r r
r r r r r r s r c @ s&