Hexdump shows that the version 2.3.0-22-generic contains a NULL character after 2.3. ethtool correctly reports the version:
$ ethtool -i br0
driver: bridge
version: 2.3
firmware-version: N/A
expansion-rom-version:
bus-info: N/A
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
$ ethtool -i tun0
driver: tun
version: 1.6
firmware-version:
expansion-rom-version:
bus-info: tun
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
The version for bridge and tun devices is reported incorrectly. The code from the example:
returns:
Hexdump shows that the version
2.3.0-22-generic
contains a NULL character after2.3
.ethtool
correctly reports the version: