title: Reading PCAP file with scapy
body: <p>I have about 10GB pcap data with IPv6 traffic to analyze infos stored in IPv6 header and other extension header. To do this I decided to use Scapy framework. I tried <strong><em>rdpcap</em></strong> function , but for such big files it is not recommended. It tries to load all file into memory and get stuck in my case. 
  I found in the Net that in such situation <strong><em>sniff</em></strong> is recommended, my code look like:</p>
  
  <pre><code>def main():
     sniff(offline='traffic.pcap', prn=my_method,store=0)
  
  
  def my_method(packet):
     packet.show()
  </code></pre>
  
  <p>In function called <strong><em>my_method</em></strong> I receive each packet separately and I can parse them, but.... 
  When I call <strong><em>show</em></strong> function with is in-build framework method I got sth like this:
  <img src="https://i.imgur.com/5JTXU1Q.png" alt="result"></p>
  
  <p>When opened in wireshark I got properly looking packet:
  <img src="https://i.imgur.com/Hhrr1AI.png" alt="result2"></p>
  
  <p>Could you tell me how to parse this packets in scapy to get proper results?</p>
  
  <p>EDIT:
  According to the discussion in comments I found a way to parse PCAP file with Python. In my opinion the easies way is to use pyshark framework:</p>
  
  <pre><code>import pyshark
  pcap = pyshark.FileCapture(pcap_path) ### for reading PCAP file
  </code></pre>
  
  <p>It is possible to easily iterate read file with for loop</p>
  
  <pre><code>for pkt in pcap:
      #do what you want
  </code></pre>
  
  <p>For parsing IPv6 header following methods may be useful:</p>
  
  <pre><code>pkt['ipv6'].tclass            #Traffic class field
  pkt['ipv6'].tclass_dscp       #Traffic class DSCP field
  pkt['ipv6'].tclass_ecn        #Traffic class ECN field
  pkt['ipv6'].flow              #Flow label field
  pkt['ipv6'].plen              #Payload length field
  pkt['ipv6'].nxt               #Next header field
  pkt['ipv6'].hlim              #Hop limit field
  </code></pre>