netdev
[Top] [All Lists]

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

To: Eric Dumazet <dada1@xxxxxxxxxxxxx>
Subject: Re: [PATCH] /proc/net/stat/rt_cache has a wrong header
From: Eric Dumazet <dada1@xxxxxxxxxxxxx>
Date: Fri, 18 Mar 2005 18:26:00 +0100
Cc: Stephen Hemminger <shemminger@xxxxxxxx>, acme@xxxxxxxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <423B0C58.10709@cosmosbay.com>
References: <4238C388.5040303@cosmosbay.com> <423AC418.6080903@cosmosbay.com> <20050318085056.0869394b@dxpl.pdx.osdl.net> <423B0C58.10709@cosmosbay.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
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

<Prev in Thread] Current Thread [Next in Thread>