tun

package
v2.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: GPL-3.0 Imports: 7 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

Jump to

Keyboard shortcuts

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