Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Mar 2001 20:45:34 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Alexander Leidinger <Alexander@leidinger.net>
Cc:        net@FreeBSD.org
Subject:   Re: Recent interface/routing changes breaks on-demand PPP (+sppp)
Message-ID:  <20010331204534.B11966@sunbay.com>
In-Reply-To: <200103301642.f2UGglo40730@Magelan.Leidinger.net>; from Alexander@leidinger.net on Fri, Mar 30, 2001 at 06:42:45PM %2B0200
References:  <20010330172355.A94198@sunbay.com> <200103301642.f2UGglo40730@Magelan.Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010331204534.B11966>