Tiny source code to log to pcap format