netstack: github.com/google/netstack/tcpip/link/tun Index | Files

package tun

import "github.com/google/netstack/tcpip/link/tun"

Package tun contains methods to open TAP and TUN devices.

Index

Package Files

tun_unsafe.go

func Open Uses

func Open(name string) (int, error)

Open opens the specified TUN device, sets it to non-blocking mode, and returns its file descriptor.

func OpenTAP Uses

func OpenTAP(name string) (int, error)

OpenTAP opens the specified TAP device, sets it to non-blocking mode, and returns its file descriptor.

Package tun imports 2 packages (graph) and is imported by 2 packages. Updated 2018-09-01. Refresh now. Tools for package owners.