Messages in this thread | | | Date | Mon, 24 Nov 1997 19:49:41 -0800 (PST) | From | "Richard A. Soderberg" <> | Subject | [2.1.56] Byte counting on network devices |
| |
From my experiments with my 2.1.56 kernel, I notice that byte-counting in /proc/net/dev seems to be working just fine - except that the bytes it counts are shown in the lo device instead of the ppp0 device that I'm pinging through.
bash-2.01# uname -a Linux soderberg 2.1.65 #1 Wed Nov 19 23:22:36 PST 1997 i586 unknown
bash-2.01# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface strata * 255.255.255.255 U 32767 0 0 ppp0 (.209-.210)/30 * 255.255.255.252 U 0 0 0 dummy0 default strata 0.0.0.0 UG 0 0 0 ppp0
bash-2.01# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame|bytes packets errs drop fifo colls carrier lo: 17415 128 0 0 0 0 17415 128 0 0 dummy0: 0 0 0 0 0 0 0 0 0 0 ppp0: 0 7612 1 1 0 0 0 8279 0 0
bash-2.01# ping -c 1 strata PING strata (208.146.49.36): 56 data bytes 64 bytes from 208.146.49.36: icmp_seq=0 ttl=255 time=200.7 ms
--- strata ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max = 200.7/200.7/200.7 ms
bash-2.01# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame|bytes packets errs drop fifo colls carrier lo: 17662 130 0 0 0 0 17662 130 0 0 dummy0: 0 0 0 0 0 0 0 0 0 0 ppp0: 0 7614 1 1 0 0 0 8281 0 0
Well, after pinging through ppp, lo: gets the bytes and ppp0: gets the packets. Somehow, this just doesn't seem that terribly right to me. I don't have the C coding experience to go track it down in the bytecounting code in drivers/net/core (whatever), so I'll ask that someone please tell me if they fix this problem, know of a patch, or anything else.
I am unsubscribed from the mailing list due to traffic, so please CC: me with any replies. Thank you.
Richard
-- http://www.dnsi.net/
| |