tun

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAddresses

func ParseAddresses(localAddr, netMask, nextHop string) (*net.IPNet, *net.IPNet, error)

Types

type Config

type Config struct {
	Name      string
	LocalAddr *net.IPNet
	Gateway   *net.IPNet
	Mtu       int
}

func New

func New() (Config, error)

Jump to

Keyboard shortcuts

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