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,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to