Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouterRoute ¶
Types ¶
type Route ¶
type Route struct {
Action string `json:"action"`
Link string `json:"link"`
Gateway string `json:"gateway"`
OnLink string `json:"onlink"`
}
func (*Route) AddDefaultGateWay ¶
func (*Route) RemoveGateWay ¶
func (*Route) ReplaceDefaultGateWay ¶
type RouteInfo ¶
type RouteInfo struct {
LinkName string `json:"LinkName"`
LinkIndex int `json:"LinkIndex"`
ILinkIndex int `json:"ILinkIndex"`
Scope int `json:"Scope"`
Dst struct {
IP string `json:"IP"`
Mask int `json:"Mask"`
} `json:"Dst"`
Src string `json:"Src"`
Gw string `json:"Gw"`
MultiPath string `json:"MultiPath"`
Protocol int `json:"Protocol"`
Priority int `json:"Priority"`
Table int `json:"Table"`
Type int `json:"Type"`
Tos int `json:"Tos"`
Flags []string `json:"Flags"`
MPLSDst string `json:"MPLSDst"`
NewDst string `json:"NewDst"`
Encap string `json:"Encap"`
Mtu int `json:"MTU"`
AdvMSS int `json:"AdvMSS"`
Hoplimit int `json:"Hoplimit"`
}
func AcquireRoutes ¶
Click to show internal directories.
Click to hide internal directories.