consume the packets from the pcap using a "generator"