title: Scapy - how to get the statistics?
body: <p>I need to write a network sniffer and I have decided to use python to do it. I know that the performances will not be the best, and for this kind of software I should use c or c++, but a good prototype will just do for me. So I have been working with libpcap library for python 2.7 and I could get all the info I needed such as:
  IP source and destination, with relative ports, timestamp and packet length. 
  But the problem was that I noticed that with high traffic there was an huge packet dropping.</p>
  
  <p>It must be said that these info were inserted into a mysql database during the whole process.</p>
  
  <p>So before I go further with Scapy <strong>I would like to understand if there is a way to measure how many packets I will loose during this elaboration</strong>.</p>
  
  <p>Thank you</p>