MCPcopy
hub / github.com/probelabs/goreplay / ReadPacketData

Method ReadPacketData

capture/af_packet_linux.go:52–54  ·  view source on GitHub ↗

ReadPacketData satisfies PacketDataSource interface

()

Source from the content-addressed store, hash-verified

50
51// ReadPacketData satisfies PacketDataSource interface
52func (h *afpacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) {
53 return h.TPacket.ReadPacketData()
54}
55
56// SetBPFFilter translates a BPF filter string into BPF RawInstruction and applies them.
57func (h *afpacketHandle) SetBPFFilter(filter string, snaplen int) (err error) {

Callers

nothing calls this directly

Calls 1

ReadPacketDataMethod · 0.65

Tested by

no test coverage detected