From owner-cvs-all Mon Jan 29 12:29:40 2001 Delivered-To: cvs-all@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 3C0DC37B6A4; Mon, 29 Jan 2001 12:29:17 -0800 (PST) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id MAA11640; Mon, 29 Jan 2001 12:26:41 -0800 (PST) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200101292026.MAA11640@gndrsh.dnsmgr.net> Subject: Re: cvs commit: src/sys/net if_loop.c if_var.h In-Reply-To: <200101291229.f0TCTe450561@mobile.wemm.org> from Peter Wemm at "Jan 29, 2001 04:29:40 am" To: peter@netplex.com.au (Peter Wemm) Date: Mon, 29 Jan 2001 12:26:40 -0800 (PST) Cc: phk@critter.freebsd.dk (Poul-Henning Kamp), julian@elischer.org (Julian Elischer), cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Poul-Henning Kamp wrote: > > In message <3A75602F.999E938B@elischer.org>, Julian Elischer writes: > > >Peter Wemm wrote: > > >> > > >> peter 2001/01/29 03:06:32 PST > > >> > > >> Modified files: > > >> sys/net if_loop.c if_var.h > > >> Log: > > >> Make the number of loopback interfaces dynamically tunable. Why one > > >> would *want* to is a different story, but it used to be able to be done > > >> statically. Get rid of #include "loop.h" and struct ifnet loif[NLOOP]; > > >> This could be used as an example of how to do this in other drivers, > > >> for example: ccd. > > > > > >The interjet has 2 loopback interface.. > > >I can't remember why,.... but there was a good reason... > > >archie? > > > > BGP, OSPF and others like to have a stable IP# for the router-id, putting > > that on a loopback interface is as close as you get to an interface which > > is always "up". > > Speaking of which.. I've seen quite a few places where they drop the > IFF_LOOPBACK flag on the non-primary interface so that it "looks" > like a real interface.. I think there is even a PR on it. I considered > turning of IFF_LOOPBACK for the non-primary lo0, but decided not to this > time. Anybody know anything about this and why this might be done? Most if not all routing daemons ignore an interface address that is marked IFF_LOOPBACK when doing ``redistribute connected'' or equivelent. You have to jump through hoops to get gated PUBLIC to export a route to an address connected to lo0, usually by creating a seperate static route and exporting it. Playing with any changes to this would require carefull examination of all routing daemon source code, gated, zebra, routed, etc... for side effects (good or bad :-)). -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message