Source code for pcapkit.protocols.data.internet.ipx
# -*- coding: utf-8 -*-"""data model for internetwork packet exchange"""fromtypingimportTYPE_CHECKINGfrompcapkit.corekit.infoclassimportinfo_finalfrompcapkit.protocols.data.dataimportDatafrompcapkit.protocols.data.protocolimportProtocolifTYPE_CHECKING:frompcapkit.const.ipx.packetimportPacketfrompcapkit.const.ipx.socketimportSocket__all__=['IPX','Address',]
[docs]@info_finalclassAddress(Data):"""Data model for IPX address."""#: Network number (``:`` separated).network:'str'#: Node number (``-`` separated).node:'str'#: Socket number (``:`` separated).socket:'Socket'#: Full address (``:`` separated).addr:'str'ifTYPE_CHECKING:def__init__(self,network:'str',node:'str',socket:'Socket',addr:'str')->'None':...# pylint: disable=unused-argument,super-init-not-called,multiple-statements
[docs]@info_finalclassIPX(Protocol):"""Data model for Internetwork Packet Exchange."""#: Checksum.chksum:'bytes'#: Packet length (header includes).len:'int'#: Transport control (hop count).count:'int'#: Packet type.type:'Packet'#: Destination Address.dst:'Address'#: Source Address.src:'Address'ifTYPE_CHECKING:def__init__(self,chksum:'bytes',len:'int',count:'int',type:'Packet',dst:'Address',src:'Address')->'None':...# pylint: disable=unused-argument,super-init-not-called,multiple-statements,redefined-builtin,line-too-long