Documentation
¶
Index ¶
Constants ¶
View Source
const ( SIOCETHTOOL = 0x8946 ETHTOOL_GPERMADDR = 0x20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MacLookup ¶
MacLookup : lookup network interface by its (permanent) MAC address. Information about network interfaces is cached. Call RefreshCache() to flush and reload the cache content.
func (*MacLookup) GetInterfaceByIndex ¶
GetInterfaceByIndex : get network interface by its index (Linux kernel interface handle).
func (*MacLookup) GetInterfaceByMAC ¶
GetInterfaceByMAC : lookup network interface by its MAC address.
func (*MacLookup) RefreshCache ¶
func (m *MacLookup) RefreshCache()
RefreshCache should be called initially and when the cached data are suspected to be stale.
Click to show internal directories.
Click to hide internal directories.