Documentation ¶
Overview ¶
Package sniff provides functionality to interact with networking interfaces.
Functionality which ties directly to the
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectInterfaces ¶
DetectInterfaces provides list of network interface handles. Returned names can be bound to for intercepting traffic.
func InterfaceListener ¶
func InterfaceListener(ctx context.Context, stream chan HTTPXPacket, iface, bpfFilter string, snaplen int, logger *log.Logger)
InterfaceListener establishes a libpcap listener and BPF matching for capturing and reconstructing packets.
Types ¶
Click to show internal directories.
Click to hide internal directories.