package
0.0.0-20240428053021-e691de28565f
Repository: https://github.com/sagernet/gvisor.git
Documentation: pkg.go.dev
# Functions
New creates a new fd-based endpoint.
NewInjectable creates a new fd-based InjectableEndpoint.
# Constants
BatchSize is the number of packets to write in each syscall.
MaxMsgsPerRecv is the maximum number of packets we want to retrieve in a single RecvMMsg call.
PacketMMap enables use of PACKET_RX_RING to receive packets from the NIC.
Readv is the default dispatch mode and is the least performant of the dispatch options but the one that is supported by all underlying FD types.
RecvMMsg enables use of recvmmsg() syscall instead of readv() to read inbound packets.
# Variables
BufConfig defines the shape of the buffer used to read packets from the NIC.
# Structs
InjectableEndpoint is an injectable fd-based endpoint.
Options specify the details about the fd-based endpoint to be created.
# Type aliases
PacketDispatchMode are the various supported methods of receiving and dispatching packets from the underlying FD.