Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2000 17:57:08 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Nik Clayton <nik@FreeBSD.ORG>
Cc:        net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org
Subject:   Re: No route for 127/8 to lo0 
Message-ID:  <200006211657.RAA45382@hak.lan.Awfulhak.org>
In-Reply-To: Message from Nik Clayton <nik@FreeBSD.ORG>  of "Tue, 20 Jun 2000 20:17:34 -0000." <20000620201733.A665@kilt.nothing-going-on.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
[.....]
> Is there some special-case for 127/8 that's covered by the "For most
> purposes" line?
> 
> If you look in src/sys/netinet/in.c:in_ifinit() (around line 700) you'll
> see that IFF_LOOPBACK is special cased in the code to only add a host
> route, rather than a network route, and it's been like that for about 15
> years or so.
> 
> At the moment I just have a /usr/local/etc/rc.d/local-route.sh script
> which runs
> 
>     route add -net 127 -interface lo0
> 
> at startup.  But it's a bit of a kludge. . .

I think the real problem here is that the networking code in general 
treats IFF_LOOPBACK as a non-IFF_BROADCAST interface.  I don't think 
anything would break if this was changed, but I'd definitely think 
that a ``remove the broadcast bit'' ioctl would be in order - so that 
the old behaviour could be achieved.

> N
> -- 
> Internet connection, $19.95 a month.  Computer, $799.95.  Modem, $149.95.
> Telephone line, $24.95 a month.  Software, free.  USENET transmission,
> hundreds if not thousands of dollars.  Thinking before posting, priceless.
> Somethings in life you can't buy.  For everything else, there's MasterCard.
>   -- Graham Reed, in the Scary Devil Monastery

-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006211657.RAA45382>