IPX - Internetwork Packet Exchange

pcapkit.protocols.internet.ipx contains IPX only, which implements extractor for Internetwork Packet Exchange (IPX) *, whose structure is described as below:

Octets

Bits

Name

Description

0

0

ipx.cksum

Checksum

2

16

ipx.len

Packet Length (header includes)

4

32

ipx.count

Transport Control (hop count)

5

40

ipx.type

Packet Type

6

48

ipx.dst

Destination Address

18

144

ipx.src

Source Address


class pcapkit.protocols.internet.ipx.IPX(file=None, length=None, **kwargs)[source]

Bases: pcapkit.protocols.internet.internet.Internet

This class implements Internetwork Packet Exchange.

classmethod __index__()[source]

Numeral registry index of the protocol.

Returns

Numeral registry index of the protocol in IANA.

Return type

pcapkit.const.reg.transtype.TransType

__length_hint__()[source]

Return an estimated length for the object.

Return type

Literal[30]

_read_ipx_address()[source]

Read IPX address field.

Returns

Parsed IPX address field.

Return type

DataType_IPX_Address

make(**kwargs)[source]

Make (construct) packet data.

Keyword Arguments

**kwargs – Arbitrary keyword arguments.

Returns

Constructed packet data.

Return type

bytes

read(length=None, **kwargs)[source]

Read Internetwork Packet Exchange.

Args:

length (Optional[int]): Length of packet data.

Keyword Arguments

**kwargs – Arbitrary keyword arguments.

Returns

Parsed packet data.

Return type

DataType_IPX

property dst

Destination IPX address.

Return type

str

property length

Header length of corresponding protocol.

Return type

Literal[30]

property name

Name of corresponding protocol.

Return type

Literal[‘Internetwork Packet Exchange’]

property protocol

Name of next layer protocol.

Return type

pcapkit.const.reg.transtype.TransType

property src

Source IPX address.

Return type

str

Data Structure

Important

Following classes are only for documentation purpose. They do NOT exist in the pcapkit module.

class pcapkit.protocols.internet.ipx.DataType_IPX
Bases

TypedDict

Structure of IPX header [RFC 1132].

chksum: bytes

Checksum.

len: int

Packet length (header includes).

count: int

Transport control (hop count).

type: pcapkit.const.ipx.packet.Packet

Packet type.

dst: DataType_IPX_Address

Destination address.

src: DataType_IPX_Address

Source address.

For IPX address field, its structure is described as below:

Octets

Bits

Name

Description

0

0

ipx.addr.network

Network Number

4

32

ipx.addr.node

Node Number

10

80

ipx.addr.socket

Socket Number


class pcapkit.protocols.internet.ipx.DataType_IPX_Address
Bases

TypedDict

Structure of IPX address.

network: str

Network number (: separated).

node: str

Node number (- separated).

socket: pcapkit.const.ipx.socket.Socket

Socket number.

addr: str

Full address (: separated).


*

https://en.wikipedia.org/wiki/Internetwork_Packet_Exchange