pkg/taptun

Name: taptun

Owner: pkg

Description: Control TUN/TAP virtual network interfaces.

Created: 2014-08-31 03:20:02.0

Updated: 2017-10-23 06:12:47.0

Pushed: 2016-04-24 13:19:34.0

Homepage: null

Size: 12

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

taptun

import "github.com/pkg/taptun"

Package taptun provides an interface to the user level network TAP / TUN device.

a href=“https://www.kernel.org/doc/Documentation/networking/tuntap.txt”>https://www.kernel.org/doc/Documentation/networking/tuntap.txt

type Tap
 Tap struct {
io.ReadWriteCloser
// contains filtered or unexported fields

Tap represents a TAP Virtual Ethernet network device.

func OpenTap
 OpenTap() (*Tap, error)

OpenTap creates a tapN interface and returns a *Tap device connected to the t pinterface.

func (*Tap) String
 (t *Tap) String() string
type Tun
 Tun struct {
io.ReadWriteCloser
// contains filtered or unexported fields

Tun represents a TUN Virtual Point-to-Point network device.

func OpenTun
 OpenTun() (*Tun, error)

OpenTun creates a tunN interface and returns a *Tun device connected to the tun interface.

func (*Tun) String
 (t *Tun) String() string

Generated by godoc2md


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.