]> git.baikalelectronics.ru Git - kernel.git/commit
fib_trie: Only display main table in /proc/net/route
authorAlexander Duyck <alexander.h.duyck@redhat.com>
Wed, 11 Mar 2015 23:36:08 +0000 (16:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2015 01:24:32 +0000 (21:24 -0400)
commitf92823bfe4956430e6a5728ec04cffe0c74ef1f9
treeb5f355d84c286551bedf0551fd58e355f9180de9
parentd9912033fdca65cacdf1539d1700d66e1b56e069
fib_trie: Only display main table in /proc/net/route

When we merged the tries for local and main I had overlooked the iterator
for /proc/net/route.  As a result it was outputting both local and main
when the two tries were merged.

This patch resolves that by only providing output for aliases that are
actually in the main trie.  As a result we should go back to the original
behavior which I assume will be necessary to maintain legacy support.

Fixes: ddc9dad41 ("ipv4: FIB Local/MAIN table collapse")
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c