package tuntap

import "github.com/coreos/rkt/networking/tuntap"

Index

Constants

const (
	Tun = 0x1
	Tap = 0x2

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

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

Source Files

tuntap.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
7 packages
Last checked
3 days ago

Tools for package owners.