Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDeviceNames ¶
ListDeviceNames returns the list of adapters available for sniffing on this computer. If the withDescription parameter is set to true, a human readable version of the adapter name is added. If the withIP parameter is set to true, IP address of the adapter is added.
Types ¶
type MainWorker ¶
type MainWorker struct {
// contains filtered or unexported fields
}
func (*MainWorker) OnHEPPacket ¶
func (mw *MainWorker) OnHEPPacket(data []byte)
func (*MainWorker) OnPacket ¶
func (mw *MainWorker) OnPacket(data []byte, ci *gopacket.CaptureInfo)
type SnifferSetup ¶
type SnifferSetup struct {
DataSource gopacket.PacketDataSource
// contains filtered or unexported fields
}
func (*SnifferSetup) Close ¶
func (sniffer *SnifferSetup) Close() error
func (*SnifferSetup) Datalink ¶
func (sniffer *SnifferSetup) Datalink() layers.LinkType
func (*SnifferSetup) IsAlive ¶
func (sniffer *SnifferSetup) IsAlive() bool
func (*SnifferSetup) Reopen ¶
func (sniffer *SnifferSetup) Reopen() error
func (*SnifferSetup) Run ¶
func (sniffer *SnifferSetup) Run() error
func (*SnifferSetup) Stop ¶
func (sniffer *SnifferSetup) Stop() error
Click to show internal directories.
Click to hide internal directories.