The shredcap container is a streaming file format designed for capturing Solana block data suitable for replay. It is layered on top of the pcapng format, allowing shredcap flows to coexist with other network traffic.
Shredcap stores block data via UDP/IP packets, where each packet contains a Solana shred in Turbine wire format. Because shreds require context to be interpreted, the format embeds interfaces and metadata packets to provide necessary parsing context.
Key Parsing Rule: Readers should transparently handle files containing multiple Section Header Blocks (SHB) by resetting any cached parse state, such as cached interfaces or endpoints, whenever an SHB is encountered.