14 lines
477 B
Diff
14 lines
477 B
Diff
diff --git a/ip/iproute.c b/ip/iproute.c
|
|
index 711576e..86c7ab7 100644
|
|
--- a/ip/iproute.c
|
|
+++ b/ip/iproute.c
|
|
@@ -160,7 +160,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
|
if (r->rtm_family == AF_INET6 && table != RT_TABLE_MAIN)
|
|
ip6_multiple_tables = 1;
|
|
|
|
- if (filter.cloned == !(r->rtm_flags&RTM_F_CLONED))
|
|
+ if (filter.cloned && !(r->rtm_flags&RTM_F_CLONED))
|
|
return 0;
|
|
|
|
if (r->rtm_family == AF_INET6 && !ip6_multiple_tables) {
|