From owner-freebsd-hackers Tue Apr 2 00:07:52 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id AAA19011 for hackers-outgoing; Tue, 2 Apr 1996 00:07:52 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA19006 for ; Tue, 2 Apr 1996 00:07:48 -0800 (PST) Received: from critter.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0u417y-0003vqC; Tue, 2 Apr 96 00:07 PST Received: from localhost.tfs.com (localhost.tfs.com [127.0.0.1]) by critter.tfs.com (8.6.12/8.6.12) with SMTP id IAA01881; Tue, 2 Apr 1996 08:07:45 GMT X-Authentication-Warning: critter.tfs.com: Host localhost.tfs.com didn't use HELO protocol To: Julian Elischer cc: hackers@freebsd.org Subject: Re: Route removal on interface shutdown In-reply-to: Your message of "Mon, 01 Apr 1996 17:35:58 PST." <199604020135.RAA05694@ref.tfs.com> Date: Tue, 02 Apr 1996 08:07:44 +0000 Message-ID: <1879.828432464@critter.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Ok So this is more a political question than a technical one.. > > when an interface is shut down, certain things should be removed > from the routing tables.. > but how much is a judgement call: > 1/ Every routing entry that points to that interface? No, the pointer to the interface should just be reset to NULL so that on the next usage it is reevaluated looking for a useable interface. > 2/ Only those that were automatically created? yes. > 3/ what if the default points out there as well? Just like any other route, 1/ or 2/ depending on how it was made. > 4/ only cloned routes? flush. > 5/ should all ARP entries be flushed as well? flush. > etc. no, really that is all I know about. > I tend to go for the "anything that references that interface" set.. No, we should >never< remove a statically added route. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@ref.tfs.com TRW Financial Systems, Inc. Future will arrive by its own means, progress not so.