Documentation ¶
Index ¶
Constants ¶
View Source
const ( SIOCETHTOOL = 0x8946 CMD_GSET = 1 CMD_GLINKSETTINGS = 0x4c GSET_SIZE = 44 GLINKSETTINGS_SIZE = 48 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HardwareAddr ¶
type HardwareAddr net.HardwareAddr
func (HardwareAddr) MarshalText ¶
func (h HardwareAddr) MarshalText() ([]byte, error)
func (HardwareAddr) String ¶
func (h HardwareAddr) String() string
func (*HardwareAddr) UnmarshalText ¶
func (h *HardwareAddr) UnmarshalText(buf []byte) error
UnmarshalText unmarshalls the text represenatation of a HardwareAddr. Any format accepted by net.ParseMAC will be accepted.
type IPNet ¶
func (*IPNet) MarshalText ¶
func (*IPNet) UnmarshalText ¶
UnmarshalText handles unmarshalling the string represenation of an IP address (v4 and v6, in CIDR form and as a raw address) into an IP.
type Interface ¶
type Interface struct { Name string StableName string OrdinalName string Path string Model string Driver string Vendor string MTU int Flags Flags HardwareAddr HardwareAddr Addrs []*IPNet Supported []ModeBit Advertised []ModeBit PeerAdvertised []ModeBit Speed uint32 Duplex bool Autonegotiation bool Sys struct { IsPhysical bool BusAddress string IfIndex int64 IfLink int64 OperState string Type string IsBridge bool Bridge struct { Members []string Master string } IsVlan bool VLAN struct { Id int64 Master string } IsBond bool Bond struct { Mode string Members []string Master string LinkState string } } }
Click to show internal directories.
Click to hide internal directories.