package
1.0.0
Repository: https://github.com/naphaso/netstack.git
Documentation: pkg.go.dev

# Functions

New allocates and initializes a test context containing a new stack and a link-layer endpoint.

# Constants

StackAddr is the IPv4 address assigned to the stack.
StackPort is used as the listening port in tests for passive connects.
StackV4MappedAddr is StackAddr as a mapped v6 address.
StackV6Addr is the IPv6 address assigned to the stack.
TestAddr is the source address for packets sent to the stack via the link layer endpoint.
TestPort is the TCP port used for packets sent to the stack via the link layer endpoint.
TestV4MappedAddr is TestAddr as a mapped v6 address.
TestV6Addr is the source address for packets sent to the stack via the link layer endpoint.
V4MappedWildcardAddr is the mapped v6 representation of 0.0.0.0.

# Structs

Context provides an initialized Network stack and a link layer endpoint for use in TCP tests.
Headers is used to represent the TCP header fields when building a new packet.
RawEndpoint is just a small wrapper around a TCP endpoint's state to make sending data and ACK packets easy while being able to manipulate the sequence numbers and timestamp values as needed.