From owner-freebsd-net@FreeBSD.ORG Tue Jun 21 14:04:24 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 79C5C16A41C for ; Tue, 21 Jun 2005 14:04:24 +0000 (GMT) (envelope-from vanco@satro.sk) Received: from mail.satronet.sk (mail.satronet.sk [217.144.16.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E5F043D4C for ; Tue, 21 Jun 2005 14:04:23 +0000 (GMT) (envelope-from vanco@satro.sk) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.satronet.sk (Postfix) with ESMTP id 01B61160674B6; Tue, 21 Jun 2005 16:04:21 +0200 (CEST) Received: from mail.satronet.sk ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03615-02-18; Tue, 21 Jun 2005 16:04:20 +0200 (CEST) Received: from [217.144.18.2] (18-2.satronet.sk [217.144.18.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.satronet.sk (Postfix) with ESMTP id 7F2AF160674A1; Tue, 21 Jun 2005 16:04:20 +0200 (CEST) Message-ID: <42B81E61.3090809@satro.sk> Date: Tue, 21 Jun 2005 16:04:17 +0200 From: Michal Vanco User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050620) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Phil Regnauld 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> <20050620071701.GE1695@catpipe.net> In-Reply-To: <20050620071701.GE1695@catpipe.net> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by ANTIvirus at satronet.sk Cc: freebsd-net@freebsd.org, =?ISO-8859-1?Q?Sten_Daniel_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: Tue, 21 Jun 2005 14:04:24 -0000 Phil Regnauld wrote: >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. > > Yes. Marking route inactive this way is the best solution (and the cheapest one) i think. michal