adapter

package
v0.0.0-...-0172ae5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StandardBufferSize int = 1600
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TAPInterface

type TAPInterface struct {
	Name string
	MAC  data.MACAddr

	BufferSize int

	RecvPacketQueue chan []byte
	SendPacketQueue chan []byte
	// contains filtered or unexported fields
}

func Create

func Create() (*TAPInterface, error)

func (*TAPInterface) Close

func (t *TAPInterface) Close()

func (*TAPInterface) Configure

func (t *TAPInterface) Configure(ipNet net.IPNet, gateway net.IP) error

func (*TAPInterface) Stop

func (t *TAPInterface) Stop()

Jump to

Keyboard shortcuts

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