routes

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUp

func CleanUp(defaultInterface string, gwAddr *net.IPNet) error

CleanUp - calls for client to clean routes of peers and servers

func HasGatewayChanged

func HasGatewayChanged() bool

HasGatewayChanged - informs called if the gateway address has changed

func RemoveDefaultGW

func RemoveDefaultGW(gwAddress *net.IPNet) error

RemoveDefaultGW - removes the default gateway

func RemovePeerRoutes

func RemovePeerRoutes(defaultInterface string) error

RemovePeerRoutes - removes the peer routes set by a client

func RemoveServerRoutes

func RemoveServerRoutes(defaultInterface string) error

RemoveServerRoutes - removes the server routes set by a client

func SetDefaultGateway

func SetDefaultGateway(gwAddress *net.IPNet) error

SetDefaultGateway - sets netmaker as the default gateway

func SetNetmakerPeerEndpointRoutes

func SetNetmakerPeerEndpointRoutes(defaultInterface string) error

SetNetmakerPeerEndpointRoutes - set peer endpoint routes through original default interface

func SetNetmakerServerRoutes

func SetNetmakerServerRoutes(defaultInterface string, server *config.Server) error

SetNetmakerServerRoutes - sets necessary routes to servers through default gateway & peer endpoints

Types

This section is empty.

Jump to

Keyboard shortcuts

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