gvisorgvisor.dev/gvisor/pkg/tcpip/link/loopback Index | Files

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-20250702012632-902e88ff9314 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 day ago

Tools for package owners.