diff options
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r-- | net/ipv6/ip6mr.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index dfba9fd0c248..2dc4b0190878 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -297,14 +297,15 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v) | |||
297 | const struct mfc6_cache *mfc = v; | 297 | const struct mfc6_cache *mfc = v; |
298 | const struct ipmr_mfc_iter *it = seq->private; | 298 | const struct ipmr_mfc_iter *it = seq->private; |
299 | 299 | ||
300 | seq_printf(seq, "%pI6 %pI6 %-3d %8ld %8ld %8ld", | 300 | seq_printf(seq, "%pI6 %pI6 %-3d", |
301 | &mfc->mf6c_mcastgrp, &mfc->mf6c_origin, | 301 | &mfc->mf6c_mcastgrp, &mfc->mf6c_origin, |
302 | mfc->mf6c_parent, | 302 | mfc->mf6c_parent); |
303 | mfc->mfc_un.res.pkt, | ||
304 | mfc->mfc_un.res.bytes, | ||
305 | mfc->mfc_un.res.wrong_if); | ||
306 | 303 | ||
307 | if (it->cache != &mfc_unres_queue) { | 304 | if (it->cache != &mfc_unres_queue) { |
305 | seq_printf(seq, " %8lu %8lu %8lu", | ||
306 | mfc->mfc_un.res.pkt, | ||
307 | mfc->mfc_un.res.bytes, | ||
308 | mfc->mfc_un.res.wrong_if); | ||
308 | for (n = mfc->mfc_un.res.minvif; | 309 | for (n = mfc->mfc_un.res.minvif; |
309 | n < mfc->mfc_un.res.maxvif; n++) { | 310 | n < mfc->mfc_un.res.maxvif; n++) { |
310 | if (MIF_EXISTS(n) && | 311 | if (MIF_EXISTS(n) && |
@@ -313,6 +314,11 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v) | |||
313 | " %2d:%-3d", | 314 | " %2d:%-3d", |
314 | n, mfc->mfc_un.res.ttls[n]); | 315 | n, mfc->mfc_un.res.ttls[n]); |
315 | } | 316 | } |
317 | } else { | ||
318 | /* unresolved mfc_caches don't contain | ||
319 | * pkt, bytes and wrong_if values | ||
320 | */ | ||
321 | seq_printf(seq, " %8lu %8lu %8lu", 0ul, 0ul, 0ul); | ||
316 | } | 322 | } |
317 | seq_putc(seq, '\n'); | 323 | seq_putc(seq, '\n'); |
318 | } | 324 | } |