Added function call to avoid libpcap new version bug
pcap bug fixed with ifdef for all versions