Raw Packet Data¶
pcapkit.protocols.misc.raw
contains
Raw
only, which implements
extractor for unknown protocol, and constructs a
Protocol
like object.
- class pcapkit.protocols.misc.raw.Raw(file=None, length=None, **kwargs)[source]¶
Bases:
ProtocolBase
[Raw
,Raw
]This class implements universal unknown protocol.
- property name: Literal['Unknown']¶
Name of current protocol.
- property protocol: NoReturn¶
Name of next layer protocol.
- Raises:
UnsupportedCall – This protocol doesn’t support
protocol
.
- __post_init__(file=None, length=None, **kwargs)[source]¶
Post initialisation hook.
Would
pcapkit
encounter malformed packets, the original parsing error instance will be provided as inerror
.- Parameters:
- Return type:
See also
For construction argument, please refer to
make()
.
- classmethod __index__()[source]¶
Numeral registry index of the protocol.
- Raises:
UnsupportedCall – This protocol has no registry entry.
- Return type: