SNMP: Refer correct memory location to display ICMP out-going statistics
Subsystems (2)
PATCH 1/1 SNMP: Refer correct memory location to display ICMP out-going statistics
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.
Acked-by David L Stevens <[email protected]>
Signed-off-by Mitsuru Chinen <[email protected]>
--- net/ipv4/proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/ipv4/proc.c +1 -1
@@ -312,7 +312,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 )); }/*
Signature · 1 line
1.5.3.4
David Miller
maintainerFrom: Mitsuru Chinen <[email protected]>
Date: Fri, 26 Oct 2007 10:59:28 +0900
Quoted 6 lines
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.Acked-by David L Stevens <[email protected]>Signed-off-by Mitsuru Chinen <[email protected]>
Patch applied, thank you!