Skip to contentSkip to conversation

fix /proc/net/route missing the default route

PATCH Applied Daniel Ritz 2 participants 2 messages Apr 1, 2003 – Apr 3, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix /proc/net/route missing the default route

hi

this one fixes /proc/net/route missing the default route for me. [see http://bugme.osdl.org/show_bug.cgi?id=528 ] against 2.5.66-bk. please apply if it's correct.

rgds
-daniel

===== net/ipv4/fib_hash.c 1.10 vs edited =====

net/ipv4/fib_hash.c +3 -7
@@ -936,14 +936,10 @@
 				goto out;
 		}
 
-		for (;;) {
-			iter->zone = iter->zone->fz_next;
+		iter->zone = iter->zone->fz_next;
 
-			if (!iter->zone)
-				goto out;
-			if (iter->zone->fz_next)
-				break;
-		}
+		if (!iter->zone)
+			goto out;
 		
 		iter->hash = iter->zone->fz_hash;
 		iter->bucket = 0;