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-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
4 hours ago

Tools for package owners.