Commit c9e53cbe authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[FIB_TRIE]: Don't show local table in /proc/net/route output



Don't show local table to behave similar to fib_hash.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ef43204
...@@ -2378,6 +2378,7 @@ static unsigned fib_flag_trans(int type, u32 mask, const struct fib_info *fi) ...@@ -2378,6 +2378,7 @@ static unsigned fib_flag_trans(int type, u32 mask, const struct fib_info *fi)
*/ */
static int fib_route_seq_show(struct seq_file *seq, void *v) static int fib_route_seq_show(struct seq_file *seq, void *v)
{ {
const struct fib_trie_iter *iter = seq->private;
struct leaf *l = v; struct leaf *l = v;
int i; int i;
char bf[128]; char bf[128];
...@@ -2389,6 +2390,8 @@ static int fib_route_seq_show(struct seq_file *seq, void *v) ...@@ -2389,6 +2390,8 @@ static int fib_route_seq_show(struct seq_file *seq, void *v)
return 0; return 0;
} }
if (iter->trie == trie_local)
return 0;
if (IS_TNODE(l)) if (IS_TNODE(l))
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment