net

package
v0.0.0-...-22c38b1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2018 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultGateway

func AddDefaultGateway(ip string) error

func AddIp

func AddIp(ip, iface string) error

AddIp it receives a CIDR Address and add it to the given interface

func DelIp

func DelIp(ip, iface string) error

func DelVips

func DelVips(iface string) error

func DeleteDefaultGateway

func DeleteDefaultGateway(route *netlink.Route) error

func GetDefaultGateway

func GetDefaultGateway() (*netlink.Route, error)

func GetFusisVipsIps

func GetFusisVipsIps(iface string) ([]string, error)

func GetIpByInterface

func GetIpByInterface(iface string) (string, error)

func GetSysctl

func GetSysctl(name string) (string, error)

func GetVips

func GetVips(iface string) ([]netlink.Addr, error)

func SendGratuitousARPReply

func SendGratuitousARPReply(ip string, iface string) error

func SetIpForwarding

func SetIpForwarding() error

func SetLinkUp

func SetLinkUp(iface string) error

func SetSysctl

func SetSysctl(name string, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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