tuntest

package
v0.0.0-...-0de9ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 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 net.IP) []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
}

TODO(crawshaw): find a reusable home for this. package devicetest?

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