| 1 | require 'rethtool' |
| 2 | require 'cstruct' |
| 3 | |
| 4 | class Rethtool::EthtoolCmd < CStruct |
| 5 | uint32 :cmd |
| 6 | uint32 :supported |
| 7 | uint32 :advertising |
| 8 | uint16 :speed |
| 9 | uint8 :duplex |
| 10 | uint8 :port |
| 11 | uint8 :phy_address |
| 12 | uint8 :transceiver |
| 13 | uint8 :autoneg |
| 14 | uint8 :mdio_support |
| 15 | uint32 :maxtxpkt |
| 16 | uint32 :maxrxpkt |
| 17 | uint16 :speed_hi |
| 18 | uint8 :eth_tp_mdix |
| 19 | uint8 :reserved |
| 20 | uint32 :lp_advertising |
| 21 | uint32 :reserved2 |
| 22 | uint32 :reserved3 |
| 23 | end |