tun

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 7 Imported by: 0

README

Files in this directory are copied from https://github.com/yinghuocho/gotun2socks, with slightly modifies.

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewTunDev

func NewTunDev(fd uintptr, name string, addr string, gw string) io.ReadWriteCloser

func OpenTunDevice

func OpenTunDevice(name, addr, gw, mask string, dns []string) (io.ReadWriteCloser, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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