tun

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tun opens and manages a Linux TUN network interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TUN

type TUN interface {
	io.ReadWriteCloser

	Interface() string
}

TUN is a TUN network interface that can be read from and written to as a stream of raw IP frames.

func Open

func Open(interfaceName string, persist bool) (TUN, error)

Jump to

Keyboard shortcuts

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