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]¶
-
This class implements Internetwork Packet Exchange.
- property name: Literal['Internetwork Packet Exchange']¶
Name of corresponding protocol.
- make(chksum=b'\\x00\\x00', count=0, type=<Packet.Unknown: 0>, type_default=None, type_namespace=None, type_reversed=False, dst=b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00', src=b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00', payload=b'', **kwargs)[source]¶
Make (construct) packet data.
- Parameters:
chksum (
bytes
) – Checksum.count (
int
) – Transport Control (hop count).type (
Packet
|IntEnum
|IntEnum
|str
|int
) – Packet Type.type_default (
Optional
[int
]) – Default value for undefined packet type.type_namespace (
Union
[dict
[str
,int
],dict
[int
,str
],Type
[IntEnum
],Type
[IntEnum
],None
]) – Namespace for packet type.type_reversed (
bool
) – Reverse namespace for packet type.dst (
bytes
) – Destination Address.src (
bytes
) – Source Address.payload (
bytes
|ProtocolBase
|Schema
) – Payload data.**kwargs (
Any
) – Arbitrary keyword arguments.
- Returns:
Constructed packet data.
- Return type:
Header Schemas¶
- class pcapkit.protocols.schema.internet.ipx.IPX(dict_=None, **kwargs)[source]¶
Bases:
Schema
Header schema for IPX packet.
- chksum: bytes = <BytesField chksum>¶
Checksum.
- len: int = <UInt16Field len>¶
Packet length (header includes).
- count: int = <UInt8Field count>¶
Transport control (hop count).
- type: Enum_Packet = <EnumField type>¶
Packet type.
- dst: bytes = <BytesField dst>¶
Destination address.
- src: bytes = <BytesField src>¶
Source address.
- payload: bytes = <PayloadField payload>¶
Payload.
Data Models¶
- class pcapkit.protocols.data.internet.ipx.IPX(*args: VT, **kwargs: VT)[source]¶
Bases:
Protocol
Data model for Internetwork Packet Exchange.
- 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(*args: VT, **kwargs: VT)[source]¶
Bases:
Data
Data model for IPX address.
- network: str¶
Network number (
:
separated).
- node: str¶
Node number (
-
separated).
- socket: Socket¶
Socket number (
:
separated).
- addr: str¶
Full address (
:
separated).
Footnotes