package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
AppendIovecFromBytes returns append(iovs, IovecFromBytes(bs)).
BlockingPoll on amd64/arm64 makes the ppoll() syscall while calling the version of entersyscall that relinquishes the P so that other Gs can run.
BlockingPollUntilStopped polls for events on fd or until a stop is signalled on the event fd efd.
BlockingRead reads from a file descriptor that is set up as non-blocking.
BlockingReadUntranslated reads from a file descriptor that is set up as non-blocking.
BlockingReadvUntilStopped reads from a file descriptor that is set up as non-blocking and stores the data in a list of iovecs buffers.
BlockingRecvMMsgUntilStopped reads from a file descriptor that is set up as non-blocking and stores the received messages in a slice of MMsgHdr structures.
GetMTU determines the MTU of a network interface device.
IovecFromBytes returns a unix.Iovec representing bs.
NonBlockingSendMMsg sends multiple messages on a socket.
NonBlockingWrite writes the given buffer to a file descriptor.
NonBlockingWriteIovec writes iovec to a file descriptor in a single unix.
TranslateErrno translate an errno from the syscall package into a tcpip.Error.
# Constants
MaxIovs is UIO_MAXIOV, the maximum number of iovecs that may be passed to a host system call in a single array.
SizeofIovec is the size of a unix.Iovec in bytes.
SizeofMMsgHdr is the size of a MMsgHdr in bytes.