From owner-freebsd-net@FreeBSD.ORG Mon Jun 20 07:17:10 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D129216A41C for ; Mon, 20 Jun 2005 07:17:10 +0000 (GMT) (envelope-from regnauld@catpipe.net) Received: from moof.catpipe.net (moof.catpipe.net [195.249.214.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 842C943D5C for ; Mon, 20 Jun 2005 07:17:10 +0000 (GMT) (envelope-from regnauld@catpipe.net) Received: from localhost (localhost [127.0.0.1]) by localhost.catpipe.net (Postfix) with ESMTP id A426C1B357; Mon, 20 Jun 2005 09:17:08 +0200 (CEST) Received: from moof.catpipe.net ([127.0.0.1]) by localhost (moof.catpipe.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 75265-07; Mon, 20 Jun 2005 09:17:06 +0200 (CEST) Received: from vinyl.catpipe.net (vinyl.catpipe.net [195.249.214.189]) by moof.catpipe.net (Postfix) with ESMTP id EC9131B370; Mon, 20 Jun 2005 09:17:00 +0200 (CEST) Received: by vinyl.catpipe.net (Postfix, from userid 1006) id C99963981C; Mon, 20 Jun 2005 09:17:01 +0200 (CEST) Date: Mon, 20 Jun 2005 09:17:01 +0200 From: Phil Regnauld To: Michal Vanco Message-ID: <20050620071701.GE1695@catpipe.net> References: <51688.147.175.8.5.1119105461.squirrel@webmail.satronet.sk> <20050619082944.GA11972@cell.sick.ru> <42B5CD89.6070509@wm-access.no> <200506201113.34307.vanco@satro.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200506201113.34307.vanco@satro.sk> X-Operating-System: FreeBSD 5.3-STABLE i386 Organization: catpipe Systems ApS User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at catpipe.net Cc: freebsd-net@freebsd.org, Sten Daniel =?iso-8859-1?Q?S=F8rsdal?= Subject: Re: Routes not deleted after link down X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jun 2005 07:17:10 -0000 Michal Vanco (vanco) writes: > On Sunday 19 June 2005 21:54, Sten Daniel Sørsdal wrote: > > Gleb Smirnoff wrote: > > > My vote is that we should implement this functionality and make it > > > switchable via sysctl. I'd leave the default as is. > > > > > > What is opinion of other networkers? > > > > How about also adding a sysctl for setting a delay time between event > > and disabling of the route? Then even people with roaming wlan cards can > > benefit. > > Also it is in my opinion that the route be disabled (moved to a passive > > route table maybe?) and not deleted. > > This is what I meant initially. Marking route passive is better than just > deleting it and it'll be also faster to recall the route back in case of link > up. Deleting the route is definintely the most annoying thing you can do -- Linux does that, and that's no network reference (try and find RTF_STATIC in the Linux routing code). Returning "Network unreachable" is the proper thing to do, but keep the route in the table... Effectively removing the route from the forwarding table is a job for a routing demon.