ReadPacketData satisfies PacketDataSource interface
()
| 50 | |
| 51 | // ReadPacketData satisfies PacketDataSource interface |
| 52 | func (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. |
| 57 | func (h *afpacketHandle) SetBPFFilter(filter string, snaplen int) (err error) { |
nothing calls this directly
no test coverage detected