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-20250515200445-d30c58e5b8a4 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
9 hours ago

Tools for package owners.