Re: /proc/net/dev

Alan Cox (
Mon, 16 Jun 1997 23:30:47 +0100 (BST)

> /proc/net/dev? I would like to fix the ppp driver so it fills in the
> number of bytes transmitted and received, and to put in received bytes
> counting on the Tulip driver. I would like to know the following:
> Is the count the number of bytes transferred over the media or the size
> of the IP packet? It appears to be the size of the IP packet.

Its an approximation of the number of bytes sent to the media, not including
preambles and training sequences.

> On transmission the Tulip driver increases the byte counter before the
> packet is sent and doesn't appear to decrease it on failure to send. Is
> this a bug or is the byte count defined as the number of bytes that we
> attempt to send?

Is it worth the clock cycles to worry about tiny errors ?