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-20250730072058-14c22da65f04 (latest)
Published
Jul 30, 2025
Platform
linux/amd64
Imports
17 packages
Last checked
1 day ago

Tools for package owners.