Date: Tue, 30 May 2000 20:36:50 +0900 From: Jun-ichiro itojun Hagino <itojun@iijlab.net> To: freebsd-net@FreeBSD.ORG Subject: Re: BPF fix to if_loop.c Message-ID: <7130.959686610@lychee.itojun.org> In-Reply-To: itojun's message of Tue, 30 May 2000 09:57:12 JST. <200005300057.JAA03008@kame199.kame.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> The following one-liner avoids junk (non-matching DLT_xx encapsulation) > to be injected to bpf, non-loopback ifp is passed to if_simloop. >- if (ifp->if_bpf) { >+ if (ifp->if_bpf && ifp->if_flags & IFF_LOOPBACK) { sorry this was incorrect. however, I think there should be check if ifp really wants DLT_NULL encapsulation or not. 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?7130.959686610>