PyShark
Tools¶
pcapkit.toolkit.pyshark
contains all you need for
pcapkit
handy usage with PyShark engine. All
reforming functions returns with a flag to indicate if
usable for its caller.
- pcapkit.toolkit.pyshark.tcp_traceflow(packet)[source]¶
Trace packet flow for TCP.
- Parameters
packet (Packet) – Scapy packet.
- Returns
A tuple of data for TCP reassembly.
If the
packet
can be used for TCP flow tracing. A packet can be reassembled if it contains TCP layer.If the
packet
can be reassembled, then thedict
mapping of data for TCP flow tracing (trace.packet) will be returned; otherwise, returnsNone
.
- Return type
See also