wireguardgolang.zx2c4.com/wireguard/tun/tuntest Index | Files

package tuntest

import "golang.zx2c4.com/wireguard/tun/tuntest"

Index

Constants

const DefaultMTU = 1420

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

Source Files

tuntest.go

Version
v0.0.0-20250505131008-436f7fdc1670 (latest)
Published
May 5, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
4 days ago

Tools for package owners.