title: Why is pcap_dispatch only returning 1 packet?
body: <p>Why is <code>pcap_dispatch</code> (with <code>count</code>=10) only returning 1 packet?</p>
  
  <p>If I don't do anything it waits and then shows 1 packet, but if I click on a link it stops immediately and shows 1 packet.</p>
  
  <p>Am I supposed to have a loop like this or not?:</p>
  
  <pre><code>for i in range(0,10):
          p.dispatch(10, savePacket)
  </code></pre>
  
  <p>This is python, but I had the same problem in C.</p>