]> err.no Git - linux-2.6/blobdiff - net/ipv4/fib_trie.c
[FIB_TRIE]: Don't show local table in /proc/net/route output
[linux-2.6] / net / ipv4 / fib_trie.c
index 66247f38b3716193637ab4c79020e22d9f65e1dd..705e3ce86df9534fc2c1e530d7c80320dd6e3e08 100644 (file)
@@ -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)
 {
+       const struct fib_trie_iter *iter = seq->private;
        struct leaf *l = v;
        int i;
        char bf[128];
@@ -2389,6 +2390,8 @@ static int fib_route_seq_show(struct seq_file *seq, void *v)
                return 0;
        }
 
+       if (iter->trie == trie_local)
+               return 0;
        if (IS_TNODE(l))
                return 0;