From 7a940e7b0ac708f912e79f1bbe94797e70836b35 Mon Sep 17 00:00:00 2001 From: Petr Sabata Date: Wed, 18 Aug 2010 09:21:28 +0200 Subject: [PATCH] iproute2-2.6.35-print-route.patch --- iproute2-2.6.35-print-route.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 iproute2-2.6.35-print-route.patch diff --git a/iproute2-2.6.35-print-route.patch b/iproute2-2.6.35-print-route.patch new file mode 100644 index 0000000..04f3cf7 --- /dev/null +++ b/iproute2-2.6.35-print-route.patch @@ -0,0 +1,13 @@ +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) {