From owner-freebsd-arch Thu Apr 4 12: 0:53 2002 Delivered-To: freebsd-arch@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 04C4737B41C; Thu, 4 Apr 2002 12:00:28 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id WAA22498; Thu, 4 Apr 2002 22:00:04 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.6/8.11.6) id g34Jwin83318; Thu, 4 Apr 2002 21:58:44 +0200 (MET DST) (envelope-from j) Date: Thu, 4 Apr 2002 21:58:44 +0200 From: Joerg Wunsch To: Brian Somers Cc: Doug Ambrisko , "M. Warner Losh" , alan@clegg.com, luigi@FreeBSD.org, nsayer@FreeBSD.org, ryand-bsd@zenspider.com, freebsd-arch@FreeBSD.org, freebsd-net@FreeBSD.org Subject: Re: Your change to in.c to limit duplicate networks is causing trouble Message-ID: <20020404215844.A83154@uriah.heep.sax.de> Reply-To: Joerg Wunsch References: <200204041717.g34HHkq7037326@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200204041717.g34HHkq7037326@hak.lan.Awfulhak.org>; from brian@freebsd-services.com on Thu, Apr 04, 2002 at 06:17:46PM +0100 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG As Brian Somers wrote: > The code now avoids adding a host route if the interface address is > 0.0.0.0, and always treats a failure to add a host route as fatal > (previously, it masked EEXIST for some reason - I guessed because it > was trying to handle address re-assignment, but that works ok with > this patch). I think that will be fatal for the sppp case with dynamic IP address negotiation. We use 0.0.0.0 as the local IP address for the unnegotiated PPP link then, with the idea that it's still possible to route through the interface anyway. For dial-on-demand PPP links (like on ISDN), the routed packets will then trigger the dialout event. In the course of the PPP negotiations, an actual local IP address will be negotiated and assigned, but we first need some packets to pass through the PPP layer in order to trigger this. Perhaps it would still be possible to use per-interface routes even after your change (-iface isp0 etc.), but currently, a number of documents describe that it's possible to use local address 0.0.0.0 and still get normal routing behaviour for those links. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message