pub fn write_pcap(pkt: &Vec<u8>, file_path: &str) -> Result<(), PacketError>Expand description
Writes the packet to a pcap file. The Packet Struct will also have a function called write_pcap that just calls this function. This function was made so any PacketErrors the packet can be written to a pcap file for further inspection.