PCAP (named after libpcap / winpcap) is a popular format for saving
network traffic grabbed by network sniffers. It is typically
produced by tools like tcpdump or
This page hosts a formal specification of .pcap / .pcapdump file format
using Kaitai Struct. This
specification can be automatically translated into a
variety of programming languages to get a parsing library.