tun

package
v0.0.0-...-f11e08a Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(impl TUNImpl)

Types

type TUN

type TUN interface {
	io.ReadWriteCloser
	SetIPAddresses(addresses []netip.Prefix) error
	Sys() any // returns the underlying system object
}

func Open

func Open(name string) (TUN, error)

type TUNImpl

type TUNImpl interface {
	Open(name string) (TUN, error)
	Name() string
}

func List

func List() []TUNImpl

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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