Package pcap implements reading and writing the "classic" libpcap format.
LinkType describes the contents of each packet in a pcap.
Some of the more commonly used LinkTypes.
Packet is one raw packet and its metadata.
Reader extracts packets from a pcap file.
NewReader returns a new Reader that decodes pcap data from r.
Err returns the first non-EOF error encountered by the Reader.
Next advances the Reader to the next packet in the input, which will then be available through the Packet method. It returns false when the Reader stops, either by reaching the end of the input or an error. After Next returns false, the Err method will return any error that occured while reading, except that if it was io.EOF, Err will return nil.
Packet returns the packet read by the last call to Next.
Writer serializes Packets to an io.Writer.
Put serializes pkt to w.Writer.