Documentation ¶
Index ¶
- func ListDeviceNames(withDescription bool, withIP bool) ([]string, error)
- type MainWorker
- type SnifferSetup
- func (sniffer *SnifferSetup) Close() error
- func (sniffer *SnifferSetup) Datalink() layers.LinkType
- func (sniffer *SnifferSetup) IsAlive() bool
- func (sniffer *SnifferSetup) Reopen() error
- func (sniffer *SnifferSetup) Run() error
- func (sniffer *SnifferSetup) SendExitPacket() error
- func (sniffer *SnifferSetup) SendPing() error
- func (sniffer *SnifferSetup) Stop() error
- type Worker
- type WorkerFactory
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)
func (*MainWorker) SendExitHEPPacket ¶ added in v1.66.4
func (mw *MainWorker) SendExitHEPPacket()
func (*MainWorker) SendPingHEPPacket ¶ added in v1.65.3
func (mw *MainWorker) SendPingHEPPacket()
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) SendExitPacket ¶ added in v1.66.4
func (sniffer *SnifferSetup) SendExitPacket() error
func (*SnifferSetup) SendPing ¶ added in v1.65.3
func (sniffer *SnifferSetup) SendPing() error
func (*SnifferSetup) Stop ¶
func (sniffer *SnifferSetup) Stop() error
Click to show internal directories.
Click to hide internal directories.