Ϫf]@dZddlmZGddeZGddeZy)z4 Interface definitions for working with raw packets ) InterfaceceZdZdZdZdZy)IRawDatagramProtocolz? An interface for protocols such as UDP, ICMP and TCP. cyz4 Add a protocol on top of this one. Nnumprotos 2/usr/lib/python3/dist-packages/twisted/pair/raw.pyaddProtozIRawDatagramProtocol.addProtocyzI An IP datagram has been received. Parse and process it. Nr)datapartialsourcedestprotocolversionihltostot_len fragment_idfragment_offset dont_fragmentmore_fragmentsttls r datagramReceivedz%IRawDatagramProtocol.datagramReceivedrrN__name__ __module__ __qualname____doc__r r rrr rr s  rrceZdZdZdZdZy)IRawPacketProtocolzB An interface for low-level protocols such as IP and ARP. cyrrr s r r zIRawPacketProtocol.addProto.rrcyrr)rrrrrs r r z#IRawPacketProtocol.datagramReceived3rrNr!rrr r'r')s  rr'N)r%zope.interfacerrr'rrr r+s'% 9 >    r