tuntap

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tun = 0x1
	Tap = 0x2

	NoPi     = 0x1000
	OneQueue = 0x2000
	VnetHdr  = 0x4000
	TunExcl  = 0x8000
)

Variables

This section is empty.

Functions

func CreatePersistentIface

func CreatePersistentIface(nameTemplate string, kind uint16) (string, error)

func RemovePersistentIface

func RemovePersistentIface(name string, kind uint16) error

Types

type Interface

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

func Open

func Open(ifName string, kind uint16) (*Interface, error)

func (*Interface) Close

func (iface *Interface) Close() error

Jump to

Keyboard shortcuts

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