Re: [PATCH] /proc/net/dev counter fix, linux-2.5.0

From: Alan Cox (
Date: Wed Dec 12 2001 - 08:27:18 EST

> I have made a patch to fix the counter values in /proc/net/dev. The
> problem was that the tx_bytes and rx_bytes will reset when ~4GB is
> transferred. This patch has been tested to work with linux-2.5.0 but it
> should work on all 2.4.* kernels. Also it should work with most of the
> interface cards but not all yet.

It's something we've always avoided doing. A long long is expensive to
update and not an atomic type on things like the x86. The firewalling
facilities let you collect 64bit accounting data if you need it
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:23 EST