The version for bridge and tun devices is reported incorrectly. For example, DriverInfo.Version reports 2.3.0-22-generic with a zero character after 2.3. The ethtool -i command reports the version as 2.3.
So strip all characters starting from the zero character.
The version for bridge and tun devices is reported incorrectly. For example, DriverInfo.Version reports
2.3.0-22-generic
with a zero character after2.3
. Theethtool -i
command reports the version as2.3
.So strip all characters starting from the zero character.
Fixes: https://github.com/safchain/ethtool/issues/39