Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37765108
en ru br
ALT Linux repos
S:5.17.0-alt2
5.0: 2.6.26-alt1
4.1: 2.6.23-alt2
4.0: 2.6.20.20070313-alt1
3.0: 2.4.7.20020116-alt5.1

Group :: Networking/Other
RPM: iproute2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: iproute2-2.6.35-fixrouteget.patch
Download


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) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin