tun

package
v0.0.0-...-632c06c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTun

func NewTun(tunname string) *water.Interface

Types

type TunToUDPLink struct {
	LocalTxToTun   chan interfaces.UDPPacket
	LocalRxFromTun chan interfaces.UDPPacket
	// contains filtered or unexported fields
}
func NewTunToUDPLink(TxToTun chan interfaces.UDPPacket,
	RxFromTun chan interfaces.UDPPacket,
	tunInterface water.Interface) (*TunToUDPLink, error)

func (*TunToUDPLink) Close

func (ttl *TunToUDPLink) Close() error
func (ttl *TunToUDPLink) InjectionLink()

func (*TunToUDPLink) Read

func (ttl *TunToUDPLink) Read(udpmsg []byte) (int, error)

func (*TunToUDPLink) Write

func (ttl *TunToUDPLink) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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