
    \d]                     N    d Z ddlmZ  G d de          Z G d de          ZdS )z4
Interface definitions for working with raw packets
    )	Interfacec                       e Zd ZdZd Zd ZdS )IRawDatagramProtocolz?
    An interface for protocols such as UDP, ICMP and TCP.
    c                     dS z4
        Add a protocol on top of this one.
        N numprotos     0lib/python3.11/site-packages/twisted/pair/raw.pyaddProtozIRawDatagramProtocol.addProto             c                     dS zI
        An IP datagram has been received. Parse and process it.
        Nr   )datapartialsourcedestprotocolversionihltostot_lenfragment_idfragment_offsetdont_fragmentmore_fragmentsttls                 r   datagramReceivedz%IRawDatagramProtocol.datagramReceived   r   r   N__name__
__module____qualname____doc__r   r    r   r   r   r   r   
   s<           
    r   r   c                       e Zd ZdZd Zd ZdS )IRawPacketProtocolzB
    An interface for low-level protocols such as IP and ARP.
    c                     dS r   r   r	   s     r   r   zIRawPacketProtocol.addProto.   r   r   c                     dS r   r   )r   r   r   r   r   s        r   r    z#IRawPacketProtocol.datagramReceived3   r   r   Nr!   r   r   r   r'   r'   )   s<           
    r   r'   N)r%   zope.interfacer   r   r'   r   r   r   <module>r+      s     % $ $ $ $ $    9   >         r   