tuntap

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: Apache-2.0 Imports: 5 Imported by: 7

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(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