From owner-freebsd-net Sat Mar 18 22: 8: 6 2000 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 1DDFB37B634 for ; Sat, 18 Mar 2000 22:08:04 -0800 (PST) (envelope-from robert@cyrus.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id BAA04711; Sun, 19 Mar 2000 01:07:58 -0500 (EST) (envelope-from robert@cyrus.watson.org) Date: Sun, 19 Mar 2000 01:07:58 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org Reply-To: Robert Watson To: Warner Losh Cc: Kurakin Roman , freebsd-net@FreeBSD.ORG Subject: Re: Patch to introduce bpfdetach(), Re: BPF question (FreeBSD 40) In-Reply-To: <200003190547.WAA05290@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 18 Mar 2000, Warner Losh wrote: > In message Robert Watson writes: > : Pccard drivers such as ep0 don't require the patch, as they never > : ifdetach(), leaving the ifnet epX around but unbound. > > But ep does call if_detach(): > > static int > ep_pccard_detach(device_t dev) > { > ... > if_detach(&sc->arpcom.ac_if); > ... > } > > all the network pccard drivers do this. My mistake -- found the location a few minutes ago, and must have overlooked it previously (possibly due to spelling it ifdetach() instead of if_detach() :-). Apparently bpf likes to use bpfwhatever, and if likes to use if_whatever. However, if_ep also appears to require the patch. I've sent you email relating to your response to the commit message for the patch, in which I provide further details. Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message