tun

package
v2.0.0-...-f08b0b4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tun provides TUN which implemented device.Device interface.

Index

Constants

View Source
const Driver = "tun"

Variables

This section is empty.

Functions

func Open

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

Types

type TUN

type TUN struct {
	stack.LinkEndpoint
	// contains filtered or unexported fields
}

func (*TUN) Close

func (t *TUN) Close() error

func (*TUN) Name

func (t *TUN) Name() string

func (*TUN) Type

func (t *TUN) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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