sniff the network or a pcap with libpcap and store stats