sniffer

package
v0.0.0-...-1848e1e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BridgeAndSniff

func BridgeAndSniff(iface1, iface2 string)

func SniffP

func SniffP(iFace, filter string)

Types

type Sniffer

type Sniffer struct {
	// contains filtered or unexported fields
}

func NewSniffer

func NewSniffer(dev string, filter string, onPacketReceived ...func(packet gopacket.Packet)) (*Sniffer, error)

func (*Sniffer) GetPackets

func (s *Sniffer) GetPackets() []gopacket.Packet

func (*Sniffer) Start

func (s *Sniffer) Start() *gopacket.PacketSource

func (*Sniffer) Stop

func (s *Sniffer) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL