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
fix(engines): the dpkt engine passes a Decimal timestamp for nanosecond PCAP #1501
Describe the bug
For a nanosecond PCAP the dpkt engine hands reassembly and traceflow a Decimal timestamp, while the default and scapy engines hand a float.
Reproduction
On examples/captures/big_endian_nanosecond.pcap, reassembly receives Decimal('1500000000.123456789') from dpkt, and 1500000000.1234567 from the default and scapy engines.
Expected behavior
The same type from every engine.
System information
Linux, CPython 3.14.7, main at 00aa1fc90.
Additional context pcapkit/foundation/engines/dpkt.py:309 passes dpkt's value through; pcapkit/toolkit/pcap.py:73 converts to float for the default engine.
Found by the #1202 foundation round-trip slice; reproduced on main.
Blocked until the #1202 foundation-slice test PR (branch test/1202-foundation-roundtrips) merges. That PR adds this defect's Gap row, and the fix must delete the row.
Unblocked: #1511 has merged (2d088a745). A worker is on this together with #1520, since both fixes are in pcapkit/foundation/engines/dpkt.py. One PR will close both and delete both Gap rows.
Activity
JarryShaw commentedon Oct 9, 2026
Blocked until the #1202 foundation-slice test PR (branch
test/1202-foundation-roundtrips) merges. That PR adds this defect'sGaprow, and the fix must delete the row.JarryShaw commentedon Oct 9, 2026
Still blocked, now on #1511 instead of #1508. #1508 has merged, but #1511 is editing the same file this fix needs. Unblocks when #1511 merges.
JarryShaw commentedon Oct 10, 2026
Unblocked: #1511 has merged (
2d088a745). A worker is on this together with #1520, since both fixes are inpcapkit/foundation/engines/dpkt.py. One PR will close both and delete bothGaprows.fix(engines): dpkt float timestamps, Simple Packet Blocks and raw-IP …
fix(engines): dpkt float timestamps, Simple Packet Blocks and raw-IP …
fix(engines): dpkt float timestamps, Simple Packet Blocks and raw-IP …
fix(engines): dpkt float timestamps, Simple Packet Blocks and raw-IP …