aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/ipmr.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 77fc4d3fdf61..cb3a57d46af6 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1879,15 +1879,16 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
1879 const struct mfc_cache *mfc = v; 1879 const struct mfc_cache *mfc = v;
1880 const struct ipmr_mfc_iter *it = seq->private; 1880 const struct ipmr_mfc_iter *it = seq->private;
1881 1881
1882 seq_printf(seq, "%08lX %08lX %-3d %8ld %8ld %8ld", 1882 seq_printf(seq, "%08lX %08lX %-3d",
1883 (unsigned long) mfc->mfc_mcastgrp, 1883 (unsigned long) mfc->mfc_mcastgrp,
1884 (unsigned long) mfc->mfc_origin, 1884 (unsigned long) mfc->mfc_origin,
1885 mfc->mfc_parent, 1885 mfc->mfc_parent);
1886 mfc->mfc_un.res.pkt,
1887 mfc->mfc_un.res.bytes,
1888 mfc->mfc_un.res.wrong_if);
1889 1886
1890 if (it->cache != &mfc_unres_queue) { 1887 if (it->cache != &mfc_unres_queue) {
1888 seq_printf(seq, " %8lu %8lu %8lu",
1889 mfc->mfc_un.res.pkt,
1890 mfc->mfc_un.res.bytes,
1891 mfc->mfc_un.res.wrong_if);
1891 for (n = mfc->mfc_un.res.minvif; 1892 for (n = mfc->mfc_un.res.minvif;
1892 n < mfc->mfc_un.res.maxvif; n++ ) { 1893 n < mfc->mfc_un.res.maxvif; n++ ) {
1893 if (VIF_EXISTS(n) 1894 if (VIF_EXISTS(n)
@@ -1896,6 +1897,11 @@ static int ipmr_mfc_seq_show(struct seq_file *seq, void *v)
1896 " %2d:%-3d", 1897 " %2d:%-3d",
1897 n, mfc->mfc_un.res.ttls[n]); 1898 n, mfc->mfc_un.res.ttls[n]);
1898 } 1899 }
1900 } else {
1901 /* unresolved mfc_caches don't contain
1902 * pkt, bytes and wrong_if values
1903 */
1904 seq_printf(seq, " %8lu %8lu %8lu", 0ul, 0ul, 0ul);
1899 } 1905 }
1900 seq_putc(seq, '\n'); 1906 seq_putc(seq, '\n');
1901 } 1907 }