Example of sniffer using pcap library