You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0eed63f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(engines): write real PCAP traces for dpkt and scapy (#1507)
- toolkit/dpkt, toolkit/scapy: tcp_traceflow reports a FrameRecord, the
engine's packet2dict mapping as before, carrying the captured octets and
the PCAP record header that only the PCAP trace dumper reads.
- engines/dpkt: the PCAP and PCAP-NG readers yield a Timestamp (float) or,
for a nanosecond PCAP, a DecimalTimestamp: the value dpkt yields, carrying
the exact timestamp, the resolution and the original length. Under a dpkt
without the reader internals this relies on, it reads with dpkt's own loop
and warns.
- engines/scapy: captures are read through PcapReader subclasses that stamp
each packet with its PCAP or PCAP-NG interface resolution, and close once.
- foundation/traceflow/data: new FrameRecord, a dict with packet and
frame_info attributes, picklable with every protocol.
- foundation/extraction, interface/misc: dpkt and scapy leave the
trace_format='pcap' -> JSON fallback; #1508's Gap(1507) keeps pypcapfile.
Traced PCAP files are byte-identical to the default engine's, and JSON,
plist and tree output byte-identical to main's.
0 commit comments