Ok, to expand on my brief description.
ifdata fails with "Invalid data read, check! Error getting statistics
for wlan0" due to it looking for 17 items from /proc/net/dev/ on a line
(the wlan0 line in my system). However it also carves up the line
expecting the net device to be up to 6 characters in length (which
typically they are with eth1, wlan0 as examples). However sometimes they
are longer:-
a...@hactar:~/Development/moreutils/moreutils-0.34$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
lo: 11860 170 0 0 0 0 0 0 11860
170 0 0 0 0 0 0
eth0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
wmaster0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
wlan0: 4015561 7480 0 0 0 0 0 0 1157487
8080 0 0 0 0 0 0
vboxnet0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
pan0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
Note vboxnet0 and wmaster0 are both longer than 6 characters. According
to include/linux/device.h the net device name can be up to 20 characters
in length. So the patch just accommodates larger device names.
** Attachment added: "patch.txt"
http://launchpadlibrarian.net/26231740/patch.txt
--
ifdata doesn't support long device names
https://bugs.launchpad.net/bugs/370557
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs