How do you calculate the count of bytes you sent on an AT modem ?
Oleg Goldshmidt
pub at goldshmidt.org
Tue Jun 22 16:23:24 IDT 2010
On Tue, Jun 22, 2010 at 3:42 PM, Boris shtrasman <borissh1983 at gmail.com> wrote:
> Then it time for me to search for an answer in LDD again.
Or in the code... ;-)
>> $ ip -s link show eth0
>> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
>> state UP qlen 100
>> link/ether 00:23:7d:3f:be:e4 brd ff:ff:ff:ff:ff:ff
>> RX: bytes packets errors dropped overrun mcast
>> 127360522 317486 0 0 0 21202
>> TX: bytes packets errors dropped carrier collsns
>> 9834609 77092 0 0 0 0
>>
> I can't understand from the man file if it is the RX/TX including all the
> headers (the raw data sent) or only the data segment.
It looks in /proc/net/dev (at least if it is like ifconfig that it is
supposed to have replaced). I would be very much surprized if a sane
driver would count anything else than the actual bytes on the wire.
That's the only meaningful statistics from its point of view, isn't
it?
--
Oleg Goldshmidt | pub at goldshmidt.org
More information about the Linux-il
mailing list