Made generating the headers its own method in pcap.