package
0.0.0-20240428053021-e691de28565f
Repository: https://github.com/sagernet/gvisor.git
Documentation: pkg.go.dev

# Functions

Open opens the specified TUN device, sets it to non-blocking mode, and returns its file descriptor.
OpenTAP opens the specified TAP device, sets it to non-blocking mode, and returns its file descriptor.

# Constants

PacketInfoHeaderSize is the size of the packet information header.

# Structs

Device is an opened /dev/net/tun device.
Flags set properties of a Device +stateify savable.
PacketInfoFields contains fields sent through the wire if IFF_NO_PI flag is not set.

# Type aliases

PacketInfoHeader is the wire representation of the packet information sent if IFF_NO_PI flag is not set.