Convert a pcap into an enumerator