Date: Sat, 03 Jun 2000 10:54:51 +0900 From: itojun@iijlab.net To: Archie Cobbs <archie@whistle.com> Cc: freebsd-net@FreeBSD.ORG Subject: Re: BPF fix to if_loop.c Message-ID: <15121.959997291@coconut.itojun.org> In-Reply-To: archie's message of Fri, 02 Jun 2000 13:25:14 MST. <200006022025.NAA10221@bubba.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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. I think there needs to be two entrypoints - one for layer3 (without link-layer, no bpf injection), one for layer 2 (with link-layer, inject to bpf, if_simloop). former one can be made by removing call to if_simloop() in looutput() and copy some meat from if_simloop(). itojun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15121.959997291>