title: Using pcap to parse through a trace file?
body: <p>I'm currently learning about TCP and packets. I'm working in the C programming language, and I understand how the <code>pcap</code> library can be used to sniff traffic on my computer. But can <code>pcap</code> be used to parse and read through a trace file as well? I need to track the TCP state information from a given trace file. </p>
  
  <p>In a nutshell, I'm curious how I can go about opening a trace file with <code>pcap</code> to parse through it? If someone could get me moving towards the right direction, it would be greatly appreciated! </p>