tuntest

package
v0.0.0-...-86c2637 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMTU = 1420

Variables

This section is empty.

Functions

func Ping

func Ping(dst, src netip.Addr) []byte

Types

type ChannelTUN

type ChannelTUN struct {
	Inbound  chan []byte // incoming packets, closed on TUN close
	Outbound chan []byte // outbound packets, blocks forever on TUN close
	// contains filtered or unexported fields
}

func NewChannelTUN

func NewChannelTUN() *ChannelTUN

func (*ChannelTUN) TUN

func (c *ChannelTUN) TUN() tun.Device

Jump to

Keyboard shortcuts

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