route

package
v0.0.0-...-ef10d44 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDevAddr

func SetDevAddr(tunName string, prefix netip.Prefix) error

func SetRouteAddr

func SetRouteAddr(addr netip.Prefix, gateway net.IP) error

func Start

func Start(options Options) error

Types

type Options

type Options struct {
	DevName      string
	DevIP        netip.Prefix
	RouteAddress []netip.Prefix
}

Jump to

Keyboard shortcuts

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