opentun

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 8 Imported by: 0

README

tun

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InterfaceByName

func InterfaceByName(ifname string) (*net.Interface, error)

Types

type TunApi

type TunApi interface {
	Write(p []byte) error
	Read(p []byte) (n int, err error)
	Close() error
}

func OpenTun

func OpenTun(ifname string, ip net.IP, ipnet net.IPNet) (TunApi, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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