public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.5] fix /proc/net/route missing the default route
@ 2003-04-01 17:17 Daniel Ritz
  2003-04-03 12:38 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Ritz @ 2003-04-01 17:17 UTC (permalink / raw)
  To: David S. Miller; +Cc: linux-kernel, szazol

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 =====
--- 1.10/net/ipv4/fib_hash.c	Sat Feb  1 02:04:16 2003
+++ edited/net/ipv4/fib_hash.c	Tue Apr  1 19:03:45 2003
@@ -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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2.5] fix /proc/net/route missing the default route
  2003-04-01 17:17 [PATCH 2.5] fix /proc/net/route missing the default route Daniel Ritz
@ 2003-04-03 12:38 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2003-04-03 12:38 UTC (permalink / raw)
  To: daniel.ritz; +Cc: linux-kernel, szazol

   From: Daniel Ritz <daniel.ritz@gmx.ch>
   Date: Tue, 1 Apr 2003 19:17:07 +0200

   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.

I've applied your patch, thanks Daniel.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-03 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-01 17:17 [PATCH 2.5] fix /proc/net/route missing the default route Daniel Ritz
2003-04-03 12:38 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox