From owner-freebsd-arch Wed Dec 15 9: 9:15 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 23F1615338 for ; Wed, 15 Dec 1999 09:09:10 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id SAA27195 for ; Wed, 15 Dec 1999 18:09:03 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id SAA71594 for freebsd-arch@freebsd.org; Wed, 15 Dec 1999 18:09:02 +0100 (MET) Received: from ind.alcatel.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (Postfix) with ESMTP id E8D081551D for ; Wed, 15 Dec 1999 09:08:38 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com (mailhub [198.206.181.70]) by ind.alcatel.com (8.9.3+Sun/8.9.1 (ind.alcatel.com 3.0 [OUT])) with SMTP id JAA17185; Wed, 15 Dec 1999 09:07:39 -0800 (PST) X-Origination-Site: Received: from omni.xylan.com by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id JAA16229; Wed, 15 Dec 1999 09:07:39 -0800 Received: from softweyr.com ([204.68.178.39]) by omni.xylan.com (4.1/SMI-4.1 (xylan engr [SPOOL])) id AA06383; Wed, 15 Dec 99 09:07:25 PST Message-Id: <3857CB17.116DAF99@softweyr.com> Date: Wed, 15 Dec 1999 10:08:39 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en Mime-Version: 1.0 To: Brian Somers Cc: Warner Losh , freebsd-arch@freebsd.org, brian@hak.lan.Awfulhak.org Subject: Re: The if_detach problem References: <199912142145.VAA34161@hak.lan.Awfulhak.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Somers wrote: > > > > > if_detach doesn't, at least not completely. > > > > That's a problem when you want to remove interfaces. One problem is > > that the routing system caches ifaddr and other things. There is a > > mechanism in place that could be used to clean things up. > > > > In the protosw there is a ctlinput routine which accepts various > > commands. One way to deal with this is to send a new command when ifa > > goes away. Right now when we do if_down we send a PRC_IFDOWN. Maybe > > we need to invent a new PRC_, say PRC_IFDETACH. Then we wouldn't need > > the kludges in if_detach. The ctlinput routines could then, in the > > appropriate places, scrub the references to the interface that just > > went away. > > > > I'd like to go down this path, any comments? > > Not comments, but my thoughts.... > > Is there a lot to be gained by removing interfaces ? Think PC Card/CardBus here, Brian. The interface truly is gone. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message