tun

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T struct {
	*water.Interface
	NetIf *net.Interface
	// contains filtered or unexported fields
}

T is the type of a tun device.

func New

func New() (s *T, err error)

New() creates a new tun device.

func (*T) ReadPacketData

func (s *T) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error)

ReadPacketData() fulfills the gopacket.PacketSource interface.

Jump to

Keyboard shortcuts

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