![]() | |||||||||||||
Messages in this thread |
net-tools 1.432
ifconfig 1.29 (1997-09-23)
ifconfig.c parses /proc/net/dev incorrectly for Linux 2.1.90 (happened
sometime earlier). I saw this problem mentioned in the kernel mailing list.
There are now 16 arguments to parse and it screws up the stats by a couple
of columns.
Here's my proc/net/dev:
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
lo: 1669029 15115 0 0 0 0 0 0 1669029
15115 0 0 0 0 0 0
eth0: 0 54969 0 0 0 0 0 0 0
25659 0 0 0 1 0 0
gre0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
The addition is compressed/multicast on the rx side and compressed on the tx
side. Perchance the code should check the headers to ensure it matches the
expected format and give a warning?
Is there a newer version?
I've attached a patch that fixes the problem.
_________________________________________________________
Mike Black mblack@csihq.com
407-676-2923, x203 FAX 407-676-2355
Computer Science Innovations, Inc. http://www.csihq.com
[unhandled content-type:application/octet-stream] | ||||||||||||
| Last update: 2005-03-22 12:41 [from the cache] ©2003-2008 | |||||||||||||