Netstack
IPv4 and IPv6 userland network stack
netstack is a userspace TCP/IP networking stack written in Go that implements core IPv4/IPv6 protocols with a focus on correctness, isolation, and testability. By running entirely in user space, it avoids kernel dependencies and can be embedded into sandboxes, virtualized environments, or custom appliances. Its architecture models NICs, link endpoints, route tables, and protocol engines as composable interfaces, enabling precise control over packet flow and easy mocking in tests. The stack implements TCP, UDP, ICMP, neighbor discovery, and common socket behaviors, including options like MSS/MTU handling and congestion control hooks. ...