Discover Packages
gvisor.dev/gvisor
pkg
sentry
socket
netlink
port
package
Version:
v0.0.0-...-6b2bcc4
Opens a new window with list of versions in this module.
Published: Mar 31, 2025
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types type Manager New() (m) Allocate(protocol, hint) (m) Release(protocol, port)
Documentation
¶
Package port provides port ID allocation for netlink sockets.
A netlink port is any int32 value. Positive ports are typically equivalent
to the PID of the binding process. If that port is unavailable, negative
ports are searched to find a free port that will not conflict with other
PIDS.
Manager allocates netlink port IDs.
+stateify savable
New creates a new Manager.
Allocate reserves a new port ID for protocol. hint will be taken if
available.
Release frees the specified port for protocol.
Preconditions: port is already allocated.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.