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: Internet[IPX]

This class implements Internetwork Packet Exchange.

Parameters
  • *args (Any) – Arbitrary positional arguments.

  • **kwargs (Any) – Arbitrary keyword arguments.

Return type

Protocol[PT]

classmethod __index__()[source]

Numeral registry index of the protocol.

Return type

TransType

Returns

Numeral registry index of the protocol in IANA.

property name: Literal['Internetwork Packet Exchange']

Name of corresponding protocol.

Return type

Literal[‘Internetwork Packet Exchange’]

property length: Literal[30]

Header length of corresponding protocol.

Return type

Literal[30]

property protocol: TransType

Name of next layer protocol.

Return type

TransType

property src: str

Source IPX address.

Return type

str

property dst: str

Destination IPX address.

Return type

str

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

Read Internetwork Packet Exchange.

Args:

length: Length of packet data. **kwargs: Arbitrary keyword arguments.

Returns

Parsed packet data.

Return type

DataType_IPX

Parameters
make(**kwargs)[source]

Make (construct) packet data.

Parameters

**kwargs (Any) – Arbitrary keyword arguments.

Returns

Constructed packet data.

Return type

bytes

_read_ipx_address()[source]

Read IPX address field.

Return type

Address

Returns

Parsed IPX address field.

Data Structures

class pcapkit.protocols.data.internet.ipx.IPX(chksum, len, count, type, dst, src)[source]

Bases: Info

Data model for Internetwork Packet Exchange.

Parameters
  • *args (VT) – Arbitrary positional arguments.

  • **kwargs (VT) – Arbitrary keyword arguments.

Return type

Info

chksum: bytes

Checksum.

len: int

Packet length (header includes).

count: int

Transport control (hop count).

type: Packet

Packet type.

dst: Address

Destination Address.

src: Address

Source Address.

class pcapkit.protocols.data.internet.ipx.Address(network, node, socket, addr)[source]

Bases: Info

Data model for IPX address.

Parameters
  • *args (VT) – Arbitrary positional arguments.

  • **kwargs (VT) – Arbitrary keyword arguments.

Return type

Info

network: str

Network number (: separated).

node: str

Node number (- separated).

socket: Socket

Socket number (: separated).

addr: str

Full address (: separated).


*

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