package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
LogPacket logs a packet to stdout.
New creates a new sniffer link-layer endpoint.
NewWithPrefix creates a new sniffer link-layer endpoint.
NewWithWriter creates a new sniffer link-layer endpoint.
# Constants
DirectionRecv indicates a received packet.
DirectionSend indicates a sent packet.
# Variables
LogPackets is a flag used to enable or disable packet logging via the log package.
LogPacketsToPCAP is a flag used to enable or disable logging packets to a pcap writer.
# Type aliases
A Direction indicates whether the packing is being sent or received.