Versions in this module Expand all Collapse all v0 v0.5.0 Mar 31, 2015 Changes in this version + type AfpacketHandle struct — darwin/amd64, js/wasm, windows/amd64 + func NewAfpacketHandle(device string, snaplen int, block_size int, num_blocks int, ...) (*AfpacketHandle, error) + func (h *AfpacketHandle) Close() + func (h *AfpacketHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) + func (h *AfpacketHandle) SetBPFFilter(expr string) (_ error) + type AfpacketHandle struct — linux/amd64 + TPacket *afpacket.TPacket + type PfringHandle struct + func NewPfringHandle(device string, snaplen int, promisc bool) (*PfringHandle, error) + func (h *PfringHandle) Close() + func (h *PfringHandle) Enable() (_ error) + func (h *PfringHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error) + func (h *PfringHandle) SetBPFFilter(expr string) (_ error) + type SnifferSetup struct + DataSource gopacket.PacketDataSource + Decoder *tcp.DecoderStruct + func (sniffer *SnifferSetup) Close() error + func (sniffer *SnifferSetup) Datalink() layers.LinkType + func (sniffer *SnifferSetup) Init(test_mode bool, events chan common.MapStr) error + func (sniffer *SnifferSetup) IsAlive() bool + func (sniffer *SnifferSetup) Reopen() error + func (sniffer *SnifferSetup) Run() error + func (sniffer *SnifferSetup) Stop() error