tun

package
v0.0.0-...-07164a9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TUN

type TUN struct {
	// contains filtered or unexported fields
}

func NewTUN

func NewTUN(tunName string, mtu int, localAddr string, remoteAddr string) (*TUN, error)

func (*TUN) Name

func (t *TUN) Name() string

func (*TUN) Read

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

func (*TUN) Write

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

Jump to

Keyboard shortcuts

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