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

# Functions

Bind binds a socket to a particular network interface and queue.
DefaultOpts provides recommended default options for initializing an AF_XDP socket.
New returns an initialized AF_XDP socket bound to a particular interface and queue.
NewFromSocket takes an AF_XDP socket, initializes it, and binds it to a particular interface and queue.

# Structs

The CompletionQueue is how the kernel tells a process which buffers have been transmitted and can be reused.
A ControlBlock contains all the control structures necessary to use an AF_XDP socket.
The FillQueue is how a process tells the kernel which buffers are available to be filled by incoming packets.
Opts configure an AF_XDP socket.
The RXQueue is how the kernel tells a process which buffers are full with incoming packets.
The TXQueue is how a process tells the kernel which buffers are available to be sent via the NIC.
UMEM is the shared memory area that the kernel and userspace put packets in.