package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
NewNamespace creates a new network namespace from the root.
NewRootNamespace creates the root network namespace, with creator allowing new network namespaces to be created.
NewTestStack returns a TestStack with no network interfaces.
StackFromContext returns the network stack associated with ctx.
# Constants
CtxStack is a Context.Value key for a network stack.
Loss recovery constants from include/net/tcp.h which are used to set /proc/sys/net/ipv4/tcp_recovery.
Loss recovery constants from include/net/tcp.h which are used to set /proc/sys/net/ipv4/tcp_recovery.
Loss recovery constants from include/net/tcp.h which are used to set /proc/sys/net/ipv4/tcp_recovery.
# Structs
AbstractSocketNamespace is used to implement the Linux abstract socket functionality.
Interface contains information about a network interface.
InterfaceAddr contains information about a network interface address.
Namespace represents a network namespace.
Route contains information about a network route.
TCPBufferSize contains settings controlling TCP buffer sizing.
TestStack is a dummy implementation of Stack for tests.
# Interfaces
NetworkStackCreator allows new instances of a network stack to be created.
Stack represents a TCP/IP stack.
# Type aliases
StatDev describes one line of /proc/net/dev, i.e., stats for one network interface.
StatSNMPICMP describes Icmp line of /proc/net/snmp.
StatSNMPICMPMSG describes IcmpMsg line of /proc/net/snmp.
StatSNMPIP describes Ip line of /proc/net/snmp.
StatSNMPTCP describes Tcp line of /proc/net/snmp.
StatSNMPUDP describes Udp line of /proc/net/snmp.
StatSNMPUDPLite describes UdpLite line of /proc/net/snmp.
TCPLossRecovery indicates TCP loss detection and recovery methods to use.