package loopback
import "gvisor.dev/gvisor/pkg/tcpip/link/loopback"
Package loopback provides the implementation of loopback data-link layer endpoints. Such endpoints just turn outbound packets into inbound ones.
Loopback endpoints can be used in the networking stack by calling New() to create a new endpoint, and then passing it as an argument to Stack.CreateNIC().
Index ¶
Functions ¶
func New ¶
func New() stack.LinkEndpoint
New creates a new loopback endpoint. This link-layer endpoint just turns outbound packets into inbound packets.
Source Files ¶
loopback.go
- Version
- v0.0.0-20250815195609-e653176be184 (latest)
- Published
- Aug 15, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.