package
0.0.0-20211107161233-8cc07ee8640f
Repository: https://github.com/sebastianvoit/netstack.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
Package checker provides helper functions to check networking packets for validity.
No description provided by the author
No description provided by the author
No description provided by the author
Package ports provides PortManager that manages allocating, reserving and releasing ports.
No description provided by the author
No description provided by the author
# Functions
AddDanglingEndpoint adds a dangling endpoint.
DeleteDanglingEndpoint removes a dangling endpoint.
GetDanglingEndpoints returns all dangling endpoints.
NewSubnet creates a new Subnet, checking that the address and mask are the same length.
ParseMACAddress parses an IEEE 802 address.
# Constants
Values of the flags that can be passed to the Shutdown() method.
Values of the flags that can be passed to the Shutdown() method.
# Variables
AsyncLoading is the global barrier for asynchronous endpoint loading activities.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
Errors that can be returned by the network stack.
# Structs
A ControlMessages contains socket control messages for IP sockets.
Error represents an error in the netstack error space.
ErrorOption is used in GetSockOpt to specify that the last error reported by the endpoint should be cleared and returned.
ErrSaveRejection indicates a failed save due to unsupported networking state.
FullAddress represents a full transport node address, as required by the Connect() and Bind() methods.
ICMPStats collects ICMP-specific stats (both v4 and v6).
ICMPv4PacketStats enumerates counts for all ICMPv4 packet types.
ICMPv4ReceivedPacketStats collects inbound ICMPv4-specific stats.
ICMPv4SentPacketStats collects outbound ICMPv4-specific stats.
ICMPv6PacketStats enumerates counts for all ICMPv6 packet types.
ICMPv6ReceivedPacketStats collects inbound ICMPv6-specific stats.
ICMPv6SentPacketStats collects outbound ICMPv6-specific stats.
IPStats collects IP-specific stats (both v4 and v6).
MembershipOption is used by SetSockOpt/GetSockOpt as an argument to AddMembershipOption and RemoveMembershipOption.
MulticastInterfaceOption is used by SetSockOpt/GetSockOpt to specify a default interface for multicast.
ProtocolAddress is an address and the network protocol it is associated with.
Route is a row in the routing table.
A StatCounter keeps track of a statistic.
Stats holds statistics about the networking stack.
Subnet is a subnet defined by its address and mask.
TCPInfoOption is used by GetSockOpt to expose TCP statistics.
TCPStats collects TCP-specific stats.
UDPStats collects UDP-specific stats.
WriteOptions contains options for Endpoint.Write.
# Type aliases
AddMembershipOption is used by SetSockOpt/GetSockOpt to join a multicast group identified by the given multicast address, on the interface matching the given interface address.
Address is a byte slice cast as a string that represents the address of a network node.
AddressMask is a bitmask for an address.
BroadcastOption is used by SetSockOpt/GetSockOpt to specify whether datagram sockets are allowed to send packets to a broadcast address.
CorkOption is used by SetSockOpt/GetSockOpt to specify if data should be held until segments are full by the TCP transport protocol.
DelayOption is used by SetSockOpt/GetSockOpt to specify if data should be sent out immediately by the transport protocol.
KeepaliveCountOption is used by SetSockOpt/GetSockOpt to specify the number of un-ACKed TCP keepalives that will be sent before the connection is closed.
KeepaliveEnabledOption is used by SetSockOpt/GetSockOpt to specify whether TCP keepalive is enabled for this socket.
KeepaliveIdleOption is used by SetSockOpt/GetSockOpt to specify the time a connection must remain idle before the first TCP keepalive packet is sent.
KeepaliveIntervalOption is used by SetSockOpt/GetSockOpt to specify the interval between sending TCP keepalive packets.
LinkAddress is a byte slice cast as a string that represents a link address.
LinkEndpointID represents a data link layer endpoint.
MulticastLoopOption is used by SetSockOpt/GetSockOpt to specify whether multicast packets sent over a non-loopback interface will be looped back.
MulticastTTLOption is used by SetSockOpt/GetSockOpt to control the default TTL value for multicast messages.
NetworkProtocolNumber is the number of a network protocol.
NICID is a number that uniquely identifies a NIC.
OutOfBandInlineOption is used by SetSockOpt/GetSockOpt to specify whether TCP out-of-band data is delivered along with the normal in-band data.
PasscredOption is used by SetSockOpt/GetSockOpt to specify whether SCM_CREDENTIALS socket control messages are enabled.
QuickAckOption is stubbed out in SetSockOpt/GetSockOpt.
ReceiveBufferSizeOption is used by SetSockOpt/GetSockOpt to specify the receive buffer size option.
ReceiveQueueSizeOption is used in GetSockOpt to specify that the number of unread bytes in the input buffer should be returned.
RemoveMembershipOption is used by SetSockOpt/GetSockOpt to leave a multicast group identified by the given multicast address, on the interface matching the given interface address.
ReuseAddressOption is used by SetSockOpt/GetSockOpt to specify whether Bind() should allow reuse of local address.
ReusePortOption is used by SetSockOpt/GetSockOpt to permit multiple sockets to be bound to an identical socket address.
SendBufferSizeOption is used by SetSockOpt/GetSockOpt to specify the send buffer size option.
SendQueueSizeOption is used in GetSockOpt to specify that the number of unread bytes in the output buffer should be returned.
ShutdownFlags represents flags that can be passed to the Shutdown() method of the Endpoint interface.
SlicePayload implements Payload on top of slices for convenience.
TransportProtocolNumber is the number of a transport protocol.
V6OnlyOption is used by SetSockOpt/GetSockOpt to specify whether an IPv6 socket is to be restricted to sending and receiving IPv6 packets only.