The last 2 functions require pcap.