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

Struct Packet

pcap/reader.go:50–54  ·  view source on GitHub ↗

Packet is one raw packet and its metadata.

Source from the content-addressed store, hash-verified

48
49// Packet is one raw packet and its metadata.
50type Packet struct {
51 Timestamp time.Time
52 Length int
53 Bytes []byte
54}
55
56// NewReader returns a new Reader that decodes pcap data from r.
57func NewReader(r io.Reader) (*Reader, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected