| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/pair/__pycache__/ |
Upload File : |
�
oj� � � � d Z ddlZddlmZmZ ddlmZ ddlmZ G d� de� Z G d� d � Z
ee � G d
� dej � � Zy)z1Support for working directly with ethernet frames� N)� Interface�implementer)�protocol)�rawc � � e Zd ZdZd� Zd� Zy)�IEthernetProtocolz6An interface for protocols that handle Ethernet framesc � � y)z"Add an IRawPacketProtocol protocolN� )�num�protos �7/usr/lib/python3/dist-packages/twisted/pair/ethernet.py�addProtozIEthernetProtocol.addProto � � � c � � y)z#An Ethernet frame has been receivedNr
)�data�partials r
�datagramReceivedz"IEthernetProtocol.datagramReceived r r N)�__name__�
__module__�__qualname__�__doc__r r r
r r
r r s � �@�1�2r r c � � e Zd Zd� Zy)�EthernetHeaderc �\ � t j d|d d � \ | _ | _ | _ y )Nz!6s6sH� )�struct�unpack�dest�sourcer )�selfr s r
�__init__zEthernetHeader.__init__ s) � �/5�}�}��d�;�Y�'�0
�,���D�K��r N)r r r r"