Documentation ¶
Index ¶
- Constants
- func AddressAddress(ifIndex int, address string) error
- func AddressRemove(ifName string, address string) error
- func AddressSet(name string, address string) error
- func ConfigureByIndex(ifIndex int) error
- func ConfigureSupplementaryLinks(s string) error
- func GetDefaultIpv4Gateway() (string, error)
- func GetDefaultIpv4GatewayByLink(ifIndex int) (string, error)
- func GetIPv4Addresses(ifName string) (map[string]bool, error)
- func GetIpv4Gateway(ifIndex int) (string, error)
- func GetIpv4GatewayByLink(ifIndex int) (string, error)
- func GetLinkMacByIndex(links *Links, ifIndex int) (string, error)
- func LinkSetMtu(ifIndex int, mtu int) error
- func LinkSetOperStateUp(ifIndex int) error
- func RouteAdd(route *Route) error
- func RouteRemove(route *Route) error
- func RoutingPolicyRuleAdd(rule *RoutingPolicyRule) error
- func RoutingPolicyRuleRemove(rule *RoutingPolicyRule) error
- type Link
- type Links
- type Route
- type RoutingPolicyRule
Constants ¶
View Source
const (
ROUTE_TABLE_BASE = 9999
)
Variables ¶
This section is empty.
Functions ¶
func AddressAddress ¶
func AddressRemove ¶
func AddressSet ¶
func ConfigureByIndex ¶
func ConfigureSupplementaryLinks ¶
When both links in same subnet
func GetDefaultIpv4Gateway ¶
func GetIpv4Gateway ¶
func GetIpv4GatewayByLink ¶
func LinkSetMtu ¶
func LinkSetOperStateUp ¶
func RouteRemove ¶
func RoutingPolicyRuleAdd ¶
func RoutingPolicyRuleAdd(rule *RoutingPolicyRule) error
func RoutingPolicyRuleRemove ¶
func RoutingPolicyRuleRemove(rule *RoutingPolicyRule) error
Types ¶
type Links ¶
func AcquireLinks ¶
type RoutingPolicyRule ¶
Click to show internal directories.
Click to hide internal directories.