net

package
v0.0.0-...-c5683e2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2016 License: MIT Imports: 5 Imported by: 0

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

func DelIp

func DelIp(ip, iface string) error

func DeleteDefaultGateway

func DeleteDefaultGateway(route *netlink.Route) error

func GetDefaultGateway

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

func GetIpByInterface

func GetIpByInterface(iface string) (string, error)

func SetIpForwarding

func SetIpForwarding() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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