Packet sniffer based on libpcap