changed pcap_gen