MCPcopy Create free account
hub / github.com/danderson/netboot / Reader

Struct Reader

pcap/reader.go:38–47  ·  view source on GitHub ↗

Reader extracts packets from a pcap file.

Source from the content-addressed store, hash-verified

36
37// Reader extracts packets from a pcap file.
38type 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.
50type Packet struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected