SCTP User-Message Analysis¶
pcapkit.foundation.analysis.sctp contains
sctp_message() only, which parses the
user data of an SCTP user message that
SCTP reassembled, through
SCTP.analyze.
Added in version 1.9.0.
- pcapkit.foundation.analysis.sctp.sctp_message(datagram, *, layer=None, protocol=None, context=None)[source]¶
Parse the user data of an SCTP user message reassembled by
SCTP.The user data is dispatched on the message’s payload protocol identifier by
SCTP.analyze, as a frame’s first DATA or I-DATA chunk is.- Parameters:
datagram (
Datagram) – Reassembled message (reasm.sctp.datagram).layer (
str|None) – Layer to parse until, by name;Nonesets no stop.protocol (
str|ProtocolBase|Type[ProtocolBase] |None) – Protocol to parse until, by name, class or instance;Nonesets no stop.context (
ContextRegistry|ProtocolContext|Mapping[str,ProtocolContext] |Iterable[ProtocolContext] |None) – Caller supplied parsing context, in any shapeextract()takes (cf.pcapkit.corekit.context);Nonesupplies none.
- Return type:
- Returns:
The parsed user data. A payload reported as one contiguous run is parsed whether or not
datagramis complete, asstrict=Falsereports an incomplete one.Noneif the payload is the tuple of runs received, asstrict=Truereports an incomplete one.
Note
Datagram.packetholds what this returns given the stops and context the extraction’s engine parses its frames with, parsed on its first read, unless the reassembly’s__protocol_type__names another protocol, which then parses it instead.