]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPv4] SNMP: Refer correct memory location to display ICMP out-going statistics
authorMitsuru Chinen <mitch@linux.vnet.ibm.com>
Tue, 30 Oct 2007 05:02:57 +0000 (22:02 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 30 Oct 2007 05:37:36 +0000 (22:37 -0700)
While displaying ICMP out-going statistics as Out<name> counters in
/proc/net/snmp, the memory location for ICMP in-coming statistics
was referred by mistake.

Signed-off-by: Mitsuru Chinen <mitch@linux.vnet.ibm.com>
Acked-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/proc.c

index 9be0daa9c0ecc16c6a95f2c9402b9879df6fdc08..ffdccc0972e039d52dd5e236ee71f677fb4474f2 100644 (file)
@@ -304,7 +304,7 @@ static void icmp_put(struct seq_file *seq)
        for (i=0; icmpmibmap[i].name != NULL; i++)
                seq_printf(seq, " %lu",
                        snmp_fold_field((void **) icmpmsg_statistics,
-                               icmpmibmap[i].index));
+                               icmpmibmap[i].index | 0x100));
 }
 
 /*