change to pcap_next_ex method