diff options
author | Patrick McHardy <kaber@trash.net> | 2005-11-21 00:09:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-21 00:09:00 -0500 |
commit | c9e53cbe7ad6eabb3c7c5140b6127b4e5f9ee840 (patch) | |
tree | a74df1b3b0defeba225fd260934c3444a171db42 /net/ipv4 | |
parent | 1ef43204f4bd24dcd3156185b19b31b6b4151ae9 (diff) |
[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: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fib_trie.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 66247f38b371..705e3ce86df9 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -2378,6 +2378,7 @@ static unsigned fib_flag_trans(int type, u32 mask, const struct fib_info *fi) | |||
2378 | */ | 2378 | */ |
2379 | static int fib_route_seq_show(struct seq_file *seq, void *v) | 2379 | static int fib_route_seq_show(struct seq_file *seq, void *v) |
2380 | { | 2380 | { |
2381 | const struct fib_trie_iter *iter = seq->private; | ||
2381 | struct leaf *l = v; | 2382 | struct leaf *l = v; |
2382 | int i; | 2383 | int i; |
2383 | char bf[128]; | 2384 | char bf[128]; |
@@ -2389,6 +2390,8 @@ static int fib_route_seq_show(struct seq_file *seq, void *v) | |||
2389 | return 0; | 2390 | return 0; |
2390 | } | 2391 | } |
2391 | 2392 | ||
2393 | if (iter->trie == trie_local) | ||
2394 | return 0; | ||
2392 | if (IS_TNODE(l)) | 2395 | if (IS_TNODE(l)) |
2393 | return 0; | 2396 | return 0; |
2394 | 2397 | ||