From owner-freebsd-net Wed Jun 21 9:57:24 2000 Delivered-To: freebsd-net@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 91C2737BEF6; Wed, 21 Jun 2000 09:57:16 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id RAA21484; Wed, 21 Jun 2000 17:57:13 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id RAA45382; Wed, 21 Jun 2000 17:57:09 +0100 (BST) (envelope-from brian@Awfulhak.org) Message-Id: <200006211657.RAA45382@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nik Clayton Cc: net@FreeBSD.ORG, brian@hak.lan.Awfulhak.org Subject: Re: No route for 127/8 to lo0 In-Reply-To: Message from Nik Clayton of "Tue, 20 Jun 2000 20:17:34 -0000." <20000620201733.A665@kilt.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 21 Jun 2000 17:57:08 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [.....] > 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 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