Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/pair/__pycache__/ |
Upload File : |
� Ϫ�f� � � � 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"