const ETHTOOL_GSSET_INFO … const SIOCETHTOOL … const ETHTOOL_GSTRINGS … const ETHTOOL_GSTATS … const ETH_SS_TEST … const ETH_SS_STATS … const ETH_SS_PRIV_FLAGS … const _ETH_SS_NTUPLE_FILTERS … const ETH_SS_FEATURES … const ETH_SS_RSS_HASH_FUNCS … type IfreqSlave … type Ifreq … type ethtoolSset … type ethtoolStats … // newIocltSlaveReq returns filled IfreqSlave with proper interface names // It is used by ioctl to assign slave to bond master func newIocltSlaveReq(slave, master string) *IfreqSlave { … } // newIocltStringSetReq creates request to get interface string set func newIocltStringSetReq(linkName string) (*Ifreq, *ethtoolSset) { … } // getSocketUDP returns file descriptor to new UDP socket // It is used for communication with ioctl interface. func getSocketUDP() (int, error) { … }