public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Ritz <daniel.ritz@gmx.ch>
To: "David S. Miller" <davem@redhat.com>
Cc: "linux-kernel" <linux-kernel@vger.kernel.org>, szazol@e98.hu
Subject: [PATCH 2.5] fix /proc/net/route missing the default route
Date: Tue, 1 Apr 2003 19:17:07 +0200	[thread overview]
Message-ID: <200304011917.07544.daniel.ritz@gmx.ch> (raw)

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;


             reply	other threads:[~2003-04-01 17:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-01 17:17 Daniel Ritz [this message]
2003-04-03 12:38 ` [PATCH 2.5] fix /proc/net/route missing the default route David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304011917.07544.daniel.ritz@gmx.ch \
    --to=daniel.ritz@gmx.ch \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=szazol@e98.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox