adapter

package
v0.0.0-...-4728dbd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

build +linux

Index

Constants

View Source
const (
	IFF_TUN   = 0x0001
	IFF_TAP   = 0x0002
	IFF_NO_PI = 0x1000
)

Variables

View Source
var (
	ErrInvalidMTU = errors.New("adapter: invalid mtu")
)

Functions

This section is empty.

Types

type Instance

type Instance interface {
	Close() error
	GetName() string
	ReceiveChannel() <-chan []byte
	TransmitChannel() chan<- []byte
	GetMTU() int
	GetMACAddress() *core.MacAddr
}

func NewTAP

func NewTAP(name string, mtu, queueSize int) (Instance, error)

Jump to

Keyboard shortcuts

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