diff options
-rw-r--r-- | net/ipv4/fib_trie.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 1b63b4824164..3dd70787081e 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2029,7 +2029,7 @@ static struct node *fib_trie_get_first(struct fib_trie_iter *iter, | |||
2029 | iter->tnode = (struct tnode *) n; | 2029 | iter->tnode = (struct tnode *) n; |
2030 | iter->trie = t; | 2030 | iter->trie = t; |
2031 | iter->index = 0; | 2031 | iter->index = 0; |
2032 | iter->depth = 0; | 2032 | iter->depth = 1; |
2033 | return n; | 2033 | return n; |
2034 | } | 2034 | } |
2035 | return NULL; | 2035 | return NULL; |
@@ -2274,11 +2274,12 @@ static int fib_trie_seq_show(struct seq_file *seq, void *v) | |||
2274 | seq_puts(seq, "<local>:\n"); | 2274 | seq_puts(seq, "<local>:\n"); |
2275 | else | 2275 | else |
2276 | seq_puts(seq, "<main>:\n"); | 2276 | seq_puts(seq, "<main>:\n"); |
2277 | } else { | 2277 | } |
2278 | seq_indent(seq, iter->depth-1); | 2278 | seq_indent(seq, iter->depth-1); |
2279 | seq_printf(seq, " +-- %d.%d.%d.%d/%d\n", | 2279 | seq_printf(seq, " +-- %d.%d.%d.%d/%d %d %d %d\n", |
2280 | NIPQUAD(prf), tn->pos); | 2280 | NIPQUAD(prf), tn->pos, tn->bits, tn->full_children, |
2281 | } | 2281 | tn->empty_children); |
2282 | |||
2282 | } else { | 2283 | } else { |
2283 | struct leaf *l = (struct leaf *) n; | 2284 | struct leaf *l = (struct leaf *) n; |
2284 | int i; | 2285 | int i; |