Date: Sat, 03 Jun 2006 08:06:29 -0700 From: Sam Leffler <sam@errno.com> To: "Christian S.J. Peron" <csjp@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net bpf.h Message-ID: <4481A575.4020306@errno.com> In-Reply-To: <200606030637.k536b0lr090865@repoman.freebsd.org> References: <200606030637.k536b0lr090865@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Christian S.J. Peron wrote: > csjp 2006-06-03 06:37:00 UTC > > FreeBSD src repository > > Modified files: > sys/net bpf.h > Log: > Make sure we don't try to dereference the the if_bpf pointer when bpf has > not been compiled into the the kernel. > > Submitted by: benno Another option that avoids #ifdef's in bpf.h is to point all if_bpf's at a static structure that's initialized s.t. the list pointer is null. OTOH if we embed the data structure in the ifnet then in the no bpf config case the stub bpfattach code would just initialize the list head and again there'd be no issue. I think we can actually make bpf a loadable module now that bpf_if is exposed; I'll look at that. That should eliminate all these hacks we've been carrying around. Sam
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4481A575.4020306>