Subject: Re: [PATCH] /proc/net/stat/rt_cache has a wrong header

From: Eric Dumazet <[email-masked]>
Date: Fri, 18 Mar 2005 18:26:00 +0100

Eric Dumazet a écrit :

> AFAIK the old stat file (/proc/net/rt_cache_acct) was OK.
> 
> During the conversion to /proc/net/stat/rt_cache done in late 2.6.XX 
> version, a bug was introduced, in kernel and also in iproute2.
> 
> The API if fine, and my patch doesnt change it.
> 
> Eric
> 
> 

I should give more explanations about the bug :

Each line contains 17 fields.

But the header contains only 16 fields, one column (in_slow_mc, the 4th field) was forgotten.

Thus rtstat (from last iproute2) gives wrong information starting at 4th column.

Eric