netutil

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogNetworkStats = defaultLogNetworkStats

LogNetworkStats logs network information to the Trace log level.

Functions

func AddDefaultRoute

func AddDefaultRoute(iface string) error

AddDefaultRoute adds default VPN tunnel route.

func AssignIP

func AssignIP(iface string, subnet net.IPNet) error

AssignIP assigns subnet to given interface.

func FirstIP

func FirstIP(subnet net.IPNet) net.IP

FirstIP returns a first IP from the subnet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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