Re: debugging eth driver

Keith Owens (kaos@ocs.com.au)
Sun, 17 Mar 2002 12:36:43 +1100


On Sat, 16 Mar 2002 10:52:10 -0800,
Petko Manolov <pmanolov@lnxw.com> wrote:
>Alan Cox wrote:
>>>How am i supposed to get a feedback from the upper layers?
>>
>> Keep an eye on /proc/net/snmp
>
>It isn't very readable format.. Any other way or i have to
>read the code and see what the messages mean?

Quick and dirty script to neatly format /proc/net/snmp. BTW, there is
a mismatch in the ICMP list on 2.4.17, 26 headers and 27 values :(.

cat > /tmp/$$a <<\****
while(<>) {
chop;
(@f) = split;
if (++$line % 2) {
@head = @f;
}
else {
for ($i = 0; $i <= @f; ++$i) {
printf "%-25s%s\n", $head[$i], $f[$i];
}
}
}
****
cat /proc/net/snmp | perl /tmp/$$a
rm /tmp/$$a

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/