tun

package
v0.0.0-...-f3a3a28 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(name string, mtu uint32) (_ device.Device, err error)

Types

type TUN

type TUN struct {
	*iobased.Endpoint
	// contains filtered or unexported fields
}

func (*TUN) Close

func (t *TUN) Close() error

func (*TUN) Name

func (t *TUN) Name() string

func (*TUN) Read

func (t *TUN) Read(packet []byte) (int, error)

func (*TUN) Write

func (t *TUN) Write(packet []byte) (int, error)

Jump to

Keyboard shortcuts

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