From owner-freebsd-net Fri Jun 2 13:25:50 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 5D01E37B69C for ; Fri, 2 Jun 2000 13:25:47 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA10221; Fri, 2 Jun 2000 13:25:14 -0700 (PDT) From: Archie Cobbs Message-Id: <200006022025.NAA10221@bubba.whistle.com> Subject: Re: BPF fix to if_loop.c In-Reply-To: <5679.959741495@coconut.itojun.org> from "itojun@iijlab.net" at "May 31, 2000 11:51:35 am" To: itojun@iijlab.net Date: Fri, 2 Jun 2000 13:25:14 -0700 (PDT) Cc: freebsd-net@FreeBSD.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 itojun@iijlab.net writes: > >The commit comment to revision 1.33 of if_loop.c may be slightly > >enlightening.. > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_loop.c > >For an example of the resulting cleanup, see: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if_ethersubr.c.diff?r1=1.48&r2=1.49 > >Maybe the caller of if_simloop() should be responsible for the BPF part.. > > that is my understanding for if_simloop(). one thing still unclear > to me is, what can ip{,6}_mloopback() do about it? (I believe nothing > they can do) I think the problem is that it's not clear what layer if_simloop() is for, or at.. it seems to get called from different layers. I.e., if it were link-layer, then you would expect to include the link header and do BPF.. if at the IP layer, you'd expect not to. -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