From: Mitsuru Chinen Date: Tue, 30 Oct 2007 05:02:57 +0000 (-0700) Subject: [IPv4] SNMP: Refer correct memory location to display ICMP out-going statistics X-Git-Tag: v2.6.24-rc2~79^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064f3605be6b9b77151274f60693843cabaa09ec;p=linux-2.6 [IPv4] SNMP: Refer correct memory location to display ICMP out-going statistics While displaying ICMP out-going statistics as Out counters in /proc/net/snmp, the memory location for ICMP in-coming statistics was referred by mistake. Signed-off-by: Mitsuru Chinen Acked-by: David L Stevens Signed-off-by: David S. Miller --- diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 9be0daa9c0..ffdccc0972 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -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)); } /*