No-Payload Packet¶
pcapkit.protocols.null contains
NoPayload only, which
implements a Protocol like
object whose payload is recursively
NoPayload itself.
- class pcapkit.protocols.misc.null.NoPayload(file=None, length=None, **kwargs)¶
Bases:
ProtocolBase[NoPayload,NoPayload]This class implements no-payload protocol.
- property name: Literal['Null']¶
Name of current protocol.
- property protocol: NoReturn¶
Name of next layer protocol.
- Raises:
UnsupportedCall – This protocol doesn’t support
protocol.
- read(length=None, **kwargs)¶
Read (parse) packet data.
- make(**kwargs)¶
Make (construct) packet data.
- __post_init__(file=None, length=None, **kwargs)¶
Post initialisation hook.
- classmethod __index__()¶
Numeral registry index of the protocol.
- Raises:
UnsupportedCall – This protocol has no registry entry.
- Return type:
Header Schemas¶
Data Models¶
- class pcapkit.protocols.data.misc.null.NoPayload¶
Bases:
ProtocolNo-payload packet is an empty packet.