Date: Wed, 26 Apr 2000 16:26:19 -0700 From: David Greenman <dg@root.com> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Proposal for ethernet, bridging, netgraph Message-ID: <200004262326.QAA15823@implode.root.com> In-Reply-To: Your message of "Wed, 26 Apr 2000 14:46:18 EDT." <200004261846.OAA44415@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>> This could/should be done using a struct bpf_pkthdr (or something) that >> has an mbuf pointer, a protocol header pointer, and header length. It could >> also be done by just adding a few more arguments to bpf_mtap(). Abusing >> an mbuf for this is wrong no matter how you slice it. > >Far better to simply always put the link header into the front of the >mbuf and be done with it (even if it does require some extra copying). Except that BPF won't necessarily know the size of the link layer header, but maybe that doesn't matter since it should be implied with the type speced in the bpf_attach. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org Creator of high-performance Internet servers - http://www.terasolutions.com Pave the road of life with opportunities. 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?200004262326.QAA15823>