diff options
-rw-r--r-- | networking/libiproute/iproute.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 5a972f8b2..cd77f642f 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -111,15 +111,7 @@ static int FAST_FUNC print_route(const struct sockaddr_nl *who UNUSED_PARAM, | |||
111 | if (r->rtm_flags & RTM_F_CLONED) { | 111 | if (r->rtm_flags & RTM_F_CLONED) { |
112 | return 0; | 112 | return 0; |
113 | } | 113 | } |
114 | if (G_filter.tb == RT_TABLE_LOCAL) { | 114 | if (G_filter.tb != tid) { |
115 | if (r->rtm_type != RTN_LOCAL) { | ||
116 | return 0; | ||
117 | } | ||
118 | } else if (G_filter.tb == RT_TABLE_MAIN) { | ||
119 | if (r->rtm_type == RTN_LOCAL) { | ||
120 | return 0; | ||
121 | } | ||
122 | } else { | ||
123 | return 0; | 115 | return 0; |
124 | } | 116 | } |
125 | } | 117 | } |