package
0.0.0-20240428053021-e691de28565f
Repository: https://github.com/sagernet/gvisor.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.