Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TPacket ¶
type TPacket struct {
// contains filtered or unexported fields
}
func NewTPacket ¶
func (*TPacket) Close ¶
func (h *TPacket) Close()
Close cleans up the TPacket. It should not be used after the Close call.
func (*TPacket) ReadPacketData ¶
func (h *TPacket) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error)
ReadPacketData reads the next packet, copies it into a new buffer, and returns that buffer. Since the buffer is allocated by ReadPacketData, it is safe for long-term use. This implements gopacket.PacketDataSource.
func (*TPacket) SetBPFFilter ¶
Click to show internal directories.
Click to hide internal directories.