From owner-freebsd-isdn Tue Apr 3 7:24:11 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 6EB1D37B71B; Tue, 3 Apr 2001 07:24:02 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f33ENlc65472; Tue, 3 Apr 2001 17:23:47 +0300 (EEST) (envelope-from ru) Date: Tue, 3 Apr 2001 17:23:47 +0300 From: Ruslan Ermilov To: Alexander Leidinger Cc: net@FreeBSD.org, isdn@FreeBSD.org Subject: Re: Recent interface/routing changes breaks on-demand PPP (+sppp) Message-ID: <20010403172347.A64216@sunbay.com> Mail-Followup-To: Alexander Leidinger , net@FreeBSD.org, isdn@FreeBSD.org References: <20010402204516.A74854@sunbay.com> <200104031413.f33EDSm02426@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: <200104031413.f33EDSm02426@Magelan.Leidinger.net>; from Alexander@leidinger.net on Tue, Apr 03, 2001 at 04:13:27PM +0200 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Apr 03, 2001 at 04:13:27PM +0200, Alexander Leidinger wrote: > On 2 Apr, Ruslan Ermilov wrote: > > > OK, we fixed the "ifconfig down" case already. The attached patch alters > > inet routing code so that it does not delete routes with the "default" > > source address of 0.0.0.0; ip_output() will take care of choosing the > > right address. Please let me know if it works for you. > > I reverted your "#if 0" patch (which worked for me) and applied this > patch: no, didn't works, the route vanishes. > Nope, you should not have been reverting the "#if 0" patch, you should have used both. The "#if 0" patch, like you called it, fixed the case when the route disappeared on ``ifconfig down''. Right? If I understood you correctly, the route still disappeared after a new IP address was negotiated with the peer. The last patch is a special hack for routes with the "default" (0.0.0.0) address; the routing code will not delete such routes. Or did I misunderstood something, and negotiated IP address is added as an alias address to an interface? How does the ``ifconfig'' output looks after the IP address is negotiated? (If the new address is an alias address, then the second patch is not required.) 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-isdn" in the body of the message