From owner-freebsd-net Tue Jul 11 15:33:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id 7A40037B74E; Tue, 11 Jul 2000 15:33:43 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id PAA39900; Tue, 11 Jul 2000 15:33:32 -0700 (PDT) From: Archie Cobbs Message-Id: <200007112233.PAA39900@bubba.whistle.com> Subject: ether_ifattach()/ether_ifdetach() patch To: freebsd-net@freebsd.org Date: Tue, 11 Jul 2000 15:33:32 -0700 (PDT) Cc: julian@elischer.org, csg@waterspout.com, ache@freebsd.org, wpaul@freebsd.org, imp@village.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org To any interested parties, here is a patch to review. This changes all ethernet drivers to only call ether_ifattach() and ether_ifdetach(), consolidating some common actions, namely, calls to if_attach(), bpfattach(), ng_ether_attach(), if_detach(), bpfdetach(), and ng_ether_detach(). This also fixes the problem where detaching an ethernet interface previously used for ng_ether(4) would panic (which resulted from fixing the build to not require 'device ether' (which resulted from making ng_ether(4) a loadable KLD)). ftp://ftp.whistle.com/pub/archie/misc/ETHERATTACH.patch.1 Thanks, -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message