Reader extracts packets from a pcap file.
| 36 | |
| 37 | // Reader extracts packets from a pcap file. |
| 38 | type Reader struct { |
| 39 | LinkType LinkType |
| 40 | |
| 41 | r io.Reader |
| 42 | order binary.ByteOrder |
| 43 | tmult int64 |
| 44 | |
| 45 | pkt *Packet |
| 46 | err error |
| 47 | } |
| 48 | |
| 49 | // Packet is one raw packet and its metadata. |
| 50 | type Packet struct { |
nothing calls this directly
no outgoing calls
no test coverage detected