netsetup

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyIP

func CopyIP(i1 net.IP) (i2 net.IP)

CopyIP copies an IP and returns the copy.

func Init

func Init(t *tun.T, tunaddr string) error

func NextIP

func NextIP(i1 net.IP) (i2 net.IP)

NextIP returns a new IP from the passed one with the last octet incremented by 1. Normally, this should be its /31 "neighbor" if the original IP is the lowest /31 address.

Types

type Routes

type Routes interface{ Down() error }

route table storage to keep track of bypass routes

func RoutesUp

func RoutesUp(ips ...net.IP) (Routes, error)

Jump to

Keyboard shortcuts

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