From owner-freebsd-hackers Mon Jan 27 20:02:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id UAA15252 for hackers-outgoing; Mon, 27 Jan 1997 20:02:35 -0800 (PST) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA15243 for ; Mon, 27 Jan 1997 20:02:28 -0800 (PST) Received: from localhost.transsys.com (localhost.transsys.com [127.0.0.1]) by whizzo.transsys.com (8.8.3/8.7.3) with SMTP id XAA03991; Mon, 27 Jan 1997 23:02:20 -0500 (EST) Message-Id: <199701280402.XAA03991@whizzo.transsys.com> X-Mailer: exmh version 2.0alpha 12/3/96 To: Julian Elischer cc: hackers@freebsd.org From: "Louis A. Mamakos" Subject: Re: Network interfaces: removal of. References: <32ED4558.446B9B3D@whistle.com> In-reply-to: Your message of "Mon, 27 Jan 1997 16:16:24 PST." <32ED4558.446B9B3D@whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 27 Jan 1997 23:02:20 -0500 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > does anyone have any ideas on this? One idea: add a new message for the routing socket which can notify routing daemons that you want to delete an interface (or, like it or not, it's gone now). Hopefully they can then arrange to have active references to the interface be removed. I recall another system which had a the ability to "delete" a network interface. What it really did was cheat: it essentially overwrote the interface name, and shoved the data structure off into a corner. It was still around, though, so that if there was some errant reference to it, nothing "bad" would happen. Clearly, this is just a hack. However, it seems to work "well enough", so from a pragmatic perspective, you can't dismiss it completely. While I'm sure that the modules that reference interfaces are finite, there's nothing to allocate references to them. This would require a level of discipline unknown to the BSD net code. Hell, you might just as well wish for locks on the data structures to make the code SMP safe :-) louie