linker

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInterface

func CheckInterface(iface string) (string, error)

func CreateInterface

func CreateInterface(iface string) error

func CreateTun

func CreateTun(iface string) (string, error)

func DelInterface

func DelInterface(iface string) (bool, error)

func InterfaceUp

func InterfaceUp(iface string) error

func SetIpAddr

func SetIpAddr(iface string, ip string) error
func SetIpAddr_netlink(iface string, cidrIP string) error

ip=10.0.0.1/24

func SetIpAddr_tenus

func SetIpAddr_tenus(iface string, cidrIP string) error

ip=10.0.0.1/24

func SetIpAddr_tun

func SetIpAddr_tun(tunDevice tun.Device, conf *wg_core.WgInterface) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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