Versions in this module Expand all Collapse all v1 v1.1.0 Feb 2, 2016 Changes in this version + func ListDeviceNames(withDescription bool) ([]string, error) + 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 *decoder.DecoderStruct + func (sniffer *SnifferSetup) Close() error + func (sniffer *SnifferSetup) Datalink() layers.LinkType + func (sniffer *SnifferSetup) Init(test_mode bool, icmp4 icmp.ICMPv4Processor, icmp6 icmp.ICMPv6Processor, ...) error + func (sniffer *SnifferSetup) IsAlive() bool + func (sniffer *SnifferSetup) Reopen() error + func (sniffer *SnifferSetup) Run() error + func (sniffer *SnifferSetup) Stop() error v1.0.1 Dec 17, 2015