tundev

package
v0.0.0-...-ff2c174 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2021 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDevtmpfsFiles

func CreateDevtmpfsFiles(ctx context.Context, dev *devtmpfs.Accessor) error

CreateDevtmpfsFiles creates device special files in dev representing all devices implemented by this package.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL