netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: pekkas@netcore.fi, davem@davemloft.net
Cc: laforge@gnumonks.org, davem@davemloft.net, netdev@oss.sgi.com,
	usagi-users@linux-ipv6.org, yoshfuji@linux-ipv6.org
Subject: Re: 2.6.8.1 IPv6 Routing Problem
Date: Mon, 20 Sep 2004 15:20:12 +0900 (JST)	[thread overview]
Message-ID: <20040920.152012.114156249.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0409200806460.22679-100000@netcore.fi>

In article <Pine.LNX.4.44.0409200806460.22679-100000@netcore.fi> (at Mon, 20 Sep 2004 08:08:36 +0300 (EEST)), Pekka Savola <pekkas@netcore.fi> says:

> On Sun, 19 Sep 2004, Harald Welte wrote:
> > Apparently this happens when you 
> > 
> > 1) insmod ipv6
> > 2) ifconfig your interfaces up
> > 3) only now ifconfig 'lo' up.
> > 
> > This happened due to a typo in my script :(  If 'lo' exists prior to the
> > other interfaces, everything seems to work as usual.
> > 
> > Is this desired or accidential and/or documented behaviour?
> 
> AFAIK, it's not documented, but known among developers (in general): 
> there's a lot of magic tied to the loopback interface, and lots of 
> things (like ND) break very badly if it's not always up and running 
> appropriately..

I agree that it is not documented.

This behavior lives for years (AFAIK),
and we haven't got so many reports 
because people usually bring loopback device first.

I think the following message will help people, anyway.

Signed-off-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>

===== net/ipv6/route.c 1.94 vs edited =====
--- 1.94/net/ipv6/route.c	2004-09-15 06:03:30 +09:00
+++ edited/net/ipv6/route.c	2004-09-20 14:59:08 +09:00
@@ -1373,6 +1373,12 @@
 	if (rt == NULL)
 		return ERR_PTR(-ENOMEM);
 
+	if (!(loopback_dev.flags & IFF_UP)) {
+		printk(KERN_WARNING "INET6: please bring loopback device up"
+				    "first.\n");
+		return ERR_PTR(-ENETDOWN);
+	}
+
 	dev_hold(&loopback_dev);
 	in6_dev_hold(idev);
 

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

  reply	other threads:[~2004-09-20  6:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-17 23:08 2.6.8.1 IPv6 Routing Problem Harald Welte
2004-09-17 23:43 ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-18  0:28   ` (usagi-users 03036) " YOSHIFUJI Hideaki / 吉藤英明
2004-09-18 22:02   ` Harald Welte
2004-09-19  1:06     ` David S. Miller
2004-09-19  2:11       ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-19  2:20         ` YOSHIFUJI Hideaki / 吉藤英明
2004-09-19  7:46         ` Harald Welte
2004-09-20  5:08           ` Pekka Savola
2004-09-20  6:20             ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2004-09-22  2:57               ` David S. Miller
2004-09-22  3:06                 ` YOSHIFUJI Hideaki / 吉藤英明
2004-12-25 11:54                   ` Harald Welte
2004-12-25 21:56                     ` David S. Miller
2004-12-26  5:45                       ` Herbert Xu

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=20040920.152012.114156249.yoshfuji@linux-ipv6.org \
    --to=yoshfuji@linux-ipv6.org \
    --cc=davem@davemloft.net \
    --cc=laforge@gnumonks.org \
    --cc=netdev@oss.sgi.com \
    --cc=pekkas@netcore.fi \
    --cc=usagi-users@linux-ipv6.org \
    /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;
as well as URLs for NNTP newsgroup(s).