Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddrInfo ¶
type AddrInfo struct { Family string `json:"family"` Local string `json:"local"` PrefixLen int `json:"prefixlen"` Broadcast string `json:"broadcast,omitempty"` Scope string `json:"scope"` Label string `json:"label,omitempty"` ValidLifeTime int64 `json:"valid_life_time"` PreferredLifeTime int64 `json:"preferred_life_time"` NoDAD bool `json:"nodad,omitempty"` }
type Link ¶
type Link struct { IfIndex int `json:"ifindex"` LinkIndex int `json:"link_index"` IfName string `json:"ifname"` Flags []string `json:"flags"` Mtu int `json:"mtu"` Qdisc string `json:"qdisc"` Master string `json:"master"` OperState string `json:"operstate"` Group string `json:"group"` LinkType string `json:"link_type"` Address string `json:"address"` Broadcast string `json:"broadcast"` LinkNetnsID int `json:"link_netnsid"` Promiscuity int `json:"promiscuity"` MinMtu int `json:"min_mtu"` MaxMtu int `json:"max_mtu"` LinkInfo LinkInfo `json:"linkinfo"` NumTxQueues int `json:"num_tx_queues"` NumRxQueues int `json:"num_rx_queues"` GsoMaxSize int `json:"gso_max_size"` GsoMaxSegs int `json:"gso_max_segs"` AddrInfo []AddrInfo `json:"addr_info"` }
func (*Link) NonLinkLocalAddresses ¶
type Route ¶
type Route struct { Type string `json:"type"` Dst string `json:"dst"` Gateway string `json:"gateway,omitempty"` Dev string `json:"dev"` Protocol string `json:"protocol"` Scope string `json:"scope"` Metric int `json:"metric"` Flags []interface{} `json:"flags"` PrefSrc string `json:"prefsrc,omitempty"` Pref string `json:"pref"` }
Click to show internal directories.
Click to hide internal directories.