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 |
|
Checksum |
2 |
16 |
|
Packet Length (header includes) |
4 |
32 |
|
Transport Control (hop count) |
5 |
40 |
|
Packet Type |
6 |
48 |
|
Destination Address |
18 |
144 |
|
Source Address |
-
class
pcapkit.protocols.internet.ipx.IPX(file=None, length=None, **kwargs)[source]¶ Bases:
pcapkit.protocols.internet.internet.InternetThis 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
-
make(**kwargs)[source]¶ Make (construct) packet data.
- Keyword Arguments
**kwargs – Arbitrary keyword arguments.
- Returns
Constructed packet data.
- Return type
-
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
-
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
-
classmethod
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].
-
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 |
|
Network Number |
4 |
32 |
|
Node Number |
10 |
80 |
|
Socket Number |
-
class
pcapkit.protocols.internet.ipx.DataType_IPX_Address¶ - Bases
TypedDict
Structure of IPX address.
-
socket: pcapkit.const.ipx.socket.Socket¶ Socket number.