extern c is not needed for pcap