knetload 1.1

Ernie Pasveer epasveer at home.com
Wed Sep 8 05:43:03 BST 1999


On Tue, 07 Sep 1999, Ernie Pasveer wrote:
--On Tue, 07 Sep 1999, nate wrote:
--
----I am having a problem getting knetload 1.1 to display the usage data for my 2nd
----ethernet card.  I have my machine setup as a masquerading proxy and it works
----fine with the internal network card (eth0) but will not show anything for
----eth1, which is connected to my cable modem. 
--
--
--I have a cable modem as well and I can't get anything to show for eth0.
--Here is my ifconfig output.
--
--lo        Link encap:Local Loopback
--          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
--          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
--          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
--          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
--          Collisions:0
--
--eth0      Link encap:Ethernet  HWaddr 00:40:05:40:13:FF
--          inet addr:24.65.207.226  Bcast:255.255.255.255  Mask:255.255.255.0
--          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
--          RX packets:16547 errors:0 dropped:0 overruns:0 frame:0
--          TX packets:5756 errors:0 dropped:0 overruns:0 carrier:0
--          Collisions:75
--          Interrupt:11 Base address:0xd000

To follow up my own message, here is the output from 'cat /proc/net/dev'.


kitty:~ > cat /proc/net/dev
Inter-|   Receive                  |  Transmit
 face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo:      2    0    0    0    0        2    0    0    0     0    0
  eth0:  19722    0    0    0    0     6906    0    0    0    95    0

kitty:~ > cat /proc/net/dev
Inter-|   Receive                  |  Transmit
 face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo:      2    0    0    0    0        2    0    0    0     0    0
  eth0:  19724    0    0    0    0     6906    0    0    0    95    0

kitty:~ > cat /proc/net/dev
Inter-|   Receive                  |  Transmit
 face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo:      2    0    0    0    0        2    0    0    0     0    0
  eth0:  19726    0    0    0    0     6907    0    0    0    95    0


I noticed in the code the programs expects 'eth0' and 16 columns of values. I
have 11. It also expects column 0 and column 8 to contain 'in' packets and 
'out' packets. For some reason my machine uses column 0 and 5.

I have a hunch the program expects bytes transfered in columns 0 and 8. My machine
counts packets transfered.


Here's the output from 'uname -a'
 Linux kitty 2.0.36 #13 Thu Apr 22 20:23:26 MDT 1999 i586 unknown 


  --ernie  :^)


"------------------------------------------------------------"
" My work...                               **                "
"    Seismic imaging software             *::*      **       "
"                                    **  *::::*    *::*      "
" My hobby...                          **      *  *    ***   "
"    Linux programming                          **           "
"------------------------------------------------------------"



More information about the KDevelop mailing list