aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-18 07:04:22 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-18 07:04:22 -0400
commit923c6586b0dc0a00df07a1608185437145a0c68b (patch)
treebbe3324b4ae8920a3a50e81e596c75db11cc9433 /net/ipv4/proc.c
parentb60538a0d737609213e4b758881913498d3ff0b4 (diff)
mib: put icmpmsg statistics on struct net
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r--net/ipv4/proc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 6b43cce05587..e11144b0134a 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -270,7 +270,7 @@ static void icmpmsg_put(struct seq_file *seq)
270 count = 0; 270 count = 0;
271 for (i = 0; i < ICMPMSG_MIB_MAX; i++) { 271 for (i = 0; i < ICMPMSG_MIB_MAX; i++) {
272 272
273 if (snmp_fold_field((void **) icmpmsg_statistics, i)) 273 if (snmp_fold_field((void **) init_net.mib.icmpmsg_statistics, i))
274 out[count++] = i; 274 out[count++] = i;
275 if (count < PERLINE) 275 if (count < PERLINE)
276 continue; 276 continue;
@@ -282,7 +282,7 @@ static void icmpmsg_put(struct seq_file *seq)
282 seq_printf(seq, "\nIcmpMsg: "); 282 seq_printf(seq, "\nIcmpMsg: ");
283 for (j = 0; j < PERLINE; ++j) 283 for (j = 0; j < PERLINE; ++j)
284 seq_printf(seq, " %lu", 284 seq_printf(seq, " %lu",
285 snmp_fold_field((void **) icmpmsg_statistics, 285 snmp_fold_field((void **) init_net.mib.icmpmsg_statistics,
286 out[j])); 286 out[j]));
287 seq_putc(seq, '\n'); 287 seq_putc(seq, '\n');
288 } 288 }
@@ -294,7 +294,7 @@ static void icmpmsg_put(struct seq_file *seq)
294 seq_printf(seq, "\nIcmpMsg:"); 294 seq_printf(seq, "\nIcmpMsg:");
295 for (j = 0; j < count; ++j) 295 for (j = 0; j < count; ++j)
296 seq_printf(seq, " %lu", snmp_fold_field((void **) 296 seq_printf(seq, " %lu", snmp_fold_field((void **)
297 icmpmsg_statistics, out[j])); 297 init_net.mib.icmpmsg_statistics, out[j]));
298 } 298 }
299 299
300#undef PERLINE 300#undef PERLINE
@@ -315,14 +315,14 @@ static void icmp_put(struct seq_file *seq)
315 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_INERRORS)); 315 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_INERRORS));
316 for (i=0; icmpmibmap[i].name != NULL; i++) 316 for (i=0; icmpmibmap[i].name != NULL; i++)
317 seq_printf(seq, " %lu", 317 seq_printf(seq, " %lu",
318 snmp_fold_field((void **) icmpmsg_statistics, 318 snmp_fold_field((void **) init_net.mib.icmpmsg_statistics,
319 icmpmibmap[i].index)); 319 icmpmibmap[i].index));
320 seq_printf(seq, " %lu %lu", 320 seq_printf(seq, " %lu %lu",
321 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTMSGS), 321 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTMSGS),
322 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTERRORS)); 322 snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTERRORS));
323 for (i=0; icmpmibmap[i].name != NULL; i++) 323 for (i=0; icmpmibmap[i].name != NULL; i++)
324 seq_printf(seq, " %lu", 324 seq_printf(seq, " %lu",
325 snmp_fold_field((void **) icmpmsg_statistics, 325 snmp_fold_field((void **) init_net.mib.icmpmsg_statistics,
326 icmpmibmap[i].index | 0x100)); 326 icmpmibmap[i].index | 0x100));
327} 327}
328 328