From owner-freebsd-hackers Fri Oct 13 14:19:08 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA13105 for hackers-outgoing; Fri, 13 Oct 1995 14:19:08 -0700 Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA13100 for ; Fri, 13 Oct 1995 14:18:59 -0700 Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id OAA18242; Fri, 13 Oct 1995 14:13:17 -0700 From: Terry Lambert Message-Id: <199510132113.OAA18242@phaeton.artisoft.com> Subject: Re: if_detach() To: matt@lkg.dec.com (Matt Thomas) Date: Fri, 13 Oct 1995 14:13:17 -0700 (MST) Cc: davidg@root.com, hackers@FreeBSD.ORG In-Reply-To: <199510131313.NAA23002@whydos.lkg.dec.com> from "Matt Thomas" at Oct 13, 95 01:13:44 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 676 Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > At the time, PRC_IFATTACHED and PRC_IFDETACHED should be added so that > existing protocols can dynamically attach and detach themselves from > the interface. > > pfctlinput(PRC_IFATTACHED, ifp); > > In a related issue, a pr_destroy could be added to the protosw structure > to be used to release what pr_init acquired. Yes. The init and deinit routines should not be at the same interface level, even though this complicates the mode;'s layering, it vastly simplifies implementation for the framework and for the driver writers. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.