package tundev

import "gvisor.dev/gvisor/pkg/sentry/devices/tundev"

Package tundev implements the /dev/net/tun device.

Index

Functions

func IsNetTunSupported

func IsNetTunSupported(s inet.Stack) bool

IsNetTunSupported returns whether /dev/net/tun device is supported for s.

func Register

func Register(vfsObj *vfs.VirtualFilesystem) error

Register registers all devices implemented by this package in vfsObj.

Source Files

tundev.go

Version
v0.0.0-20250702182429-85e76111eb28 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Imports
17 packages
Last checked
1 hour ago

Tools for package owners.