lkml.org 
[lkml]   [1998]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectnet-tools bug causes ifconfig stats error and patch
Date
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 13:41    [W:0.039 / U:1.284 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site