package
0.0.0-20180524224622-583358ac5197
Repository: https://github.com/costinm/netstack.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package buffer provides the implementation of a buffer view.
Package checker provides helper functions to check networking packets for validity.
Package header provides the implementation of the encoding and decoding of network protocol headers.
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
Package seqnum defines the types and methods for TCP sequence numbers such that they fit in 32-bit words and work properly when overflows occur.
Package stack provides the glue between networking protocols and the consumers of the networking stack.
No description provided by the author

# Functions

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

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.
ProtocolAddress is an address and the network protocol it is associated with.
Route is a row in the routing table.
Stats holds statistics about the networking stack.
StdClock implements Clock with the time package.
Subnet is a subnet defined by its address and mask.
TCPInfoOption is used by GetSockOpt to expose TCP statistics.
WriteOptions contains options for Endpoint.Write.

# Interfaces

A Clock provides the current time.
Endpoint is the interface implemented by transport protocols (e.g., tcp, udp) that exposes functionality like read, write, connect, etc.
Payload provides an interface around data that is being sent to an endpoint.

# Type aliases

Address is a byte slice cast as a string that represents the address of a network node.
AddressMask is a bitmask for an address.
LinkAddress is a byte slice cast as a string that represents a link address.
LinkEndpointID represents a data link layer endpoint.
NetworkProtocolNumber is the number of a network protocol.
NICID is a number that uniquely identifies a NIC.
NoDelayOption is used by SetSockOpt/GetSockOpt to specify if data should be sent out immediately by the transport protocol.
PasscredOption is used by SetSockOpt/GetSockOpt to specify whether SCM_CREDENTIALS socket control messages are enabled.
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.
ReuseAddressOption is used by SetSockOpt/GetSockOpt to specify whether Bind() should allow reuse of local 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.
TimestampOption is used by SetSockOpt/GetSockOpt to specify whether SO_TIMESTAMP socket control messages are enabled.
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.