tuntest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 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