From owner-freebsd-net Sat Mar 31 9:45:47 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 872E237B71C for ; Sat, 31 Mar 2001 09:45:42 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f2VHjYx12452; Sat, 31 Mar 2001 20:45:34 +0300 (EEST) (envelope-from ru) Date: Sat, 31 Mar 2001 20:45:34 +0300 From: Ruslan Ermilov To: Alexander Leidinger Cc: net@FreeBSD.org Subject: Re: Recent interface/routing changes breaks on-demand PPP (+sppp) Message-ID: <20010331204534.B11966@sunbay.com> Mail-Followup-To: Alexander Leidinger , net@FreeBSD.org References: <20010330172355.A94198@sunbay.com> <200103301642.f2UGglo40730@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103301642.f2UGglo40730@Magelan.Leidinger.net>; from Alexander@leidinger.net on Fri, Mar 30, 2001 at 06:42:45PM +0200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Mar 30, 2001 at 06:42:45PM +0200, Alexander Leidinger wrote: > On 30 Mar, Ruslan Ermilov wrote: > > [Redirected to -net] > > Please CC me, I'm not subscribed to -net. Thanks. > > > >> If I use > >> route add default -interface isp1 > >> I wan't to have the packets routed trough isp1. I don't care about how > >> the routing table is held consistent, but I if the route is discarded > >> without my interaction it not only violates POLA, in this case it's > >> prohibits a valid use of the -interface feature (dial on demand via sppp > >> is broken at the moment). > >> > > OK, finally got it. When the interface goes down, the address is still > > valid, and there is no reason to delete (static?) routes that use this > > address, but the new code does. I was confused by the code comment below > > I didn't have a static IP address. The only static thing in this context > is the interface the defaultroute is assigned to. At every > dial-on-demand I get another IP. > Well, if address is deleted from an interface, all routes that use it will be invalidated (deleted) to avoid using the wrong address. This patch only fixes interface down/up case, when address does not change. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message