tun

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2018 License: MIT Imports: 8 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