|
@@ -1879,15 +1879,16 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
|
|
const struct mfc_cache *mfc = v;
|
|
const struct mfc_cache *mfc = v;
|
|
const struct ipmr_mfc_iter *it = seq->private;
|
|
const struct ipmr_mfc_iter *it = seq->private;
|
|
|
|
|
|
- seq_printf(seq, "%08lX %08lX %-3d %8ld %8ld %8ld",
|
|
|
|
|
|
+ seq_printf(seq, "%08lX %08lX %-3d",
|
|
(unsigned long) mfc->mfc_mcastgrp,
|
|
(unsigned long) mfc->mfc_mcastgrp,
|
|
(unsigned long) mfc->mfc_origin,
|
|
(unsigned long) mfc->mfc_origin,
|
|
- mfc->mfc_parent,
|
|
|
|
- mfc->mfc_un.res.pkt,
|
|
|
|
- mfc->mfc_un.res.bytes,
|
|
|
|
- mfc->mfc_un.res.wrong_if);
|
|
|
|
|
|
+ mfc->mfc_parent);
|
|
|
|
|
|
if (it->cache != &mfc_unres_queue) {
|
|
if (it->cache != &mfc_unres_queue) {
|
|
|
|
+ seq_printf(seq, " %8lu %8lu %8lu",
|
|
|
|
+ mfc->mfc_un.res.pkt,
|
|
|
|
+ mfc->mfc_un.res.bytes,
|
|
|
|
+ mfc->mfc_un.res.wrong_if);
|
|
for (n = mfc->mfc_un.res.minvif;
|
|
for (n = mfc->mfc_un.res.minvif;
|
|
n < mfc->mfc_un.res.maxvif; n++ ) {
|
|
n < mfc->mfc_un.res.maxvif; n++ ) {
|
|
if (VIF_EXISTS(n)
|
|
if (VIF_EXISTS(n)
|
|
@@ -1896,6 +1897,11 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
|
|
" %2d:%-3d",
|
|
" %2d:%-3d",
|
|
n, mfc->mfc_un.res.ttls[n]);
|
|
n, mfc->mfc_un.res.ttls[n]);
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ /* unresolved mfc_caches don't contain
|
|
|
|
+ * pkt, bytes and wrong_if values
|
|
|
|
+ */
|
|
|
|
+ seq_printf(seq, " %8lu %8lu %8lu", 0ul, 0ul, 0ul);
|
|
}
|
|
}
|
|
seq_putc(seq, '\n');
|
|
seq_putc(seq, '\n');
|
|
}
|
|
}
|